[INFO] cloning repository https://github.com/soruh/barebones-x86-linux [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/soruh/barebones-x86-linux" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoruh%2Fbarebones-x86-linux", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoruh%2Fbarebones-x86-linux'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8616ae83ff4aeea70cbc25dc8528b2d8955a03b2 [INFO] checking soruh/barebones-x86-linux against try#d8a5ee01b913730aca7ab44c72c8f2722c0533ff for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoruh%2Fbarebones-x86-linux" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/soruh/barebones-x86-linux on toolchain d8a5ee01b913730aca7ab44c72c8f2722c0533ff [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/soruh/barebones-x86-linux [INFO] finished tweaking git repo https://github.com/soruh/barebones-x86-linux [INFO] tweaked toml for git repo https://github.com/soruh/barebones-x86-linux written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/soruh/barebones-x86-linux 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" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded compiler_builtins v0.1.82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78d06300855876da8d17bb7322a8cd3e245ef604c9afcec5c02471791c484227 [INFO] running `Command { std: "docker" "start" "-a" "78d06300855876da8d17bb7322a8cd3e245ef604c9afcec5c02471791c484227", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78d06300855876da8d17bb7322a8cd3e245ef604c9afcec5c02471791c484227", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78d06300855876da8d17bb7322a8cd3e245ef604c9afcec5c02471791c484227", kill_on_drop: false }` [INFO] [stdout] 78d06300855876da8d17bb7322a8cd3e245ef604c9afcec5c02471791c484227 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d7dab19267bb7c32a40b396d37bd4af7947858c95b704a7530bb20500660907 [INFO] running `Command { std: "docker" "start" "-a" "0d7dab19267bb7c32a40b396d37bd4af7947858c95b704a7530bb20500660907", kill_on_drop: false }` [INFO] [stderr] Compiling compiler_builtins v0.1.82 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling barebones-x86-linux v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking smallstr v0.2.0 [INFO] [stdout] error: the `#[alloc_error_handler]` in this crate conflicts with allocation error handler in: std [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(lang_items)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core_intrinsics` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(core_intrinsics)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(lang_items)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/thread.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | / /// # Safety: the Mutex is always pinned inside of [INFO] [stdout] 213 | | /// `JoinHandleInner`s containing Arc [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] 214 | data: ManuallyDrop::new(UnsafeCell::new(None)), [INFO] [stdout] | ---------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core_intrinsics` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(core_intrinsics)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lang_items.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / fn __panic_handler(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] 7 | | use core::fmt::Write; [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | let thread = crate::syscalls::gettid(); [INFO] [stdout] ... | [INFO] [stdout] 37 | | unsafe { exit(1) } [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/d8a5ee01b913730aca7ab44c72c8f2722c0533ff/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-08d24c853dfa6028.rlib [INFO] [stdout] = note: second definition in the local crate (`barebones_x86_linux`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/thread.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | / /// # Safety: the Mutex is always pinned inside of [INFO] [stdout] 213 | | /// `JoinHandleInner`s containing Arc [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] 214 | data: ManuallyDrop::new(UnsafeCell::new(None)), [INFO] [stdout] | ---------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `barebones-x86-linux` (lib test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0787]: the `asm!` macro is not allowed in naked functions [INFO] [stdout] --> src/syscalls/mod.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | / asm!( [INFO] [stdout] 140 | | "mov rax, {}", [INFO] [stdout] 141 | | "syscall", [INFO] [stdout] ... | [INFO] [stdout] 148 | | options(noreturn) [INFO] [stdout] 149 | | ) [INFO] [stdout] | |_____^ consider using the `naked_asm!` macro instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm_sym` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(asm, asm_sym, asm_const)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm_const` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(asm, asm_sym, asm_const)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_mut_refs` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(const_mut_refs)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `array_methods` has been stable since 1.77.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(array_methods)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(asm, asm_sym, asm_const)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `panic_info_message` has been stable since 1.81.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | #![feature(panic_info_message)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lang_items.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | let _ = match (info.message(), info.location()) { [INFO] [stdout] | --------------------------------- this expression has type `(PanicMessage<'_>, Option<&Location<'_>>)` [INFO] [stdout] 13 | (Some(message), Some(location)) => writeln!( [INFO] [stdout] | ^^^^^^^^^^^^^ expected `PanicMessage<'_>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `PanicMessage<'_>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lang_items.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 12 | let _ = match (info.message(), info.location()) { [INFO] [stdout] | --------------------------------- this expression has type `(PanicMessage<'_>, Option<&Location<'_>>)` [INFO] [stdout] ... [INFO] [stdout] 20 | (Some(message), None) => writeln!( [INFO] [stdout] | ^^^^^^^^^^^^^ expected `PanicMessage<'_>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `PanicMessage<'_>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lang_items.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 12 | let _ = match (info.message(), info.location()) { [INFO] [stdout] | --------------------------------- this expression has type `(PanicMessage<'_>, Option<&Location<'_>>)` [INFO] [stdout] ... [INFO] [stdout] 26 | (None, Some(location)) => { [INFO] [stdout] | ^^^^ expected `PanicMessage<'_>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `PanicMessage<'_>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lang_items.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 12 | let _ = match (info.message(), info.location()) { [INFO] [stdout] | --------------------------------- this expression has type `(PanicMessage<'_>, Option<&Location<'_>>)` [INFO] [stdout] ... [INFO] [stdout] 34 | (None, None) => writeln!(stderr(), "thread [{}] \x1b[31mpanicked\x1b[m", thread), [INFO] [stdout] | ^^^^ expected `PanicMessage<'_>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `PanicMessage<'_>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0787. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `barebones-x86-linux` (lib) due to 5 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0d7dab19267bb7c32a40b396d37bd4af7947858c95b704a7530bb20500660907", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d7dab19267bb7c32a40b396d37bd4af7947858c95b704a7530bb20500660907", kill_on_drop: false }` [INFO] [stdout] 0d7dab19267bb7c32a40b396d37bd4af7947858c95b704a7530bb20500660907