[INFO] cloning repository https://github.com/rongfengliang/rust-mod-workspace [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rongfengliang/rust-mod-workspace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frongfengliang%2Frust-mod-workspace", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frongfengliang%2Frust-mod-workspace'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b4ae69f044a445c3822b510f7baf49055f4914db [INFO] checking rongfengliang/rust-mod-workspace against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frongfengliang%2Frust-mod-workspace" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rongfengliang/rust-mod-workspace [INFO] finished tweaking git repo https://github.com/rongfengliang/rust-mod-workspace [INFO] tweaked toml for git repo https://github.com/rongfengliang/rust-mod-workspace written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rongfengliang/rust-mod-workspace on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rongfengliang/rust-mod-workspace already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76a74cff47dfb7ff8f8a6aeda4c4bf8c2ac0fbb77cce6afde7648644ad8fd172 [INFO] running `Command { std: "docker" "start" "-a" "76a74cff47dfb7ff8f8a6aeda4c4bf8c2ac0fbb77cce6afde7648644ad8fd172", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76a74cff47dfb7ff8f8a6aeda4c4bf8c2ac0fbb77cce6afde7648644ad8fd172", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76a74cff47dfb7ff8f8a6aeda4c4bf8c2ac0fbb77cce6afde7648644ad8fd172", kill_on_drop: false }` [INFO] [stdout] 76a74cff47dfb7ff8f8a6aeda4c4bf8c2ac0fbb77cce6afde7648644ad8fd172 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91278a04b10926caf9b4f49d9df6a615ff81afd26088efac935c1487826576ab [INFO] running `Command { std: "docker" "start" "-a" "91278a04b10926caf9b4f49d9df6a615ff81afd26088efac935c1487826576ab", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.38 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling ryu v0.2.8 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling serde v1.0.93 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking users v0.1.0 (/opt/rustwide/workdir/lib/users) [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking app-modmetrics v0.1.0 (/opt/rustwide/workdir/lib/modmetrics) [INFO] [stderr] Checking moddemo v0.1.0 (/opt/rustwide/workdir/lib/moddemo) [INFO] [stderr] Checking libmods v0.1.0 (/opt/rustwide/workdir/lib/libmods) [INFO] [stderr] Checking macros_lib v0.1.0 (/opt/rustwide/workdir/learning/macros_lib) [INFO] [stdout] warning: constant `X` is never used [INFO] [stdout] --> lib/users/src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | const X: i32 = 10; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking macros v0.1.0 (/opt/rustwide/workdir/learning/macros) [INFO] [stderr] Checking closure v0.1.0 (/opt/rustwide/workdir/learning/closure) [INFO] [stderr] Checking traits v0.1.0 (/opt/rustwide/workdir/learning/traits) [INFO] [stderr] Checking usersmain v0.1.0 (/opt/rustwide/workdir/lib/usersmain) [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking function v0.1.0 (/opt/rustwide/workdir/learning/function) [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> learning/macros/src/macros.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}","this is a demo"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: learning/macros/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | dalong_demo!() [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `dalong_demo` [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dalong_demo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> learning/closure/src/main.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn make_adder(x:i32) -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 2 | fn make_adder(x:i32) -> Box i32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_adder` is never used [INFO] [stdout] --> learning/closure/src/main.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn make_adder(x:i32) -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking matchs v0.1.0 (/opt/rustwide/workdir/learning/matchs) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> learning/traits/src/app/defaultlogin.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | if (username=="dalong"&&userpassword=="dalong") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if (username=="dalong"&&userpassword=="dalong") { [INFO] [stdout] 12 + if username=="dalong"&&userpassword=="dalong" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> learning/traits/src/app/defaultlogin.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | if (self.name==username && self.password==userpassword){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - if (self.name==username && self.password==userpassword){ [INFO] [stdout] 21 + if self.name==username && self.password==userpassword { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `myfn` is never read [INFO] [stdout] --> learning/function/src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut myfn:fn(first:i32,second: i32)->i32= add; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking arrays v0.1.0 (/opt/rustwide/workdir/learning/arrays) [INFO] [stdout] warning: unused variable: `moddemo` [INFO] [stdout] --> lib/usersmain/src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let moddemo =UserLogin{name:"dlaongdemo".into()}; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_moddemo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `appdefaultop2` [INFO] [stdout] --> lib/usersmain/src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let appdefaultop2 = appdefault.add(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_appdefaultop2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `first`, `second`, and `third` are never read [INFO] [stdout] --> lib/usersmain/src/app/add.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Add{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 3 | pub first: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | pub second: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | pub third: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Add` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rong` is never constructed [INFO] [stdout] --> lib/usersmain/src/app/add.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Rong<'a>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `moddemo` [INFO] [stdout] --> lib/usersmain/src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let moddemo =UserLogin{name:"dlaongdemo".into()}; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_moddemo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `appdefaultop2` [INFO] [stdout] --> lib/usersmain/src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let appdefaultop2 = appdefault.add(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_appdefaultop2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rc-demo v0.1.0 (/opt/rustwide/workdir/learning/rc-demo) [INFO] [stdout] warning: fields `first`, `second`, and `third` are never read [INFO] [stdout] --> lib/usersmain/src/app/add.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Add{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 3 | pub first: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | pub second: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | pub third: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Add` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rong` is never constructed [INFO] [stdout] --> lib/usersmain/src/app/add.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Rong<'a>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> learning/traits/src/app/defaultlogin.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | if (username=="dalong"&&userpassword=="dalong") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if (username=="dalong"&&userpassword=="dalong") { [INFO] [stdout] 12 + if username=="dalong"&&userpassword=="dalong" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> learning/traits/src/app/defaultlogin.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | if (self.name==username && self.password==userpassword){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - if (self.name==username && self.password==userpassword){ [INFO] [stdout] 21 + if self.name==username && self.password==userpassword { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> learning/matchs/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut usertoken: Option = Some("dalongdemo".into()); [INFO] [stdout] | -----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `X` is never used [INFO] [stdout] --> lib/users/src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | const X: i32 = 10; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lifetime v0.1.0 (/opt/rustwide/workdir/learning/lifetime) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> learning/matchs/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut usertoken: Option = Some("dalongdemo".into()); [INFO] [stdout] | -----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rong::Rong` [INFO] [stdout] --> learning/lifetime/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rong::Rong; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> learning/lifetime/src/rong.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut rong = Rong{first_name:"dalong",second_name:"demoapp",third_name:"demoapp"}; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rong` is never constructed [INFO] [stdout] --> learning/lifetime/src/rong.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Rong<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `printname` and `demo` are never used [INFO] [stdout] --> learning/lifetime/src/rong.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> Rong<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 9 | pub fn printname(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn demo(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> learning/closure/src/main.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn make_adder(x:i32) -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 2 | fn make_adder(x:i32) -> Box i32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `myfn` is never read [INFO] [stdout] --> learning/function/src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut myfn:fn(first:i32,second: i32)->i32= add; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_adder` is never used [INFO] [stdout] --> learning/closure/src/main.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn make_adder(x:i32) -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rong::Rong` [INFO] [stdout] --> learning/lifetime/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rong::Rong; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> learning/lifetime/src/rong.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut rong = Rong{first_name:"dalong",second_name:"demoapp",third_name:"demoapp"}; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rong` is never constructed [INFO] [stdout] --> learning/lifetime/src/rong.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Rong<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `printname` and `demo` are never used [INFO] [stdout] --> learning/lifetime/src/rong.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> Rong<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 9 | pub fn printname(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn demo(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> learning/macros/src/macros.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}","this is a demo"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: learning/macros/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | dalong_demo!() [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `dalong_demo` [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dalong_demo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking cliapp v0.1.0 (/opt/rustwide/workdir/learning/cliapp) [INFO] [stderr] Compiling serde_derive v1.0.93 [INFO] [stderr] Checking serde_json v1.0.39 [INFO] [stderr] Checking mod-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `aaa` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use users::{user,aaa}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aaa` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use users::{user,aaa}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `demo` is never used [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn demo(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Point` [INFO] [stdout] 12 | struct Point { [INFO] [stdout] | ----- `Point` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Point` [INFO] [stdout] 12 | struct Point { [INFO] [stdout] | ----- `Point` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `demo` is never used [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn demo(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Point` [INFO] [stdout] 12 | struct Point { [INFO] [stdout] | ----- `Point` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Point` [INFO] [stdout] 12 | struct Point { [INFO] [stdout] | ----- `Point` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.20s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: macros v0.1.0 (/opt/rustwide/workdir/learning/macros) [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "91278a04b10926caf9b4f49d9df6a615ff81afd26088efac935c1487826576ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91278a04b10926caf9b4f49d9df6a615ff81afd26088efac935c1487826576ab", kill_on_drop: false }` [INFO] [stdout] 91278a04b10926caf9b4f49d9df6a615ff81afd26088efac935c1487826576ab