[INFO] fetching crate tcss-core 1.0.0... [INFO] testing tcss-core-1.0.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate tcss-core 1.0.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate tcss-core 1.0.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate tcss-core 1.0.0 [INFO] tweaked toml for crates.io crate tcss-core 1.0.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate tcss-core 1.0.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tcss-core 1.0.0 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded itoa v1.0.16 [INFO] [stderr] Downloaded tempfile v3.24.0 [INFO] [stderr] Downloaded zmij v0.1.7 [INFO] [stderr] Downloaded serde_json v1.0.147 [INFO] [stderr] Downloaded rustix v1.1.3 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd3532e899e50e22009449cf84e0902243c0032fa356dda9e0d9c39589831440 [INFO] running `Command { std: "docker" "start" "-a" "cd3532e899e50e22009449cf84e0902243c0032fa356dda9e0d9c39589831440", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd3532e899e50e22009449cf84e0902243c0032fa356dda9e0d9c39589831440", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd3532e899e50e22009449cf84e0902243c0032fa356dda9e0d9c39589831440", kill_on_drop: false }` [INFO] [stdout] cd3532e899e50e22009449cf84e0902243c0032fa356dda9e0d9c39589831440 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aee04321cd33eb59ffbef64652ad251ea1054dff9cefc56fd04b53e53676341f [INFO] running `Command { std: "docker" "start" "-a" "aee04321cd33eb59ffbef64652ad251ea1054dff9cefc56fd04b53e53676341f", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tcss-core v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.63s [INFO] running `Command { std: "docker" "inspect" "aee04321cd33eb59ffbef64652ad251ea1054dff9cefc56fd04b53e53676341f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aee04321cd33eb59ffbef64652ad251ea1054dff9cefc56fd04b53e53676341f", kill_on_drop: false }` [INFO] [stdout] aee04321cd33eb59ffbef64652ad251ea1054dff9cefc56fd04b53e53676341f [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9cddd7458b414d0be7322a6ca3357b6df50e9c424a23363b9afbb379ab6e263 [INFO] running `Command { std: "docker" "start" "-a" "d9cddd7458b414d0be7322a6ca3357b6df50e9c424a23363b9afbb379ab6e263", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.147 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling zmij v0.1.7 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling itoa v1.0.16 [INFO] [stderr] Compiling clap_builder v4.5.53 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Compiling zerocopy-derive v0.8.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling tcss-core v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> examples/tokenize.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use tcss_core::{Lexer, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> examples/errors.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let formatter = ErrorFormatter::new(source.to_string()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tcss_error` [INFO] [stdout] --> examples/errors.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let tcss_error = tcss_core::TcssError::Execution( [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tcss_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> examples/errors.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImportType` [INFO] [stdout] --> tests/import_test.rs:3:59 [INFO] [stdout] | [INFO] [stdout] 3 | use tcss_core::{Lexer, Parser, ImportProcessor, Resolver, ImportType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/integration_tests.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | generator.generate(&executed) [INFO] [stdout] | -------- ^^^^^^^^^ expected `&Program`, found `&()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Program` [INFO] [stdout] found reference `&()` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/generator.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn generate(&mut self, program: &Program) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | assert!(context.get("nonexistent").is_none()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `trailing_newline` in initializer of `GeneratorOptions` [INFO] [stdout] --> tests/integration_tests.rs:191:49 [INFO] [stdout] | [INFO] [stdout] 191 | let mut generator = Generator::with_options(GeneratorOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ missing `trailing_newline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/integration_tests.rs:195:34 [INFO] [stdout] | [INFO] [stdout] 195 | let css = generator.generate(&executed).unwrap(); [INFO] [stdout] | -------- ^^^^^^^^^ expected `&Program`, found `&()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Program` [INFO] [stdout] found reference `&()` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/generator.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn generate(&mut self, program: &Program) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | context.set("primary", Value::Color("#3498db".to_string())); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | let value = context.get("primary"); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tcss-core` (test "integration_tests") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `set_function` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | context.set_function("spacing", params.clone(), body.clone()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_function` with a similar name, but with different arguments [INFO] [stdout] --> src/context.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_function(&self, name: &str) -> Option<&FunctionDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/context_tests.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | if let Some((p, _)) = func { [INFO] [stdout] | ^^^^^^ ---- this expression has type `Option<&FunctionDef>` [INFO] [stdout] | | [INFO] [stdout] | expected `FunctionDef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `FunctionDef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | context.set("global", Value::Number(1.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | context.set("local", Value::Number(2.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | assert!(context.get("global").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | assert!(context.get("local").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | assert!(context.get("global").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | assert!(context.get("local").is_none()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | context.set("level0", Value::Number(0.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | context.set("level1", Value::Number(1.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | context.set("level2", Value::Number(2.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | assert!(context.get("level0").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | assert!(context.get("level1").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | assert!(context.get("level2").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | assert!(context.get("level0").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | assert!(context.get("level1").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | assert!(context.get("level2").is_none()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | assert!(context.get("level0").is_some()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | assert!(context.get("level1").is_none()); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | context.set("x", Value::Number(1.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | context.set("x", Value::Number(2.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:103:45 [INFO] [stdout] | [INFO] [stdout] 103 | if let Some(Value::Number(n)) = context.get("x") { [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `f64` cannot be dereferenced [INFO] [stdout] --> tests/context_tests.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | assert_eq!(*n, 2.0); [INFO] [stdout] | ^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:112:45 [INFO] [stdout] | [INFO] [stdout] 112 | if let Some(Value::Number(n)) = context.get("x") { [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `f64` cannot be dereferenced [INFO] [stdout] --> tests/context_tests.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 113 | assert_eq!(*n, 1.0); [INFO] [stdout] | ^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | context.set("num", Value::Number(42.0)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | context.set("str", Value::String("hello".to_string())); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | context.set("color", Value::Color("#fff".to_string())); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | context.set("bool", Value::Boolean(true)); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | context.set("unit", Value::Unit(16.0, "px".to_string())); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0533]: expected value, found struct variant `Value::Unit` [INFO] [stdout] --> tests/context_tests.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | context.set("unit", Value::Unit(16.0, "px".to_string())); [INFO] [stdout] | ^^^^^^^^^^^ not a value [INFO] [stdout] | [INFO] [stdout] help: you might have meant to create a new value of the struct [INFO] [stdout] | [INFO] [stdout] 127 - context.set("unit", Value::Unit(16.0, "px".to_string())); [INFO] [stdout] 127 + context.set("unit", Value::Unit { value: /* value */, unit: /* value */ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:129:30 [INFO] [stdout] | [INFO] [stdout] 129 | assert!(matches!(context.get("num"), Some(Value::Number(_)))); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:130:30 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(matches!(context.get("str"), Some(Value::String(_)))); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:131:30 [INFO] [stdout] | [INFO] [stdout] 131 | assert!(matches!(context.get("color"), Some(Value::Color(_)))); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | assert!(matches!(context.get("bool"), Some(Value::Boolean(_)))); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:133:30 [INFO] [stdout] | [INFO] [stdout] 133 | assert!(matches!(context.get("unit"), Some(Value::Unit(_, _)))); [INFO] [stdout] | ^^^ method not found in `tcss_core::Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0164]: expected tuple struct or tuple variant, found struct variant `Value::Unit` [INFO] [stdout] --> tests/context_tests.rs:133:48 [INFO] [stdout] | [INFO] [stdout] 133 | assert!(matches!(context.get("unit"), Some(Value::Unit(_, _)))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not a tuple struct or tuple variant [INFO] [stdout] | [INFO] [stdout] help: the struct variant's fields are being ignored [INFO] [stdout] | [INFO] [stdout] 133 - assert!(matches!(context.get("unit"), Some(Value::Unit(_, _)))); [INFO] [stdout] 133 + assert!(matches!(context.get("unit"), Some(Value::Unit { value: _, unit: _ }))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_function` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | context.set_function("func", params1, body1); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_function` with a similar name, but with different arguments [INFO] [stdout] --> src/context.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_function(&self, name: &str) -> Option<&FunctionDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_function` found for struct `tcss_core::Context` in the current scope [INFO] [stdout] --> tests/context_tests.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | context.set_function("func", params2.clone(), body2.clone()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_function` with a similar name, but with different arguments [INFO] [stdout] --> src/context.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_function(&self, name: &str) -> Option<&FunctionDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/context_tests.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | if let Some((params, _)) = context.get_function("func") { [INFO] [stdout] | ^^^^^^^^^^^ ---------------------------- this expression has type `Option<&FunctionDef>` [INFO] [stdout] | | [INFO] [stdout] | expected `FunctionDef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `FunctionDef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0164, E0308, E0533, E0599, E0614. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0164`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tcss-core` (test "context_tests") due to 43 previous errors [INFO] running `Command { std: "docker" "inspect" "d9cddd7458b414d0be7322a6ca3357b6df50e9c424a23363b9afbb379ab6e263", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9cddd7458b414d0be7322a6ca3357b6df50e9c424a23363b9afbb379ab6e263", kill_on_drop: false }` [INFO] [stdout] d9cddd7458b414d0be7322a6ca3357b6df50e9c424a23363b9afbb379ab6e263