Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'], chrootPath='/var/lib/mock/f37-build-side-31-rust-devel-112659-5993/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Wrote: /builddir/build/SRPMS/rust-encode_unicode-0.3.6-9.fc37.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'], chrootPath='/var/lib/mock/f37-build-side-31-rust-devel-112659-5993/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XTkwJX + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf encode_unicode-0.3.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/encode_unicode-0.3.6.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd encode_unicode-0.3.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/encode_unicode-fix-metadata.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + set -eu + /usr/bin/mkdir -p .cargo + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.2x004x + umask 022 + cd /builddir/build/BUILD + cd encode_unicode-0.3.6 + /usr/bin/cargo-inspector -BR Cargo.toml + /usr/bin/cargo-inspector -TR Cargo.toml + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-encode_unicode-0.3.6-9.fc37.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'], chrootPath='/var/lib/mock/f37-build-side-31-rust-devel-112659-5993/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lhIa7u + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf encode_unicode-0.3.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/encode_unicode-0.3.6.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd encode_unicode-0.3.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/encode_unicode-fix-metadata.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + set -eu + /usr/bin/mkdir -p .cargo + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.KkTlcR + umask 022 + cd /builddir/build/BUILD + cd encode_unicode-0.3.6 + /usr/bin/cargo-inspector -BR Cargo.toml + /usr/bin/cargo-inspector -TR Cargo.toml + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-encode_unicode-0.3.6-9.fc37.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'], chrootPath='/var/lib/mock/f37-build-side-31-rust-devel-112659-5993/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --target riscv64 --nodeps /builddir/build/SPECS/rust-encode_unicode.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.Gsu08L + umask 022 + cd /builddir/build/BUILD + cd encode_unicode-0.3.6 + /usr/bin/cargo-inspector -BR Cargo.toml + /usr/bin/cargo-inspector -TR Cargo.toml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lA8iAp + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd encode_unicode-0.3.6 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo build -j8 -Z avoid-dev-deps --release Compiling encode_unicode v0.3.6 (/builddir/build/BUILD/encode_unicode-0.3.6) Running `/usr/bin/rustc --crate-name encode_unicode src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=f153f0d98f4e7cb2 -C extra-filename=-f153f0d98f4e7cb2 --out-dir /builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` warning: `...` range patterns are deprecated --> src/traits.rs:61:18 | 61 | n @ 1...3 => Ok(n as usize), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default warning: `...` range patterns are deprecated --> src/traits.rs:145:20 | 145 | 0x00_00...0xd7_ff | 0xe0_00...0xff_ff => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:145:40 | 145 | 0x00_00...0xd7_ff | 0xe0_00...0xff_ff => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:146:20 | 146 | 0xd8_00...0xdb_ff => Ok(true), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:497:31 | 497 | (Some(&u @ 0x00_00...0xd7_ff), _) | | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:498:31 | 498 | (Some(&u @ 0xe0_00...0xff_ff), _) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:500:19 | 500 | (Some(&0xdc_00...0xdf_ff), _) => Err(FirstLowSurrogate), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xdc_00..=0xdf_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:502:31 | 502 | (Some(&f @ 0xd8_00...0xdb_ff), Some(&s @ 0xdc_00...0xdf_ff)) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:502:61 | 502 | (Some(&f @ 0xd8_00...0xdb_ff), Some(&s @ 0xdc_00...0xdf_ff)) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:504:19 | 504 | (Some(&0xd8_00...0xdb_ff), Some(_)) => Err(SecondNotLowSurrogate), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xd8_00..=0xdb_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:505:19 | 505 | (Some(&0xd8_00...0xdb_ff), None) => Err(MissingSecond), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xd8_00..=0xdb_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:526:21 | 526 | (0x00_00...0xd7_ff, None) | // single | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:527:21 | 527 | (0xe0_00...0xff_ff, None) | // single | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:528:21 | 528 | (0xd8_00...0xdb_ff, Some(0xdc_00...0xdf_ff)) // correct surrogate | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:528:45 | 528 | (0xd8_00...0xdb_ff, Some(0xdc_00...0xdf_ff)) // correct surrogate | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:530:21 | 530 | (0xd8_00...0xdb_ff, Some(_)) => Err(InvalidSecond), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:531:21 | 531 | (0xd8_00...0xdb_ff, None ) => Err(MissingSecond), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:532:21 | 532 | (0xdc_00...0xdf_ff, _ ) => Err(FirstIsTrailingSurrogate), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf8_char.rs:85:19 | 85 | (a @ 0...0x00_7f, _) => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf8_char.rs:88:19 | 88 | (u @ 0...0x07_ff, _) => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: use of deprecated macro `try`: use the `?` operator instead --> src/utf8_char.rs:484:13 | 484 | try!(char::from_utf8_array(utf8)); | ^^^ | = note: `#[warn(deprecated)]` on by default warning: `...` range patterns are deprecated --> src/utf16_char.rs:442:14 | 442 | 0...127 => {// 1 byte => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf16_char.rs:446:24 | 446 | 0b1000_0000...0b1101_1111 => {// 2 bytes => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf16_char.rs:451:24 | 451 | 0b1110_0000...0b1110_1111 => {// 3 bytes => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:146:28 | 146 | 0b0000_0000...0b0111_1111 => {/*1 and */Ok(())}, | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:147:28 | 147 | 0b1100_0010...0b1101_1111 => {//2 and not overlong | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:150:28 | 150 | 0b1110_0000...0b1110_1111 => {//3 | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:163:28 | 163 | 0b1111_0000...0b1111_0100 => {//4 | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:176:28 | 176 | 0b1000_0000...0b1011_1111 => {// continuation byte | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:179:28 | 179 | 0b1100_0000...0b1100_0001 => {// 2 and overlong | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:182:28 | 182 | 0b1111_0101...0b1111_0111 => {// 4 and too high codepoint | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:185:28 | 185 | 0b1111_1000...0b1111_1111 => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: trait objects without an explicit `dyn` are deprecated --> src/errors.rs:200:36 | 200 | fn cause(&self) -> Option<&Error> { | ^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) help: use `dyn` | 200 | fn cause(&self) -> Option<&dyn Error> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/errors.rs:200:36 | 200 | fn cause(&self) -> Option<&Error> { | ^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) help: use `dyn` | 200 | fn cause(&self) -> Option<&dyn Error> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/errors.rs:200:36 | 200 | fn cause(&self) -> Option<&Error> { | ^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) help: use `dyn` | 200 | fn cause(&self) -> Option<&dyn Error> { | +++ warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 50 | / single_cause!{ 51 | | /// Cannot tell whether an `u16` needs an extra unit, 52 | | /// because it's a trailing surrogate itself. 53 | | InvalidUtf16FirstUnit => "is a trailing surrogate" 54 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 56 | / single_cause!{ 57 | | /// Cannot create an `Utf8Char` or `Utf16Char` from the first codepoint of a str, 58 | | /// because there are none. 59 | | EmptyStrError => "is empty" 60 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 62 | / single_cause!{ 63 | | /// Cannot create an `Utf8Char` from a standalone `u8` 64 | | /// that is not an ASCII character. 65 | | NonAsciiError => "is not an ASCII character" 66 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 68 | / single_cause!{ 69 | | /// Cannot create an `Utf16Char` from a standalone `u16` that is not a 70 | | /// codepoint in the basic multilingual plane, but part of a suurrogate pair. 71 | | NonBMPError => "is not a codepoint in the basic multilingual plane" 72 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 88 | / simple!{/// Reasons why an `u32` is not a valid UTF codepoint. 89 | | InvalidCodepoint { 90 | | /// It's reserved for UTF-16 surrogate pairs." 91 | | ::Utf16Reserved => "is reserved for UTF-16 surrogate pairs", 92 | | /// It's higher than the highest codepoint (which is 0x10ffff). 93 | | ::TooHigh => "is higher than the highest codepoint", 94 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 105 | / simple!{/// Reasons why a `[u16; 2]` doesn't form a valid UTF-16 codepoint. 106 | | InvalidUtf16Array { 107 | | /// The first unit is a trailing/low surrogate, which is never valid. 108 | | ::FirstIsTrailingSurrogate => "the first unit is a trailing surrogate, which is never valid", 109 | | /// The second unit is needed, but is not a trailing surrogate. 110 | | ::SecondIsNotTrailingSurrogate => "the second unit is needed but is not a trailing surrogate", 111 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 113 | / simple!{/// Reasons why one or two `u16`s are not valid UTF-16, in sinking precedence. 114 | | InvalidUtf16Tuple { 115 | | /// The first unit is a trailing/low surrogate, which is never valid. 116 | | /// ... | 126 | | ::InvalidSecond => "the required second unit is not a trailing / low surrogate", 127 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 130 | / simple!{/// Reasons why a slice of `u16`s doesn't start with valid UTF-16. 131 | | InvalidUtf16Slice { 132 | | /// The slice is empty. 133 | | ::EmptySlice => "the slice is empty", ... | 139 | | ::SecondNotLowSurrogate => "the required second unit is not a trailing surrogate", 140 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 142 | / simple!{/// Types of invalid sequences encountered by `Utf16CharParser`. 143 | | Utf16PairError { 144 | | /// A trailing surrogate was not preceeded by a leading surrogate. 145 | | ::UnexpectedTrailingSurrogate => "a trailing surrogate was not preceeded by a leading surrogate", ... | 149 | | ::Incomplete => "a trailing surrogate was expected when the end was reached", 150 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 153 | / simple!{/// Reasons why `Utf8Char::from_str()` or `Utf16Char::from_str()` failed. 154 | | FromStrError { 155 | | /// `Utf8Char` or `Utf16Char` cannot store more than a single codepoint. 156 | | ::MultipleCodepoints => "has more than one codepoint", 157 | | /// `Utf8Char` or `Utf16Char` cannot be empty. 158 | | ::Empty => "is empty", 159 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 162 | / simple!{/// Reasons why a byte is not the start of a UTF-8 codepoint. 163 | | InvalidUtf8FirstByte { 164 | | /// Sequences cannot be longer than 4 bytes. Is given for values >= 240. 165 | | ::TooLongSeqence => "is greater than 247 (UTF-8 sequences cannot be longer than four bytes)", 166 | | /// This byte belongs to a previous sequence. Is given for values between 128 and 192 (exclusive). 167 | | ::ContinuationByte => "is a continuation of a previous sequence", 168 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/errors.rs:206:25 | 206 | match (self.cause(), $use_cause) { | ^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:207:63 | 207 | (Some(d),true) => write!(fmtr, "{}: {}", self.description(), d), | ^^^^^^^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:208:59 | 208 | _ => write!(fmtr, "{}", self.description()), | ^^^^^^^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/errors.rs:206:25 | 206 | match (self.cause(), $use_cause) { | ^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:207:63 | 207 | (Some(d),true) => write!(fmtr, "{}: {}", self.description(), d), | ^^^^^^^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:208:59 | 208 | _ => write!(fmtr, "{}", self.description()), | ^^^^^^^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/errors.rs:206:25 | 206 | match (self.cause(), $use_cause) { | ^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:207:63 | 207 | (Some(d),true) => write!(fmtr, "{}: {}", self.description(), d), | ^^^^^^^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:208:59 | 208 | _ => write!(fmtr, "{}", self.description()), | ^^^^^^^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: unreachable pattern --> src/traits.rs:506:13 | 506 | (Some(_), _) => unreachable!() | ^^^^^^^^^^^^ | = note: `#[warn(unreachable_patterns)]` on by default warning: unreachable pattern --> src/traits.rs:534:13 | 534 | ( _ , None ) => unreachable!() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unreachable pattern --> src/decoding_iterators.rs:188:17 | 188 | _ => unreachable!("all possible byte values should be covered") | ^ warning: `encode_unicode` (lib) generated 58 warnings Finished release [optimized] target(s) in 39.38s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.qihMmY + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64 ++ dirname /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd encode_unicode-0.3.6 + set -eu + /usr/bin/cargo-inspector --target-kinds Cargo.toml ++ printf 'lib\nrlib\nproc-macro' + grep -q -F -x 'lib rlib proc-macro' ++ /usr/bin/cargo-inspector --name Cargo.toml + CRATE_NAME=encode_unicode ++ /usr/bin/cargo-inspector --version Cargo.toml + CRATE_VERSION=0.3.6 + REG_DIR=/builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/cargo/registry/encode_unicode-0.3.6 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/cargo/registry/encode_unicode-0.3.6 + gawk -i inplace -v INPLACE_SUFFIX=.deps '/^\[((.+\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\[/{f=0}; !f' Cargo.toml + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo package -l + grep -w -E -v 'Cargo.(lock|toml.orig)' + xargs -d '\n' /usr/bin/cp --parents -a -t /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/cargo/registry/encode_unicode-0.3.6 warning: No (git) VCS found for `/builddir/build/BUILD/encode_unicode-0.3.6` + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/cargo/registry/encode_unicode-0.3.6/Cargo.toml + /usr/bin/rm -f /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/cargo/registry/encode_unicode-0.3.6/Cargo.toml.deps + echo '{"files":{},"package":""}' + /usr/bin/cargo-inspector --target-kinds Cargo.toml + grep -q -F -x bin + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.14Qs4v + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd encode_unicode-0.3.6 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo test -j8 -Z avoid-dev-deps --release --no-fail-fast Compiling lazy_static v1.4.0 warning: `...` range patterns are deprecated --> src/traits.rs:61:18 | 61 | n @ 1...3 => Ok(n as usize), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default warning: `...` range patterns are deprecated --> src/traits.rs:145:20 | 145 | 0x00_00...0xd7_ff | 0xe0_00...0xff_ff => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:145:40 | 145 | 0x00_00...0xd7_ff | 0xe0_00...0xff_ff => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:146:20 | 146 | 0xd8_00...0xdb_ff => Ok(true), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:497:31 | 497 | (Some(&u @ 0x00_00...0xd7_ff), _) | | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:498:31 | 498 | (Some(&u @ 0xe0_00...0xff_ff), _) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:500:19 | 500 | (Some(&0xdc_00...0xdf_ff), _) => Err(FirstLowSurrogate), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xdc_00..=0xdf_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:502:31 | 502 | (Some(&f @ 0xd8_00...0xdb_ff), Some(&s @ 0xdc_00...0xdf_ff)) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:502:61 | 502 | (Some(&f @ 0xd8_00...0xdb_ff), Some(&s @ 0xdc_00...0xdf_ff)) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:504:19 | 504 | (Some(&0xd8_00...0xdb_ff), Some(_)) => Err(SecondNotLowSurrogate), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xd8_00..=0xdb_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:505:19 | 505 | (Some(&0xd8_00...0xdb_ff), None) => Err(MissingSecond), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xd8_00..=0xdb_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:526:21 | 526 | (0x00_00...0xd7_ff, None) | // single | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:527:21 | 527 | (0xe0_00...0xff_ff, None) | // single | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:528:21 | 528 | (0xd8_00...0xdb_ff, Some(0xdc_00...0xdf_ff)) // correct surrogate | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:528:45 | 528 | (0xd8_00...0xdb_ff, Some(0xdc_00...0xdf_ff)) // correct surrogate | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:530:21 | 530 | (0xd8_00...0xdb_ff, Some(_)) => Err(InvalidSecond), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:531:21 | 531 | (0xd8_00...0xdb_ff, None ) => Err(MissingSecond), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/traits.rs:532:21 | 532 | (0xdc_00...0xdf_ff, _ ) => Err(FirstIsTrailingSurrogate), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf8_char.rs:85:19 | 85 | (a @ 0...0x00_7f, _) => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf8_char.rs:88:19 | 88 | (u @ 0...0x07_ff, _) => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: use of deprecated macro `try`: use the `?` operator instead --> src/utf8_char.rs:484:13 | 484 | try!(char::from_utf8_array(utf8)); | ^^^ | = note: `#[warn(deprecated)]` on by default warning: `...` range patterns are deprecated --> src/utf16_char.rs:442:14 | 442 | 0...127 => {// 1 byte => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf16_char.rs:446:24 | 446 | 0b1000_0000...0b1101_1111 => {// 2 bytes => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/utf16_char.rs:451:24 | 451 | 0b1110_0000...0b1110_1111 => {// 3 bytes => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:146:28 | 146 | 0b0000_0000...0b0111_1111 => {/*1 and */Ok(())}, | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:147:28 | 147 | 0b1100_0010...0b1101_1111 => {//2 and not overlong | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:150:28 | 150 | 0b1110_0000...0b1110_1111 => {//3 | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:163:28 | 163 | 0b1111_0000...0b1111_0100 => {//4 | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:176:28 | 176 | 0b1000_0000...0b1011_1111 => {// continuation byte | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:179:28 | 179 | 0b1100_0000...0b1100_0001 => {// 2 and overlong | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:182:28 | 182 | 0b1111_0101...0b1111_0111 => {// 4 and too high codepoint | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> src/decoding_iterators.rs:185:28 | 185 | 0b1111_1000...0b1111_1111 => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: trait objects without an explicit `dyn` are deprecated --> src/errors.rs:200:36 | 200 | fn cause(&self) -> Option<&Error> { | ^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) help: use `dyn` | 200 | fn cause(&self) -> Option<&dyn Error> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/errors.rs:200:36 | 200 | fn cause(&self) -> Option<&Error> { | ^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) help: use `dyn` | 200 | fn cause(&self) -> Option<&dyn Error> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/errors.rs:200:36 | 200 | fn cause(&self) -> Option<&Error> { | ^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) help: use `dyn` | 200 | fn cause(&self) -> Option<&dyn Error> { | +++ warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 50 | / single_cause!{ 51 | | /// Cannot tell whether an `u16` needs an extra unit, 52 | | /// because it's a trailing surrogate itself. 53 | | InvalidUtf16FirstUnit => "is a trailing surrogate" 54 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 56 | / single_cause!{ 57 | | /// Cannot create an `Utf8Char` or `Utf16Char` from the first codepoint of a str, 58 | | /// because there are none. 59 | | EmptyStrError => "is empty" 60 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 62 | / single_cause!{ 63 | | /// Cannot create an `Utf8Char` from a standalone `u8` 64 | | /// that is not an ASCII character. 65 | | NonAsciiError => "is not an ASCII character" 66 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 68 | / single_cause!{ 69 | | /// Cannot create an `Utf16Char` from a standalone `u16` that is not a 70 | | /// codepoint in the basic multilingual plane, but part of a suurrogate pair. 71 | | NonBMPError => "is not a codepoint in the basic multilingual plane" 72 | | } | |_- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `single_cause` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 88 | / simple!{/// Reasons why an `u32` is not a valid UTF codepoint. 89 | | InvalidCodepoint { 90 | | /// It's reserved for UTF-16 surrogate pairs." 91 | | ::Utf16Reserved => "is reserved for UTF-16 surrogate pairs", 92 | | /// It's higher than the highest codepoint (which is 0x10ffff). 93 | | ::TooHigh => "is higher than the highest codepoint", 94 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 105 | / simple!{/// Reasons why a `[u16; 2]` doesn't form a valid UTF-16 codepoint. 106 | | InvalidUtf16Array { 107 | | /// The first unit is a trailing/low surrogate, which is never valid. 108 | | ::FirstIsTrailingSurrogate => "the first unit is a trailing surrogate, which is never valid", 109 | | /// The second unit is needed, but is not a trailing surrogate. 110 | | ::SecondIsNotTrailingSurrogate => "the second unit is needed but is not a trailing surrogate", 111 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 113 | / simple!{/// Reasons why one or two `u16`s are not valid UTF-16, in sinking precedence. 114 | | InvalidUtf16Tuple { 115 | | /// The first unit is a trailing/low surrogate, which is never valid. 116 | | /// ... | 126 | | ::InvalidSecond => "the required second unit is not a trailing / low surrogate", 127 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 130 | / simple!{/// Reasons why a slice of `u16`s doesn't start with valid UTF-16. 131 | | InvalidUtf16Slice { 132 | | /// The slice is empty. 133 | | ::EmptySlice => "the slice is empty", ... | 139 | | ::SecondNotLowSurrogate => "the required second unit is not a trailing surrogate", 140 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 142 | / simple!{/// Types of invalid sequences encountered by `Utf16CharParser`. 143 | | Utf16PairError { 144 | | /// A trailing surrogate was not preceeded by a leading surrogate. 145 | | ::UnexpectedTrailingSurrogate => "a trailing surrogate was not preceeded by a leading surrogate", ... | 149 | | ::Incomplete => "a trailing surrogate was expected when the end was reached", 150 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 153 | / simple!{/// Reasons why `Utf8Char::from_str()` or `Utf16Char::from_str()` failed. 154 | | FromStrError { 155 | | /// `Utf8Char` or `Utf16Char` cannot store more than a single codepoint. 156 | | ::MultipleCodepoints => "has more than one codepoint", 157 | | /// `Utf8Char` or `Utf16Char` cannot be empty. 158 | | ::Empty => "is empty", 159 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:34:37 | 34 | write!(fmtr, "{}", self.description()) | ^^^^^^^^^^^ ... 162 | / simple!{/// Reasons why a byte is not the start of a UTF-8 codepoint. 163 | | InvalidUtf8FirstByte { 164 | | /// Sequences cannot be longer than 4 bytes. Is given for values >= 240. 165 | | ::TooLongSeqence => "is greater than 247 (UTF-8 sequences cannot be longer than four bytes)", 166 | | /// This byte belongs to a previous sequence. Is given for values between 128 and 192 (exclusive). 167 | | ::ContinuationByte => "is a continuation of a previous sequence", 168 | | }} | |______- in this macro invocation | = note: this warning originates in the macro `description` which comes from the expansion of the macro `simple` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/errors.rs:206:25 | 206 | match (self.cause(), $use_cause) { | ^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:207:63 | 207 | (Some(d),true) => write!(fmtr, "{}: {}", self.description(), d), | ^^^^^^^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:208:59 | 208 | _ => write!(fmtr, "{}", self.description()), | ^^^^^^^^^^^ ... 231 | / complex!{InvalidUtf8 { 232 | | InvalidUtf8FirstByte => FirstByte, 233 | | } { 234 | | FirstByte(TooLongSeqence) => "the first byte is greater than 239 (UTF-8 sequences cannot be longer than four bytes)", ... | 241 | | }/// Returns `Some` if the error is a `InvalidUtf8FirstByte`. 242 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/errors.rs:206:25 | 206 | match (self.cause(), $use_cause) { | ^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:207:63 | 207 | (Some(d),true) => write!(fmtr, "{}: {}", self.description(), d), | ^^^^^^^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:208:59 | 208 | _ => write!(fmtr, "{}", self.description()), | ^^^^^^^^^^^ ... 253 | / complex!{InvalidUtf8Array { 254 | | InvalidUtf8 => InvalidUtf8Array::Utf8, 255 | | InvalidCodepoint => InvalidUtf8Array::Codepoint, 256 | | } { ... | 262 | | }/// Always returns `Some`. 263 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/errors.rs:206:25 | 206 | match (self.cause(), $use_cause) { | ^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:207:63 | 207 | (Some(d),true) => write!(fmtr, "{}: {}", self.description(), d), | ^^^^^^^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() --> src/errors.rs:208:59 | 208 | _ => write!(fmtr, "{}", self.description()), | ^^^^^^^^^^^ ... 276 | / complex!{InvalidUtf8Slice { 277 | | InvalidUtf8 => InvalidUtf8Slice::Utf8, 278 | | InvalidCodepoint => InvalidUtf8Slice::Codepoint, 279 | | } { ... | 288 | | } 289 | | } | |_- in this macro invocation | = note: this warning originates in the macro `complex` (in Nightly builds, run with -Z macro-backtrace for more info) warning: unreachable pattern --> src/traits.rs:506:13 | 506 | (Some(_), _) => unreachable!() | ^^^^^^^^^^^^ | = note: `#[warn(unreachable_patterns)]` on by default warning: unreachable pattern --> src/traits.rs:534:13 | 534 | ( _ , None ) => unreachable!() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unreachable pattern --> src/decoding_iterators.rs:188:17 | 188 | _ => unreachable!("all possible byte values should be covered") | ^ Running `/usr/bin/rustc --crate-name lazy_static /usr/share/cargo/registry/lazy_static-1.4.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=abf0522e0b145818 -C extra-filename=-abf0522e0b145818 --out-dir /builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` warning: `encode_unicode` (lib) generated 58 warnings Compiling encode_unicode v0.3.6 (/builddir/build/BUILD/encode_unicode-0.3.6) Running `/usr/bin/rustc --crate-name exhaustive tests/exhaustive.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=5bb9f62d836e79ca -C extra-filename=-5bb9f62d836e79ca --out-dir /builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps --extern encode_unicode=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/libencode_unicode-f153f0d98f4e7cb2.rlib --extern lazy_static=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/liblazy_static-abf0522e0b145818.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name errs tests/errs.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=c76ffcbe344f39dd -C extra-filename=-c76ffcbe344f39dd --out-dir /builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps --extern encode_unicode=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/libencode_unicode-f153f0d98f4e7cb2.rlib --extern lazy_static=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/liblazy_static-abf0522e0b145818.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name iterators tests/iterators.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=2cc2aa6762e941d5 -C extra-filename=-2cc2aa6762e941d5 --out-dir /builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps --extern encode_unicode=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/libencode_unicode-f153f0d98f4e7cb2.rlib --extern lazy_static=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/liblazy_static-abf0522e0b145818.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name encode_unicode src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=c16339ec7af9491d -C extra-filename=-c16339ec7af9491d --out-dir /builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps --extern lazy_static=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/liblazy_static-abf0522e0b145818.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name oks tests/oks.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=6b01670ac63f75b4 -C extra-filename=-6b01670ac63f75b4 --out-dir /builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps --extern encode_unicode=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/libencode_unicode-f153f0d98f4e7cb2.rlib --extern lazy_static=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/liblazy_static-abf0522e0b145818.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` warning: `...` range patterns are deprecated --> tests/errs.rs:44:25 | 44 | 0b_1000_0000...0b_1011_1111 => Err(ContinuationByte), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default warning: `...` range patterns are deprecated --> tests/errs.rs:45:25 | 45 | 0b_1111_1000...0b_1111_1111 => Err(TooLongSeqence), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:46:25 | 46 | 0b_0000_0000...0b_0111_1111 => Ok(0), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:47:25 | 47 | 0b_1100_0000...0b_1101_1111 => Ok(1), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:48:25 | 48 | 0b_1110_0000...0b_1110_1111 => Ok(2), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:49:25 | 49 | 0b_1111_0000...0b_1111_0111 => Ok(3), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:59:35 | 59 | 0b_0000_0000_0000_0000...0b_1101_0111_1111_1111 => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:60:35 | 60 | 0b_1101_1000_0000_0000...0b_1101_1011_1111_1111 => Ok(true), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:61:35 | 61 | 0b_1101_1100_0000_0000...0b_1101_1111_1111_1111 => Err(InvalidUtf16FirstUnit), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> tests/errs.rs:62:35 | 62 | 0b_1110_0000_0000_0000...0b_1111_1111_1111_1111 => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `encode_unicode` (lib test) generated 58 warnings (58 duplicates) warning: `encode_unicode` (test "errs") generated 10 warnings Finished release [optimized] target(s) in 41.76s Running `/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/encode_unicode-c16339ec7af9491d` running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running `/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/errs-c76ffcbe344f39dd` running 12 tests test from_utf16_slice_start ... ok test from_str_start ... ok test from_u32 ... ok test utf8_codepoint_is_too_high ... ok test utf16_extra_unit ... ok test utf8_codepoint_is_utf16_reserved ... ok test utf8_extra_bytes ... ok test from_utf16_tuple ... ok test utf8_first_is_continuation_byte ... ok test utf8_not_continuation_byte ... ok test utf8_overlong ... ok test utf8_too_long ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running `/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/exhaustive-5bb9f62d836e79ca` running 2 tests test from_ascii ... ok test from_bmp ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running `/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/iterators-2cc2aa6762e941d5` running 8 tests test read_single_ascii ... ok test read_single_nonascii ... ok test utf16chardecoder ... ok test utf16charmerger ... ok test utf8charsplitter_read_all_sizes ... ok test utf8charmerger ... ok test utf8chardecoder ... ok test utf8charsplitter_alternate_iter_read ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running `/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/oks-6b01670ac63f75b4` running 5 tests test all ... ignored test equal_defaults ... ok test utf16chars_to_string ... ok test same_size_as_char ... ok test edges_middle ... ok test result: ok. 4 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.06s Doc-tests encode_unicode Running `/usr/bin/rustdoc --crate-type lib --crate-name encode_unicode --test /builddir/build/BUILD/encode_unicode-0.3.6/src/lib.rs -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps -L dependency=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps --extern encode_unicode=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/libencode_unicode-f153f0d98f4e7cb2.rlib --extern lazy_static=/builddir/build/BUILD/encode_unicode-0.3.6/target/release/deps/liblazy_static-abf0522e0b145818.rlib -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' --error-format human` warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:61:18 | 61 | n @ 1...3 => Ok(n as usize), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:145:20 | 145 | 0x00_00...0xd7_ff | 0xe0_00...0xff_ff => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:145:40 | 145 | 0x00_00...0xd7_ff | 0xe0_00...0xff_ff => Ok(false), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:146:20 | 146 | 0xd8_00...0xdb_ff => Ok(true), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:497:31 | 497 | (Some(&u @ 0x00_00...0xd7_ff), _) | | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:498:31 | 498 | (Some(&u @ 0xe0_00...0xff_ff), _) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:500:19 | 500 | (Some(&0xdc_00...0xdf_ff), _) => Err(FirstLowSurrogate), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xdc_00..=0xdf_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:502:31 | 502 | (Some(&f @ 0xd8_00...0xdb_ff), Some(&s @ 0xdc_00...0xdf_ff)) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:502:61 | 502 | (Some(&f @ 0xd8_00...0xdb_ff), Some(&s @ 0xdc_00...0xdf_ff)) | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:504:19 | 504 | (Some(&0xd8_00...0xdb_ff), Some(_)) => Err(SecondNotLowSurrogate), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xd8_00..=0xdb_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:505:19 | 505 | (Some(&0xd8_00...0xdb_ff), None) => Err(MissingSecond), | ^^^^^^^^^^^^^^^^^^ help: use `..=` for an inclusive range: `&(0xd8_00..=0xdb_ff)` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:526:21 | 526 | (0x00_00...0xd7_ff, None) | // single | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:527:21 | 527 | (0xe0_00...0xff_ff, None) | // single | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:528:21 | 528 | (0xd8_00...0xdb_ff, Some(0xdc_00...0xdf_ff)) // correct surrogate | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:528:45 | 528 | (0xd8_00...0xdb_ff, Some(0xdc_00...0xdf_ff)) // correct surrogate | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:530:21 | 530 | (0xd8_00...0xdb_ff, Some(_)) => Err(InvalidSecond), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:531:21 | 531 | (0xd8_00...0xdb_ff, None ) => Err(MissingSecond), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/traits.rs:532:21 | 532 | (0xdc_00...0xdf_ff, _ ) => Err(FirstIsTrailingSurrogate), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/utf8_char.rs:85:19 | 85 | (a @ 0...0x00_7f, _) => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/utf8_char.rs:88:19 | 88 | (u @ 0...0x07_ff, _) => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/utf16_char.rs:442:14 | 442 | 0...127 => {// 1 byte => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/utf16_char.rs:446:24 | 446 | 0b1000_0000...0b1101_1111 => {// 2 bytes => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/utf16_char.rs:451:24 | 451 | 0b1110_0000...0b1110_1111 => {// 3 bytes => 1 unit | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:146:28 | 146 | 0b0000_0000...0b0111_1111 => {/*1 and */Ok(())}, | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:147:28 | 147 | 0b1100_0010...0b1101_1111 => {//2 and not overlong | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:150:28 | 150 | 0b1110_0000...0b1110_1111 => {//3 | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:163:28 | 163 | 0b1111_0000...0b1111_0100 => {//4 | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:176:28 | 176 | 0b1000_0000...0b1011_1111 => {// continuation byte | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:179:28 | 179 | 0b1100_0000...0b1100_0001 => {// 2 and overlong | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:182:28 | 182 | 0b1111_0101...0b1111_0111 => {// 4 and too high codepoint | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `...` range patterns are deprecated --> /builddir/build/BUILD/encode_unicode-0.3.6/src/decoding_iterators.rs:185:28 | 185 | 0b1111_1000...0b1111_1111 => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: 31 warnings emitted running 54 tests test src/decoding_iterators.rs - decoding_iterators::Utf8CharMerger::into_inner (line 66) ... ok test src/decoding_iterators.rs - decoding_iterators::Utf8CharMerger::into_inner (line 75) ... ok test src/decoding_iterators.rs - decoding_iterators::Utf8CharDecoder<'a>::as_slice (line 241) ... ok test src/decoding_iterators.rs - decoding_iterators::Utf16CharMerger::into_inner (line 348) ... ok test src/decoding_iterators.rs - decoding_iterators::Utf16CharDecoder<'a>::as_slice (line 445) ... ok test src/decoding_iterators.rs - decoding_iterators::Utf16CharMerger::into_inner (line 338) ... ok test src/decoding_iterators.rs - decoding_iterators::Utf8CharMerger::into_inner (line 83) ... ok test src/decoding_iterators.rs - decoding_iterators::Utf16CharMerger::into_remaining_units (line 366) ... ok test src/traits.rs - traits::CharExt::from_utf16_array_unchecked (line 333) ... ok test src/traits.rs - traits::CharExt::to_utf16_array (line 200) ... ok test src/traits.rs - traits::CharExt::from_u32_detailed (line 359) ... ok test src/traits.rs - traits::CharExt::from_utf8_slice_start (line 235) ... ok test src/traits.rs - traits::CharExt::from_utf8_array (line 267) ... ok test src/traits.rs - traits::CharExt::to_utf16_tuple (line 214) ... ok test src/traits.rs - traits::CharExt::from_utf16_array (line 290) ... ok test src/traits.rs - traits::IterExt::to_bytes (line 673) ... ok test src/traits.rs - traits::IterExt::to_units (line 725) ... ok test src/traits.rs - traits::IterExt::to_bytes (line 695) ... ok test src/traits.rs - traits::IterExt::to_utf16chars (line 825) ... ok test src/traits.rs - traits::IterExt::to_utf16chars (line 842) ... ok test src/traits.rs - traits::IterExt::to_units (line 737) ... ok test src/traits.rs - traits::IterExt::to_utf16chars (line 813) ... ok test src/traits.rs - traits::IterExt::to_bytes (line 684) ... ok test src/traits.rs - traits::IterExt::to_utf8chars (line 762) ... ok test src/traits.rs - traits::SliceExt::utf16char_indices (line 975) ... ok test src/traits.rs - traits::IterExt::to_utf8chars (line 777) ... ok test src/traits.rs - traits::SliceExt::utf16char_indices (line 988) ... ok test src/traits.rs - traits::SliceExt::utf16char_indices (line 957) ... ok test src/traits.rs - traits::IterExt::to_utf8chars (line 791) ... ok test src/traits.rs - traits::SliceExt::utf8char_indices (line 894) ... ok test src/traits.rs - traits::SliceExt::utf8char_indices (line 882) ... ok test src/traits.rs - traits::SliceExt::utf8char_indices (line 910) ... ok test src/utf16_char.rs - utf16_char::Utf16Char (line 367) ... ok test src/utf16_char.rs - utf16_char::Utf16Char (line 352) ... ok test src/utf16_char.rs - utf16_char::Utf16Char::from_array (line 495) ... ok test src/utf16_char.rs - utf16_char::Utf16Char::from_bmp (line 556) ... ok test src/utf16_char.rs - utf16_char::Utf16Char::is_bmp (line 584) ... ok test src/utf16_char.rs - utf16_char::Utf16Char::from_str_start (line 426) ... ok test src/utf16_char.rs - utf16_char::Utf16Char::from_str (line 60) ... ok test src/utf16_iterators.rs - utf16_iterators::Utf16CharIndices<'a>::as_str (line 172) ... ok test src/utf16_iterators.rs - utf16_iterators::Utf16Chars<'a>::as_str (line 239) ... ok test src/utf16_iterators.rs - utf16_iterators::iter_units (line 82) ... ok test src/utf8_char.rs - utf8_char::Utf8Char (line 337) ... ok test src/utf8_char.rs - utf8_char::Utf8Char::from_array (line 466) ... ok test src/utf8_char.rs - utf8_char::Utf8Char::from_ascii (line 514) ... ok test src/utf8_char.rs - utf8_char::Utf8Char::from_slice_start (line 423) ... ok test src/utf16_iterators.rs - utf16_iterators::iter_units (line 93) ... ok test src/utf8_char.rs - utf8_char::Utf8Char::from_str (line 59) ... ok test src/utf8_char.rs - utf8_char::Utf8Char::from_str_start (line 393) ... ok test src/utf8_iterators.rs - utf8_iterators::Utf8CharIndices<'a>::as_str (line 252) ... ok test src/utf8_iterators.rs - utf8_iterators::Utf8Chars<'a>::as_str (line 321) ... ok test src/utf8_iterators.rs - utf8_iterators::iter_bytes (line 104) ... ok test src/utf8_iterators.rs - utf8_iterators::iter_bytes (line 126) ... ok test src/utf8_iterators.rs - utf8_iterators::iter_bytes (line 115) ... ok test result: ok. 54 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 58.78s + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rust-encode_unicode-devel-0.3.6-9.fc37.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.eylCsw + umask 022 + cd /builddir/build/BUILD + cd encode_unicode-0.3.6 + DOCDIR=/builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/doc/rust-encode_unicode-devel + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/doc/rust-encode_unicode-devel + cp -pr README.md /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/doc/rust-encode_unicode-devel + cp -pr RELEASES.md /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/doc/rust-encode_unicode-devel + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.XZ9Pdl + umask 022 + cd /builddir/build/BUILD + cd encode_unicode-0.3.6 + LICENSEDIR=/builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/licenses/rust-encode_unicode-devel + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/licenses/rust-encode_unicode-devel + cp -pr LICENSE-MIT /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/licenses/rust-encode_unicode-devel + cp -pr LICENSE-APACHE /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64/usr/share/licenses/rust-encode_unicode-devel + RPM_EC=0 ++ jobs -p + exit 0 Provides: crate(encode_unicode) = 0.3.6 rust-encode_unicode-devel = 0.3.6-9.fc37 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo Processing files: rust-encode_unicode+default-devel-0.3.6-9.fc37.noarch Provides: crate(encode_unicode/default) = 0.3.6 rust-encode_unicode+default-devel = 0.3.6-9.fc37 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo crate(encode_unicode) = 0.3.6 crate(encode_unicode/std) = 0.3.6 Processing files: rust-encode_unicode+ascii-devel-0.3.6-9.fc37.noarch Provides: crate(encode_unicode/ascii) = 0.3.6 rust-encode_unicode+ascii-devel = 0.3.6-9.fc37 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (crate(ascii) >= 0.8.0 with crate(ascii) < 2.0.0~) cargo crate(encode_unicode) = 0.3.6 Processing files: rust-encode_unicode+std-devel-0.3.6-9.fc37.noarch Provides: crate(encode_unicode/std) = 0.3.6 rust-encode_unicode+std-devel = 0.3.6-9.fc37 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo crate(encode_unicode) = 0.3.6 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64 Wrote: /builddir/build/SRPMS/rust-encode_unicode-0.3.6-9.fc37.src.rpm Wrote: /builddir/build/RPMS/rust-encode_unicode+default-devel-0.3.6-9.fc37.noarch.rpm Wrote: /builddir/build/RPMS/rust-encode_unicode+ascii-devel-0.3.6-9.fc37.noarch.rpm Wrote: /builddir/build/RPMS/rust-encode_unicode+std-devel-0.3.6-9.fc37.noarch.rpm Wrote: /builddir/build/RPMS/rust-encode_unicode-devel-0.3.6-9.fc37.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Ycs9kG + umask 022 + cd /builddir/build/BUILD + cd encode_unicode-0.3.6 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rust-encode_unicode-0.3.6-9.fc37.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.Od0cEt + umask 022 + cd /builddir/build/BUILD + rm -rf encode_unicode-0.3.6 encode_unicode-0.3.6.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0