[INFO] cloning repository https://github.com/kyssion/rust-study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kyssion/rust-study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyssion%2Frust-study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyssion%2Frust-study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c4fa9adb4ec4719216c8fd289a8419dbc132bef [INFO] checking kyssion/rust-study against try#c8bdaa84ec1b37f18f30375e196a65b7602f3790 for pr-73345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyssion%2Frust-study" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyssion/rust-study on toolchain c8bdaa84ec1b37f18f30375e196a65b7602f3790 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kyssion/rust-study [INFO] finished tweaking git repo https://github.com/kyssion/rust-study [INFO] tweaked toml for git repo https://github.com/kyssion/rust-study written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/kyssion/rust-study already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e7cfc660368931aac9fb7e0cf56e8b8f111f33d83143c7428d6147d51490a90 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7e7cfc660368931aac9fb7e0cf56e8b8f111f33d83143c7428d6147d51490a90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e7cfc660368931aac9fb7e0cf56e8b8f111f33d83143c7428d6147d51490a90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e7cfc660368931aac9fb7e0cf56e8b8f111f33d83143c7428d6147d51490a90", kill_on_drop: false }` [INFO] [stdout] 7e7cfc660368931aac9fb7e0cf56e8b8f111f33d83143c7428d6147d51490a90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e84f7e4e4896ba3deaadda0a8dfca8e70bfd95112db93e425cd5fc8263f3c567 [INFO] running `Command { std: "docker" "start" "-a" "e84f7e4e4896ba3deaadda0a8dfca8e70bfd95112db93e425cd5fc8263f3c567", kill_on_drop: false }` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking rust_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | /// b 获取了 新的所有权范围,所以可以使用了 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | /// [INFO] [stdout] | ^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | /// 这之间不能存在修改原始数据的逻辑,和 元数据的&mut 引用 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | /// [INFO] [stdout] | ^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | /// [INFO] [stdout] | ^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | /// 以第二次为准 , 使用第一次出现问题 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | /// a 变量所有权下移,但前失去了a的所有权 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | let b = add_str_no_clone(a); [INFO] [stdout] | ---------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / /// 错误 ,这个时候所有权已经转移到了b中了 [INFO] [stdout] 59 | | ///a.push_str("test"); [INFO] [stdout] | |__________________________^ [INFO] [stdout] 60 | [INFO] [stdout] 61 | c.push_str("test"); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | /// 之后就可以进行处理了 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | a.push_str("test"); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | /// a 的第一次借阅 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | let item = &mut a; [INFO] [stdout] | ------------------ rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | /// 这个函数也用了借阅 所以是第二次 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | a.push_str("test"); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `test` should have an upper camel case name [INFO] [stdout] --> src/test4.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | struct test{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | /// b 获取了 新的所有权范围,所以可以使用了 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | /// [INFO] [stdout] | ^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | /// 这之间不能存在修改原始数据的逻辑,和 元数据的&mut 引用 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | /// [INFO] [stdout] | ^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | /// [INFO] [stdout] | ^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | /// 以第二次为准 , 使用第一次出现问题 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | /// a 变量所有权下移,但前失去了a的所有权 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | let b = add_str_no_clone(a); [INFO] [stdout] | ---------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / /// 错误 ,这个时候所有权已经转移到了b中了 [INFO] [stdout] 59 | | ///a.push_str("test"); [INFO] [stdout] | |__________________________^ [INFO] [stdout] 60 | [INFO] [stdout] 61 | c.push_str("test"); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | /// 之后就可以进行处理了 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | a.push_str("test"); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | /// a 的第一次借阅 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | let item = &mut a; [INFO] [stdout] | ------------------ rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/test3.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | /// 这个函数也用了借阅 所以是第二次 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | a.push_str("test"); [INFO] [stdout] | ------------------ rustdoc does not generate documentation for expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `test` should have an upper camel case name [INFO] [stdout] --> src/test4.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | struct test{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | return loop { [INFO] [stdout] | ______^______- [INFO] [stdout] | | _____| [INFO] [stdout] | || [INFO] [stdout] 89 | || let b = if 123>111 { [INFO] [stdout] 90 | || 123 [INFO] [stdout] 91 | || }else{ [INFO] [stdout] 92 | || 444 [INFO] [stdout] 93 | || }; [INFO] [stdout] 94 | || } [INFO] [stdout] | || ^ [INFO] [stdout] | ||_____| [INFO] [stdout] | |______unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/test4.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | Vec::new(); [INFO] [stdout] | ^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | return loop { [INFO] [stdout] | ______^______- [INFO] [stdout] | | _____| [INFO] [stdout] | || [INFO] [stdout] 89 | || let b = if 123>111 { [INFO] [stdout] 90 | || 123 [INFO] [stdout] 91 | || }else{ [INFO] [stdout] 92 | || 444 [INFO] [stdout] 93 | || }; [INFO] [stdout] 94 | || } [INFO] [stdout] | || ^ [INFO] [stdout] | ||_____| [INFO] [stdout] | |______unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_test`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/test4.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | Vec::new(); [INFO] [stdout] | ^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e84f7e4e4896ba3deaadda0a8dfca8e70bfd95112db93e425cd5fc8263f3c567", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e84f7e4e4896ba3deaadda0a8dfca8e70bfd95112db93e425cd5fc8263f3c567", kill_on_drop: false }` [INFO] [stdout] e84f7e4e4896ba3deaadda0a8dfca8e70bfd95112db93e425cd5fc8263f3c567