[INFO] cloning repository https://github.com/HYliangkai/rustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HYliangkai/rustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHYliangkai%2FrustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHYliangkai%2FrustStudy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5961df6b1652305ae5a01e8f533316d15b27d087 [INFO] checking HYliangkai/rustStudy/5961df6b1652305ae5a01e8f533316d15b27d087 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHYliangkai%2FrustStudy" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HYliangkai/rustStudy on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HYliangkai/rustStudy [INFO] finished tweaking git repo https://github.com/HYliangkai/rustStudy [INFO] tweaked toml for git repo https://github.com/HYliangkai/rustStudy written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HYliangkai/rustStudy 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] adea43766354cbf87125e1f4ea967944d3da009c495071c80c4971eac332529a [INFO] running `Command { std: "docker" "start" "-a" "adea43766354cbf87125e1f4ea967944d3da009c495071c80c4971eac332529a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "adea43766354cbf87125e1f4ea967944d3da009c495071c80c4971eac332529a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adea43766354cbf87125e1f4ea967944d3da009c495071c80c4971eac332529a", kill_on_drop: false }` [INFO] [stdout] adea43766354cbf87125e1f4ea967944d3da009c495071c80c4971eac332529a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d51bf894308bfe1b1514287f2c4a64294f2b2dab66d598d90d1ec4d2e354cf0 [INFO] running `Command { std: "docker" "start" "-a" "3d51bf894308bfe1b1514287f2c4a64294f2b2dab66d598d90d1ec4d2e354cf0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking study v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/smart_point/boxer.rs (1 fix) [INFO] [stderr] Fixed src/smart_point/celler.rs (1 fix) [INFO] [stderr] Fixed src/asyncer/feat.rs (1 fix) [INFO] [stderr] Fixed src/data_structure/hashmap.rs (1 fix) [INFO] [stderr] Fixed src/pack/find_me.rs (1 fix) [INFO] [stderr] Fixed src/error/mod.rs (1 fix) [INFO] [stdout] warning: type `can_iterator` should have an upper camel case name [INFO] [stdout] --> src/fp/iterator.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct can_iterator { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CanIterator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin_pin` [INFO] [stdout] --> src/asyncer/feat.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let origin_pin = Pin::new(&mut p); //或是Pin::new()创建简易类型的pin [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin_pin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/asyncer/feat.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let a = futures::poll!(box_pin); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/asyncer/feat.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | res=get_book().fuse()=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/asyncer/feat.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | res=get_music().fuse() =>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `boc` [INFO] [stdout] --> src/error/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let boc = aoc.clone()?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_boc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter_one` [INFO] [stdout] --> src/fp/iterator.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let iter_one = can_iterator::new(0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iter_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter_two` [INFO] [stdout] --> src/fp/iterator.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let iter_two = like_arr.iter(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iter_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `co` [INFO] [stdout] --> src/life_time/mod.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn use_life_time<'a>(co: &'a str, de: &'a str) -> &'a str { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_co` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `de` [INFO] [stdout] --> src/life_time/mod.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn use_life_time<'a>(co: &'a str, de: &'a str) -> &'a str { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_de` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/oop/traiter.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | fn say(code: ::RunType) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/oop/traiter.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | fn say(code: ::RunType) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aaa` [INFO] [stdout] --> src/possession/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let ref aaa = vec![12, 3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aaa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res1` [INFO] [stdout] --> src/possession/mod.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | let &res1 = b1; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_res1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res2` [INFO] [stdout] --> src/possession/mod.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let res2 = *b2; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_res2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_one` [INFO] [stdout] --> src/smart_point/boxer.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let list_one = Cons(1, Box::new(Cons(2, Box::new(Nil)))); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cod` [INFO] [stdout] --> src/typer/generics.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn use_generics_first(cod: T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cod` [INFO] [stdout] --> src/typer/generics.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | fn generice_contract(cod: T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `craete_other_func` is never used [INFO] [stdout] --> src/asyncer/feat.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | async fn craete_other_func() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_async_func` is never used [INFO] [stdout] --> src/asyncer/feat.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn create_async_func() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_book` is never used [INFO] [stdout] --> src/asyncer/feat.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | async fn get_book() -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_music` is never used [INFO] [stdout] --> src/asyncer/feat.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | async fn get_music() -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `future_method` is never used [INFO] [stdout] --> src/asyncer/feat.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn future_method() -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `uu_test` is never used [INFO] [stdout] --> src/error/mod.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn uu_test() -> Option<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> src/life_time/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Alife<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 31 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | age: &'a str, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prod` is never used [INFO] [stdout] --> src/macroer/proceduralMacros.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn prod() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deri` is never used [INFO] [stdout] --> src/macroer/proceduralMacros.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn deri() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lsxh` is never used [INFO] [stdout] --> src/macroer/proceduralMacros.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn lsxh() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lhsh` is never used [INFO] [stdout] --> src/macroer/proceduralMacros.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn lhsh() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IPNetWork` is never used [INFO] [stdout] --> src/matchter/enumer.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum IPNetWork { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `found_ip` is never used [INFO] [stdout] --> src/matchter/enumer.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl IPNetWork { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 13 | pub fn found_ip(ip_str: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NeedToMatch` is never used [INFO] [stdout] --> src/matchter/matcher.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum NeedToMatch { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SutOne` is never constructed [INFO] [stdout] --> src/oop/structer.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct SutOne { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SutOne` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SutTuple` is never constructed [INFO] [stdout] --> src/oop/structer.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct SutTuple(i32, i32); //注意元组struct要以;结尾 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StuNull` is never constructed [INFO] [stdout] --> src/oop/structer.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct StuNull; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `age`, `sex`, and `address` are never read [INFO] [stdout] --> src/oop/traiter.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | age: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | sex: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | address: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `PI` and `new` are never used [INFO] [stdout] --> src/oop/traiter.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 18 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 19 | //impl中还可以存放const作为一个静态的变量;想要使用要使用 Struct::const 来使用 [INFO] [stdout] 20 | const PI: f64 = 3.14159; [INFO] [stdout] | ^^ [INFO] [stdout] 21 | //还可以声明static [INFO] [stdout] 22 | fn new(name: String, age: i32, sex: bool, address: Option) -> User { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `change_age` and `get_age` are never used [INFO] [stdout] --> src/oop/traiter.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl User { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | fn change_age(&mut self, age: i32) -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn get_age(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vec` is never read [INFO] [stdout] --> src/smart_point/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct LikeString { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 14 | vec: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/smart_point/boxer.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `listting` is never used [INFO] [stdout] --> src/smart_point/boxer.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn listting() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tree` is never constructed [INFO] [stdout] --> src/smart_point/weeker.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/smart_point/celler.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_address` is never used [INFO] [stdout] --> src/smart_point/celler.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 51 | fn set_address(&self, ch: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `总结` is never constructed [INFO] [stdout] --> src/smart_point/celler.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct 总结 {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/smart_point/rcer.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/typer/generics.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Fcc` is never used [INFO] [stdout] --> src/typer/generics.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait Fcc {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generice_contract` is never used [INFO] [stdout] --> src/typer/generics.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn generice_contract(cod: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Fdd` is never used [INFO] [stdout] --> src/typer/generics.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | trait Fdd {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Fee` is never used [INFO] [stdout] --> src/typer/generics.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | trait Fee {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_where_keyword` is never used [INFO] [stdout] --> src/typer/generics.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn use_where_keyword() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DefaultGenerics` is never constructed [INFO] [stdout] --> src/typer/generics.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct DefaultGenerics { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/typer/generics.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Run` is never used [INFO] [stdout] --> src/typer/generics.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | trait Run { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_world` is never used [INFO] [stdout] --> src/typer/generics.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn hello_world(a: &dyn Run) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/fp/closures.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut A = 0; [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `declarativeMacros` should have a snake case name [INFO] [stdout] --> src/macroer/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub mod declarativeMacros; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `declarative_macros` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `proceduralMacros` should have a snake case name [INFO] [stdout] --> src/macroer/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub mod proceduralMacros; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `procedural_macros` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `sonB` should have a snake case name [INFO] [stdout] --> src/pack/mod.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | pub mod sonB { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `son_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `sonC` should have a snake case name [INFO] [stdout] --> src/pack/mod.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | pub mod sonC { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `son_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sonC_say` should have a snake case name [INFO] [stdout] --> src/pack/mod.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn sonC_say() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `son_c_say` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/var.rs from 2021 edition to 2024 [INFO] [stdout] error[E0425]: cannot find function `block_on` in this scope [INFO] [stdout] --> src/asyncer/feat.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | block_on(future_method()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use futures::executor::block_on; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/data_structure/hashmap.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | let mut hm1: HashMap<&str, &str> = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/data_structure/hashmap.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | let mut hm1: HashMap<&str, &str> = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/data_structure/hashmap.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | let mut _hm2 = HashMap::from([(12, 13)]); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/data_structure/hashmap.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | let mut map = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope [INFO] [stdout] --> src/error/mod.rs:95:39 [INFO] [stdout] | [INFO] [stdout] 95 | fn use_result() -> Result<(), Box> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/error/mod.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let a = File::open("a.txt")?; [INFO] [stdout] | ^^^^ use of undeclared type `File` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/smart_point/boxer.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | SystemTime::now() [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UNIX_EPOCH` in this scope [INFO] [stdout] --> src/smart_point/boxer.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | .duration_since(UNIX_EPOCH) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::UNIX_EPOCH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/smart_point/boxer.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | SystemTime::now() [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UNIX_EPOCH` in this scope [INFO] [stdout] --> src/smart_point/boxer.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | .duration_since(UNIX_EPOCH) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::UNIX_EPOCH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rc` in this scope [INFO] [stdout] --> src/smart_point/celler.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | name: Rc>, [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/smart_point/celler.rs:80:15 [INFO] [stdout] | [INFO] [stdout] 80 | name: Rc::new(RefCell::new("jiojio".to_owned())), [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/smart_point/celler.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | let p2 = Rc::clone(&p1.name); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/smart_point/celler.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | let p3 = Rc::clone(&p1.name); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/smart_point/celler.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | println!("修改前 : {:?}", Rc::clone(&p1.name).borrow()); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/smart_point/celler.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | println!("第一次修改 : {:?}", Rc::clone(&p1.name).borrow()); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/smart_point/celler.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | println!("第二次修改 : {:?}", Rc::clone(&p1.name).borrow()); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `some_type` should have an upper camel case name [INFO] [stdout] --> src/data_structure/vector.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | enum some_type { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `SomeType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `typp1` should have an upper camel case name [INFO] [stdout] --> src/data_structure/vector.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | typp1(i32), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Typp1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `typp2` should have an upper camel case name [INFO] [stdout] --> src/data_structure/vector.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | typp2(String), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Typp2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `typp3` should have an upper camel case name [INFO] [stdout] --> src/data_structure/vector.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | typp3(i64), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Typp3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `can_iterator` should have an upper camel case name [INFO] [stdout] --> src/fp/iterator.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct can_iterator { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CanIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `wantmatch` should have an upper camel case name [INFO] [stdout] --> src/matchter/matcher.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | struct wantmatch { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Wantmatch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin_pin` [INFO] [stdout] --> src/asyncer/feat.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let origin_pin = Pin::new(&mut p); //或是Pin::new()创建简易类型的pin [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin_pin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/asyncer/feat.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let a = futures::poll!(box_pin); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/asyncer/feat.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | res=get_book().fuse()=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/asyncer/feat.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | res=get_music().fuse() =>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `study` (lib test) due to 19 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: value assigned to `js` is never read [INFO] [stdout] --> src/variable/mod.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut js = "123".to_string(); [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: variable `y` is assigned to, but never used [INFO] [stdout] --> src/variable/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut y: i32 = 2; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_y` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/variable/mod.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let z = y = x; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3d51bf894308bfe1b1514287f2c4a64294f2b2dab66d598d90d1ec4d2e354cf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d51bf894308bfe1b1514287f2c4a64294f2b2dab66d598d90d1ec4d2e354cf0", kill_on_drop: false }` [INFO] [stdout] 3d51bf894308bfe1b1514287f2c4a64294f2b2dab66d598d90d1ec4d2e354cf0