[INFO] cloning repository https://github.com/fzdwx/raw [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fzdwx/raw" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffzdwx%2Fraw", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffzdwx%2Fraw'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7fc121f26710e984d55c2e8fd3e11a6cf0ff0e0c [INFO] testing fzdwx/raw against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffzdwx%2Fraw" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/fzdwx/raw [INFO] finished tweaking git repo https://github.com/fzdwx/raw [INFO] tweaked toml for git repo https://github.com/fzdwx/raw written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/fzdwx/raw on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/fzdwx/raw 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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 str_indices v0.4.0 [INFO] [stderr] Downloaded tokio-macros v1.8.0 [INFO] [stderr] Downloaded parking_lot_core v0.9.3 [INFO] [stderr] Downloaded anyhow v1.0.58 [INFO] [stderr] Downloaded bytes v1.2.0 [INFO] [stderr] Downloaded unicode-segmentation v1.9.0 [INFO] [stderr] Downloaded crossterm v0.23.2 [INFO] [stderr] Downloaded ropey v1.5.0 [INFO] [stderr] Downloaded tui v0.18.0 [INFO] [stderr] Downloaded mio v0.8.4 [INFO] [stderr] Downloaded unicode-ident v1.0.2 [INFO] [stderr] Downloaded tokio v1.20.0 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.36.1 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.36.1 [INFO] [stderr] Downloaded windows_i686_msvc v0.36.1 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.36.1 [INFO] [stderr] Downloaded windows_i686_gnu v0.36.1 [INFO] [stderr] Downloaded windows-sys v0.36.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad4360d2598ca167b9129ba609ecf3e45035f586ce1f8fcad7c8ab2cbe51fd45 [INFO] running `Command { std: "docker" "start" "-a" "ad4360d2598ca167b9129ba609ecf3e45035f586ce1f8fcad7c8ab2cbe51fd45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad4360d2598ca167b9129ba609ecf3e45035f586ce1f8fcad7c8ab2cbe51fd45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad4360d2598ca167b9129ba609ecf3e45035f586ce1f8fcad7c8ab2cbe51fd45", kill_on_drop: false }` [INFO] [stdout] ad4360d2598ca167b9129ba609ecf3e45035f586ce1f8fcad7c8ab2cbe51fd45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b8fa6ec0fb080cafb68a50dc98aff459cd0b3ff025b00836bc8380220e41f318 [INFO] running `Command { std: "docker" "start" "-a" "b8fa6ec0fb080cafb68a50dc98aff459cd0b3ff025b00836bc8380220e41f318", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling tokio v1.20.0 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling bytes v1.2.0 [INFO] [stderr] Compiling str_indices v0.4.0 [INFO] [stderr] Compiling ropey v1.5.0 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.23.2 [INFO] [stderr] Compiling tui v0.18.0 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling raw v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `detect` in `std` [INFO] [stdout] --> src/app.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::detect::__is_feature_detected::xsave; [INFO] [stdout] | ^^^^^^ could not find `detect` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error` [INFO] [stdout] --> src/app.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/app.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::ControlFlow::Continue` [INFO] [stdout] --> src/app.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::ControlFlow::Continue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/app.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::cursor::position` [INFO] [stdout] --> src/app.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crossterm::cursor::position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `flush_resize_events` [INFO] [stdout] --> src/app.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::event::{flush_resize_events, Event, EventHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `next_grapheme_boundary`, `nth_prev_grapheme_boundary`, and `prev_grapheme_boundary` [INFO] [stdout] --> src/app.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | next_grapheme_boundary, nth_prev_grapheme_boundary, prev_grapheme_boundary, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::render::document::Document` [INFO] [stdout] --> src/app.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::render::document::Document; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::render::message::MessageBar` [INFO] [stdout] --> src/app.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::render::message::MessageBar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEFAULT_FILENAME` and `DEFAULT_FILETYPE` [INFO] [stdout] --> src/app.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::{screen, DEFAULT_FILENAME, DEFAULT_FILETYPE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/app.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | /// todo offset.x 有问题 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 287 | / if x < offset.x { [INFO] [stdout] 288 | | offset.x = x; [INFO] [stdout] 289 | | } else if line.get_offset(x) >= line.get_offset(offset.x).saturating_add(w) { [INFO] [stdout] 290 | | offset.x = offset.x.saturating_add(1); [INFO] [stdout] 291 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [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: unexpected `cfg` condition name: `tests` [INFO] [stdout] --> src/extension.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(tests)] [INFO] [stdout] | ^^^^^ help: there is a config with a similar name: `test` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tests)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tests)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ropey::RopeSlice` [INFO] [stdout] --> src/extension.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ropey::RopeSlice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tui::layout::Rect` [INFO] [stdout] --> src/extension.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tui::layout::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ropey::iter::Chunks` [INFO] [stdout] --> src/extension/rope.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ropey::iter::Chunks; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ropey::str_utils::byte_to_char_idx` [INFO] [stdout] --> src/extension/rope.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ropey::str_utils::byte_to_char_idx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GraphemeCursor` and `GraphemeIncomplete` [INFO] [stdout] --> src/extension/rope.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use unicode_segmentation::{GraphemeCursor, GraphemeIncomplete, UnicodeSegmentation}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/render/switcher.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | None => (0), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - None => (0), [INFO] [stdout] 114 + None => 0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/render/switcher.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | Some(doc) => (doc.line_width(row)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - Some(doc) => (doc.line_width(row)), [INFO] [stdout] 115 + Some(doc) => doc.line_width(row), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/app.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let offset = self.offset; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen_width` [INFO] [stdout] --> src/app.rs:217:14 [INFO] [stdout] | [INFO] [stdout] 217 | let (screen_width, screen_height) = screen::size().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen_height` [INFO] [stdout] --> src/app.rs:217:28 [INFO] [stdout] | [INFO] [stdout] 217 | let (screen_width, screen_height) = screen::size().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row_width` [INFO] [stdout] --> src/app.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let row_width = rope_slice.len_chars(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_row_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/render/banner.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | fn render(&mut self, ctx: AppCtx, buf: &mut Buffer, area: Rect) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/render/message.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | fn render(&mut self, ctx: AppCtx, buf: &mut Buffer, area: Rect) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `raw` (lib) due to 1 previous error; 25 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "b8fa6ec0fb080cafb68a50dc98aff459cd0b3ff025b00836bc8380220e41f318", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8fa6ec0fb080cafb68a50dc98aff459cd0b3ff025b00836bc8380220e41f318", kill_on_drop: false }` [INFO] [stdout] b8fa6ec0fb080cafb68a50dc98aff459cd0b3ff025b00836bc8380220e41f318