[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] testing mreboland/rustReferenceSafety against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmreboland%2FrustReferenceSafety" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mreboland/rustReferenceSafety on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing mreboland/rustReferenceSafety against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmreboland%2FrustReferenceSafety" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mreboland/rustReferenceSafety on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing mreboland/rustReferenceSafety against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmreboland%2FrustReferenceSafety" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mreboland/rustReferenceSafety on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b434cc2fd2b4800b63283efcdfd2db351b4d64096e67f158d2ff02f90159b5e3 [INFO] running `Command { std: "docker" "start" "-a" "b434cc2fd2b4800b63283efcdfd2db351b4d64096e67f158d2ff02f90159b5e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b434cc2fd2b4800b63283efcdfd2db351b4d64096e67f158d2ff02f90159b5e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b434cc2fd2b4800b63283efcdfd2db351b4d64096e67f158d2ff02f90159b5e3", kill_on_drop: false }` [INFO] [stdout] b434cc2fd2b4800b63283efcdfd2db351b4d64096e67f158d2ff02f90159b5e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e2f66893a2448fd370be52d13e4a646d7ab9bee8199b5cb5dc8611a23fed06b [INFO] running `Command { std: "docker" "start" "-a" "0e2f66893a2448fd370be52d13e4a646d7ab9bee8199b5cb5dc8611a23fed06b", kill_on_drop: false }` [INFO] [stderr] Compiling 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] 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] 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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 118 - fn g<'a>(p: &'a i32) { ... } [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: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] 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] 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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 128 - fn f(p: &'static i32) { ... } [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] 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] 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:152:48 [INFO] [stdout] | [INFO] [stdout] 152 | fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 152 - fn smallest<'a>(v: &'a [i32]) -> &'a i32 { ... } [INFO] [stdout] 152 + fn smallest<'a>(v: &'a [i32]) -> &'a 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] 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] 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:231:58 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 231 - fn parse_record<'i>(input: &'i [u9]) -> Record<'i> { ... } [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: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] 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] 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: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] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 295 - fn sum_r_xy<'a, 'b, 'c>(r: &'a i32, s: S<'b, 'c>) -> i32 { ... } [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: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] 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] 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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 302 - fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { ... } [INFO] [stdout] 302 + fn first_third<'a>(point: &'a [i32; 3]) -> (&'a i32, &'a i32) { .. } [INFO] [stdout] | [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 `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 `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 `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 `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: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 `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 `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 `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: `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[E0261]: use of undeclared lifetime name `'b` [INFO] [stdout] --> src/main.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | y: &'b i32 [INFO] [stdout] | ^^ undeclared lifetime [INFO] [stdout] | [INFO] [stdout] help: consider introducing lifetime `'b` here [INFO] [stdout] | [INFO] [stdout] 269 | struct S<'b, 'a, b> { [INFO] [stdout] | +++ [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] warning: type parameter `b` should have an upper camel case name [INFO] [stdout] --> src/main.rs:269:18 [INFO] [stdout] | [INFO] [stdout] 269 | struct S<'a, b> { [INFO] [stdout] | ^ help: convert the identifier to upper camel case: `B` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [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 the unnecessary 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 the unnecessary 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 the unnecessary 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] | ^^ can't be dereferenced [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 { x: &x, y: &y }; [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, y: &y }; [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.x; [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[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.x + s.y [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.y [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] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:276:26 [INFO] [stdout] | [INFO] [stdout] 276 | fn f<'a>(r: &'a i32, s: &'a i32) -> &'a i32 { r } // perhaps to tight [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:278:30 [INFO] [stdout] | [INFO] [stdout] 278 | fn f<'a, 'b>(r: &'a i32, s: &'b i32) -> &'a i32 { r } // looser [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [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 45 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0e2f66893a2448fd370be52d13e4a646d7ab9bee8199b5cb5dc8611a23fed06b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e2f66893a2448fd370be52d13e4a646d7ab9bee8199b5cb5dc8611a23fed06b", kill_on_drop: false }` [INFO] [stdout] 0e2f66893a2448fd370be52d13e4a646d7ab9bee8199b5cb5dc8611a23fed06b