[INFO] fetching crate kconfig-linux 0.1.1... [INFO] checking kconfig-linux-0.1.1 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate kconfig-linux 0.1.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate kconfig-linux 0.1.1 [INFO] finished tweaking crates.io crate kconfig-linux 0.1.1 [INFO] tweaked toml for crates.io crate kconfig-linux 0.1.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate kconfig-linux 0.1.1 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 17 packages to latest compatible versions [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.12) [INFO] [stderr] Adding uuid v0.8.2 (available: v1.17.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e42fc9359ebdad65e64c181e20bd20da5bc65445e0233be6122f0b06eef39b9d [INFO] running `Command { std: "docker" "start" "-a" "e42fc9359ebdad65e64c181e20bd20da5bc65445e0233be6122f0b06eef39b9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e42fc9359ebdad65e64c181e20bd20da5bc65445e0233be6122f0b06eef39b9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e42fc9359ebdad65e64c181e20bd20da5bc65445e0233be6122f0b06eef39b9d", kill_on_drop: false }` [INFO] [stdout] e42fc9359ebdad65e64c181e20bd20da5bc65445e0233be6122f0b06eef39b9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36dd287c775f2abb869ab7bca3dd07b3aac9bb880e0d7f9c2ae39fc90f8c4838 [INFO] running `Command { std: "docker" "start" "-a" "36dd287c775f2abb869ab7bca3dd07b3aac9bb880e0d7f9c2ae39fc90f8c4838", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking kconfig-linux v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple lines skipped by escaped newline [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_config_node_parser.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | \tdepends on SAJTOS && KIFLI\n\ [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 48 | | [INFO] [stdout] 49 | | \thelp\n\ [INFO] [stdout] | |____________^ skipping everything up to and including this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple lines skipped by escaped newline [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_config_node_parser.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | \tdepends on SAJTOS && KIFLI\n\ [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 48 | | [INFO] [stdout] 49 | | \thelp\n\ [INFO] [stdout] | |____________^ skipping everything up to and including this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structure::kconfig_node_children::KconfigNodeChildren` [INFO] [stdout] --> src/structure/nodes/kconfig_menuconfig_node.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::structure::kconfig_node_children::KconfigNodeChildren; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParseableWithUnknownSpan` and `ParsingContext` [INFO] [stdout] --> src/structure/kconfig_node_children.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | ParseableWithUnknownSpan, ParsingContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::utils::parse_span::ParseSpan` [INFO] [stdout] --> src/structure/kconfig_node_children.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | use crate::parser::utils::parse_span::ParseSpan; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KconfigHelpProperty` [INFO] [stdout] --> src/structure/kconfig_node_children.rs:57:50 [INFO] [stdout] | [INFO] [stdout] 57 | ConfigType, KconfigDependenciesProperty, KconfigHelpProperty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structure::kconfig_node_children::KconfigNodeChildren` [INFO] [stdout] --> src/structure/nodes/kconfig_menuconfig_node.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::structure::kconfig_node_children::KconfigNodeChildren; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `option_result_contains` [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(option_result_contains)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `option_result_contains` [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(option_result_contains)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_menu_node_parser.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 16 | if !header_tokens.next() [INFO] [stdout] | _________- [INFO] [stdout] 17 | | .contains(&MENU_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 16 | if !header_tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_dependency_parser.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 12 | if !tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 13 | | .contains(&DEPENDS_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 12 | if !tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_dependency_parser.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 18 | | .contains(&ON_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_if_node_parser.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 15 | if !header_tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 16 | | .contains(&IF_KEYWORD) [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 15 | if !header_tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/source_line_parser.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next().contains(&SOURCE_KEYWORD) { [INFO] [stdout] | ^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next().expect("REASON").contains(&SOURCE_KEYWORD) { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_menu_node_parser.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 16 | if !header_tokens.next() [INFO] [stdout] | _________- [INFO] [stdout] 17 | | .contains(&MENU_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 16 | if !header_tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_reverse_dependency_parser.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | if tokens.next().contains(&IF_KEYWORD) { [INFO] [stdout] | ^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: use the `?` operator to extract the `&str` value, propagating an `Option::None` value to the caller [INFO] [stdout] | [INFO] [stdout] 10 | if tokens.next()?.contains(&IF_KEYWORD) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_reverse_dependency_parser.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 25 | if !tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 26 | | .contains(&SELECT_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 25 | if !tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_dependency_parser.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 12 | if !tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 13 | | .contains(&DEPENDS_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 12 | if !tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/tokenizer.rs:64:25 [INFO] [stdout] | [INFO] [stdout] 64 | if self.at_char.contains(&'"') { [INFO] [stdout] | ^^^^^^^^ method not found in `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_dependency_parser.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 18 | | .contains(&ON_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/tokenizer.rs:69:55 [INFO] [stdout] | [INFO] [stdout] 69 | at_char != '"' && !iter.last_char.contains(&'\\') [INFO] [stdout] | ^^^^^^^^ method not found in `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/tokenizer.rs:74:32 [INFO] [stdout] | [INFO] [stdout] 74 | } else if self.at_char.contains(&'#') { [INFO] [stdout] | ^^^^^^^^ method not found in `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_if_node_parser.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 15 | if !header_tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 16 | | .contains(&IF_KEYWORD) [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 15 | if !header_tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/parse_node_header_and_get_name.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | if !header_tokens.next() [INFO] [stdout] | _________- [INFO] [stdout] 13 | | .contains(&expected_keyword) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 12 | if !header_tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/source_line_parser.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next().contains(&SOURCE_KEYWORD) { [INFO] [stdout] | ^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 17 | if !tokens.next().expect("REASON").contains(&SOURCE_KEYWORD) { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_reverse_dependency_parser.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | if tokens.next().contains(&IF_KEYWORD) { [INFO] [stdout] | ^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: use the `?` operator to extract the `&str` value, propagating an `Option::None` value to the caller [INFO] [stdout] | [INFO] [stdout] 10 | if tokens.next()?.contains(&IF_KEYWORD) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_reverse_dependency_parser.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 25 | if !tokens.next() [INFO] [stdout] | _____________- [INFO] [stdout] 26 | | .contains(&SELECT_KEYWORD) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 25 | if !tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/tokenizer.rs:64:25 [INFO] [stdout] | [INFO] [stdout] 64 | if self.at_char.contains(&'"') { [INFO] [stdout] | ^^^^^^^^ method not found in `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/tokenizer.rs:69:55 [INFO] [stdout] | [INFO] [stdout] 69 | at_char != '"' && !iter.last_char.contains(&'\\') [INFO] [stdout] | ^^^^^^^^ method not found in `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kconfig-linux` (lib) due to 12 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/tokenizer.rs:74:32 [INFO] [stdout] | [INFO] [stdout] 74 | } else if self.at_char.contains(&'#') { [INFO] [stdout] | ^^^^^^^^ method not found in `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains` found for enum `Option` in the current scope [INFO] [stdout] --> src/parser/utils/parse_node_header_and_get_name.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | if !header_tokens.next() [INFO] [stdout] | _________- [INFO] [stdout] 13 | | .contains(&expected_keyword) { [INFO] [stdout] | | -^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `contains` exists on the type `&str` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/str/mod.rs:1325:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 12 | if !header_tokens.next().expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser/kconfig_parser_impl/kconfig_config_node_parser.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | let (config, span) = KconfigConfigNode::parse_with_unknown_span( [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kconfig-linux` (lib test) due to 12 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "36dd287c775f2abb869ab7bca3dd07b3aac9bb880e0d7f9c2ae39fc90f8c4838", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36dd287c775f2abb869ab7bca3dd07b3aac9bb880e0d7f9c2ae39fc90f8c4838", kill_on_drop: false }` [INFO] [stdout] 36dd287c775f2abb869ab7bca3dd07b3aac9bb880e0d7f9c2ae39fc90f8c4838