[INFO] cloning repository https://github.com/mreboland/rustReferenceSafety [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mreboland/rustReferenceSafety" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmreboland%2FrustReferenceSafety", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmreboland%2FrustReferenceSafety'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37d51535d9c98084128a8a12d65cb8dedafef272 [INFO] checking mreboland/rustReferenceSafety against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmreboland%2FrustReferenceSafety" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mreboland/rustReferenceSafety on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mreboland/rustReferenceSafety [INFO] finished tweaking git repo https://github.com/mreboland/rustReferenceSafety [INFO] tweaked toml for git repo https://github.com/mreboland/rustReferenceSafety written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mreboland/rustReferenceSafety 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac827c2fc95033b34f99bc95ba02c0021cbe151dc5772cf1c22d5f9927640aee [INFO] running `Command { std: "docker" "start" "-a" "ac827c2fc95033b34f99bc95ba02c0021cbe151dc5772cf1c22d5f9927640aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac827c2fc95033b34f99bc95ba02c0021cbe151dc5772cf1c22d5f9927640aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac827c2fc95033b34f99bc95ba02c0021cbe151dc5772cf1c22d5f9927640aee", kill_on_drop: false }` [INFO] [stdout] ac827c2fc95033b34f99bc95ba02c0021cbe151dc5772cf1c22d5f9927640aee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd3aacc09ceacd3cc483425225598536bf66f736ce5bfcc0c3a485e06da72735 [INFO] running `Command { std: "docker" "start" "-a" "cd3aacc09ceacd3cc483425225598536bf66f736ce5bfcc0c3a485e06da72735", kill_on_drop: false }` [INFO] [stderr] Checking references-safety v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | fn g<'a>(p: &'a i32) { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:152:48 [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | fn f(p: &'static i32) { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:152:48 [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:231:58 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:152:48 [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:231:58 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:152:48 [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:295:64 [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:231:58 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:295:64 [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:231:58 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:302:69 [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:295:64 [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:302:69 [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:295:64 [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `}` [INFO] [stdout] --> src/main.rs:336:1 [INFO] [stdout] | [INFO] [stdout] 326 | fn find_by_prefix<'a, 'b>(&'a self, prefix: &'b str) -> Option<&'a String> [INFO] [stdout] | -------------- while parsing this `fn` - expected one of `!`, `+`, `::`, `where`, or `{` [INFO] [stdout] ... [INFO] [stdout] 336 | } [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/main.rs:302:69 [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { .. } [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ..= } [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/main.rs:302:69 [INFO] [stdout] | [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `}` [INFO] [stdout] --> src/main.rs:336:1 [INFO] [stdout] | [INFO] [stdout] 326 | fn find_by_prefix<'a, 'b>(&'a self, prefix: &'b str) -> Option<&'a String> [INFO] [stdout] | -------------- while parsing this `fn` - expected one of `!`, `+`, `::`, `where`, or `{` [INFO] [stdout] ... [INFO] [stdout] 336 | } [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `STASH` is defined multiple times [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 71 | static mut STASH: &i32 = &128; [INFO] [stdout] | ------------------------------ previous definition of the value `STASH` here [INFO] [stdout] ... [INFO] [stdout] 92 | static mut STASH: &i32 = &10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `STASH` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `STASH` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 94 | fn f(p: &'static i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 128 | fn f(p: &'static i32) { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `STASH` is defined multiple times [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 71 | static mut STASH: &i32 = &128; [INFO] [stdout] | ------------------------------ previous definition of the value `STASH` here [INFO] [stdout] ... [INFO] [stdout] 92 | static mut STASH: &i32 = &10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `STASH` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `STASH` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `smallest` is defined multiple times [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 142 | fn smallest(v: &[i32]) -> i32 { [INFO] [stdout] | ----------------------------- previous definition of the value `smallest` here [INFO] [stdout] ... [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `smallest` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `smallest` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 193 | struct S { [INFO] [stdout] | ^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 94 | fn f(p: &'static i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 197 | struct S<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 128 | fn f(p: &'static i32) { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `T` is defined multiple times [INFO] [stdout] --> src/main.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 207 | struct T { [INFO] [stdout] | -------- previous definition of the type `T` here [INFO] [stdout] ... [INFO] [stdout] 217 | struct T { [INFO] [stdout] | ^^^^^^^^ `T` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `T` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `smallest` is defined multiple times [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 142 | fn smallest(v: &[i32]) -> i32 { [INFO] [stdout] | ----------------------------- previous definition of the value `smallest` here [INFO] [stdout] ... [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `smallest` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `smallest` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `T` is defined multiple times [INFO] [stdout] --> src/main.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 207 | struct T { [INFO] [stdout] | -------- previous definition of the type `T` here [INFO] [stdout] ... [INFO] [stdout] 223 | struct T<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ `T` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `T` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 193 | struct S { [INFO] [stdout] | ^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 197 | struct S<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 243 | struct S<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `T` is defined multiple times [INFO] [stdout] --> src/main.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 207 | struct T { [INFO] [stdout] | -------- previous definition of the type `T` here [INFO] [stdout] ... [INFO] [stdout] 217 | struct T { [INFO] [stdout] | ^^^^^^^^ `T` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `T` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 269 | struct S<'a, b> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `T` is defined multiple times [INFO] [stdout] --> src/main.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 207 | struct T { [INFO] [stdout] | -------- previous definition of the type `T` here [INFO] [stdout] ... [INFO] [stdout] 223 | struct T<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ `T` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `T` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 276 | fn f<'a>(r: &'a i32, s: &'a i32) -> &'a i32 { r } // perhaps to tight [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 243 | struct S<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 278 | fn f<'a, 'b>(r: &'a i32, s: &'b i32) -> &'a i32 { r } // looser [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 269 | struct S<'a, b> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 286 | struct S<'a, 'b> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 276 | fn f<'a>(r: &'a i32, s: &'a i32) -> &'a i32 { r } // perhaps to tight [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `f` is defined multiple times [INFO] [stdout] --> src/main.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | ------------- previous definition of the value `f` here [INFO] [stdout] ... [INFO] [stdout] 278 | fn f<'a, 'b>(r: &'a i32, s: &'b i32) -> &'a i32 { r } // looser [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `f` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `f` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `sum_r_xy` is defined multiple times [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 291 | fn sum_r_xy(r: &i32, s: S) -> i32 { [INFO] [stdout] | --------------------------------- previous definition of the value `sum_r_xy` here [INFO] [stdout] ... [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `sum_r_xy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `sum_r_xy` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `first_third` is defined multiple times [INFO] [stdout] --> src/main.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 298 | fn first_third(point: &[i32; 3]) -> (&i32, &i32) { [INFO] [stdout] | ------------------------------------------------ previous definition of the value `first_third` here [INFO] [stdout] ... [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `first_third` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `first_third` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `S` is defined multiple times [INFO] [stdout] --> src/main.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | -------- previous definition of the type `S` here [INFO] [stdout] ... [INFO] [stdout] 286 | struct S<'a, 'b> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `S` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `S` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `sum_r_xy` is defined multiple times [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 291 | fn sum_r_xy(r: &i32, s: S) -> i32 { [INFO] [stdout] | --------------------------------- previous definition of the value `sum_r_xy` here [INFO] [stdout] ... [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `sum_r_xy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `sum_r_xy` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `first_third` is defined multiple times [INFO] [stdout] --> src/main.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 298 | fn first_third(point: &[i32; 3]) -> (&i32, &i32) { [INFO] [stdout] | ------------------------------------------------ previous definition of the value `first_third` here [INFO] [stdout] ... [INFO] [stdout] 302 | fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ... } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `first_third` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `first_third` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 326 | fn find_by_prefix<'a, 'b>(&'a self, prefix: &'b str) -> Option<&'a String> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 326 | fn find_by_prefix<'a, 'b>(&'a self, prefix: &'b str) -> Option<&'a String> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/main.rs:326:31 [INFO] [stdout] | [INFO] [stdout] 326 | fn find_by_prefix<'a, 'b>(&'a self, prefix: &'b str) -> Option<&'a String> [INFO] [stdout] | ^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/main.rs:326:31 [INFO] [stdout] | [INFO] [stdout] 326 | fn find_by_prefix<'a, 'b>(&'a self, prefix: &'b str) -> Option<&'a String> [INFO] [stdout] | ^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/main.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 177 | r: &i32 [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 176 ~ struct S<'a> { [INFO] [stdout] 177 ~ r: &'a i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/main.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 177 | r: &i32 [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 176 ~ struct S<'a> { [INFO] [stdout] 177 ~ r: &'a i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0261]: use of undeclared lifetime name `'b` [INFO] [stdout] --> src/main.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 269 | struct S<'a, b> { [INFO] [stdout] | - help: consider introducing lifetime `'b` here: `'b,` [INFO] [stdout] 270 | x: &'a i32, [INFO] [stdout] 271 | y: &'b i32 [INFO] [stdout] | ^^ undeclared lifetime [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0261]: use of undeclared lifetime name `'b` [INFO] [stdout] --> src/main.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 269 | struct S<'a, b> { [INFO] [stdout] | - help: consider introducing lifetime `'b` here: `'b,` [INFO] [stdout] 270 | x: &'a i32, [INFO] [stdout] 271 | y: &'b i32 [INFO] [stdout] | ^^ undeclared lifetime [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `u9` in this scope [INFO] [stdout] --> src/main.rs:231:37 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^ help: a builtin type with a similar name exists: `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Record` in this scope [INFO] [stdout] --> src/main.rs:231:45 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `u9` in this scope [INFO] [stdout] --> src/main.rs:231:37 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^ help: a builtin type with a similar name exists: `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Record` in this scope [INFO] [stdout] --> src/main.rs:231:45 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/main.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | s: S<'static> [INFO] [stdout] | ^--------- help: remove these generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> src/main.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/main.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | s: S<'static> [INFO] [stdout] | ^--------- help: remove these generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> src/main.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/main.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | s: S<'a> [INFO] [stdout] | ^---- help: remove these generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> src/main.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/main.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | s: S<'a> [INFO] [stdout] | ^---- help: remove these generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> src/main.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 2 lifetime arguments were supplied [INFO] [stdout] --> src/main.rs:295:44 [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^-------- help: remove these generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> src/main.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 2 lifetime arguments were supplied [INFO] [stdout] --> src/main.rs:295:44 [INFO] [stdout] | [INFO] [stdout] 295 | fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [INFO] [stdout] | ^-------- help: remove these generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> src/main.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `i32` cannot be dereferenced [INFO] [stdout] --> src/main.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | assert_eq!(*s, 0); // bad: points to element of dropped array [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `i32` cannot be dereferenced [INFO] [stdout] --> src/main.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | assert_eq!(*s, 0); // bad: points to element of dropped array [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::S` has no field named `x` [INFO] [stdout] --> src/main.rs:255:25 [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { x: &x, y: &y }; [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { r: &x, y: &y }; [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::S` has no field named `x` [INFO] [stdout] --> src/main.rs:255:25 [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { x: &x, y: &y }; [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { r: &x, y: &y }; [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::S` has no field named `y` [INFO] [stdout] --> src/main.rs:255:32 [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { x: &x, y: &y }; [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { x: &x, r: &y }; [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `x` on type `main::S` [INFO] [stdout] --> src/main.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | r = s.x; [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 256 | r = s.r; [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::S` has no field named `y` [INFO] [stdout] --> src/main.rs:255:32 [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { x: &x, y: &y }; [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 255 | let s = S { x: &x, r: &y }; [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `x` on type `main::S` [INFO] [stdout] --> src/main.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | r = s.x; [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 256 | r = s.r; [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 142 | fn smallest(v: &[i32]) -> i32 { [INFO] [stdout] | --- expected `i32` because of return type [INFO] [stdout] ... [INFO] [stdout] 148 | s [INFO] [stdout] | ^ expected `i32`, found `&i32` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 148 | *s [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 142 | fn smallest(v: &[i32]) -> i32 { [INFO] [stdout] | --- expected `i32` because of return type [INFO] [stdout] ... [INFO] [stdout] 148 | s [INFO] [stdout] | ^ expected `i32`, found `&i32` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 148 | *s [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `x` on type `main::S` [INFO] [stdout] --> src/main.rs:292:15 [INFO] [stdout] | [INFO] [stdout] 292 | r + s.x + s.y [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 292 | r + s.r + s.y [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `y` on type `main::S` [INFO] [stdout] --> src/main.rs:292:21 [INFO] [stdout] | [INFO] [stdout] 292 | r + s.x + s.y [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 292 | r + s.x + s.r [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `x` on type `main::S` [INFO] [stdout] --> src/main.rs:292:15 [INFO] [stdout] | [INFO] [stdout] 292 | r + s.x + s.y [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 292 | r + s.r + s.y [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `y` on type `main::S` [INFO] [stdout] --> src/main.rs:292:21 [INFO] [stdout] | [INFO] [stdout] 292 | r + s.x + s.y [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 292 | r + s.x + s.r [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/main.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 73 | unsafe { [INFO] [stdout] 74 | STASH = p; [INFO] [stdout] | ^^^^^^^^^ assignment requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/main.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 72 | fn f(p: &i32) { // still not good enough [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 73 | unsafe { [INFO] [stdout] 74 | STASH = p; [INFO] [stdout] | ^^^^^^^^^ assignment requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 45 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0107, E0261, E0308, E0412, E0428, E0560, E0586, E0609... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 45 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0107, E0261, E0308, E0412, E0428, E0560, E0586, E0609... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `references-safety` (bin "references-safety") due to 46 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `references-safety` (bin "references-safety" test) due to 46 previous errors [INFO] running `Command { std: "docker" "inspect" "cd3aacc09ceacd3cc483425225598536bf66f736ce5bfcc0c3a485e06da72735", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd3aacc09ceacd3cc483425225598536bf66f736ce5bfcc0c3a485e06da72735", kill_on_drop: false }` [INFO] [stdout] cd3aacc09ceacd3cc483425225598536bf66f736ce5bfcc0c3a485e06da72735 [INFO] checking mreboland/rustReferenceSafety against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmreboland%2FrustReferenceSafety" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mreboland/rustReferenceSafety on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mreboland/rustReferenceSafety [INFO] finished tweaking git repo https://github.com/mreboland/rustReferenceSafety [INFO] tweaked toml for git repo https://github.com/mreboland/rustReferenceSafety written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mreboland/rustReferenceSafety 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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd1de5228334bd073ec2abf25ef9a605e94fe6ce071490adf4f85cc49e1e8fa0 [INFO] running `Command { std: "docker" "start" "-a" "dd1de5228334bd073ec2abf25ef9a605e94fe6ce071490adf4f85cc49e1e8fa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd1de5228334bd073ec2abf25ef9a605e94fe6ce071490adf4f85cc49e1e8fa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd1de5228334bd073ec2abf25ef9a605e94fe6ce071490adf4f85cc49e1e8fa0", kill_on_drop: false }` [INFO] [stdout] dd1de5228334bd073ec2abf25ef9a605e94fe6ce071490adf4f85cc49e1e8fa0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5e3e0124b2099cbdab8c1a3a508631bde22bb33e1618e0f87b25f1bc16b6e66 [INFO] running `Command { std: "docker" "start" "-a" "f5e3e0124b2099cbdab8c1a3a508631bde22bb33e1618e0f87b25f1bc16b6e66", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "f5e3e0124b2099cbdab8c1a3a508631bde22bb33e1618e0f87b25f1bc16b6e66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5e3e0124b2099cbdab8c1a3a508631bde22bb33e1618e0f87b25f1bc16b6e66", kill_on_drop: false }` [INFO] [stdout] f5e3e0124b2099cbdab8c1a3a508631bde22bb33e1618e0f87b25f1bc16b6e66