[INFO] fetching crate icu_plurals 0.3.0... [INFO] testing icu_plurals-0.3.0 against 1.55.0 for beta-1.56-1 [INFO] extracting crate icu_plurals 0.3.0 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate icu_plurals 0.3.0 on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate icu_plurals 0.3.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate icu_plurals 0.3.0 [INFO] tweaked toml for crates.io crate icu_plurals 0.3.0 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate crates.io crate icu_plurals 0.3.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d7a41e7aeda3c3e28df907c7375a6aba1870c3d652eb667ae1daa084f257d58 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6d7a41e7aeda3c3e28df907c7375a6aba1870c3d652eb667ae1daa084f257d58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d7a41e7aeda3c3e28df907c7375a6aba1870c3d652eb667ae1daa084f257d58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d7a41e7aeda3c3e28df907c7375a6aba1870c3d652eb667ae1daa084f257d58", kill_on_drop: false }` [INFO] [stdout] 6d7a41e7aeda3c3e28df907c7375a6aba1870c3d652eb667ae1daa084f257d58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d582b4d560203a36953d21d307109529d064369600db49d4a17cc7fc572c1801 [INFO] running `Command { std: "docker" "start" "-a" "d582b4d560203a36953d21d307109529d064369600db49d4a17cc7fc572c1801", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling tinystr-raw v0.1.3 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling writeable v0.2.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling litemap v0.2.1 [INFO] [stderr] Compiling tinystr-macros v0.2.0 [INFO] [stderr] Compiling tinystr v0.4.10 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Compiling displaydoc v0.2.3 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling yoke-derive v0.1.1 [INFO] [stderr] Compiling icu_provider_macros v0.3.0 [INFO] [stderr] Compiling icu_locid v0.3.0 [INFO] [stderr] Compiling fixed_decimal v0.2.1 [INFO] [stderr] Compiling yoke v0.2.3 [INFO] [stderr] Compiling icu_provider v0.3.0 [INFO] [stderr] Compiling icu_plurals v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 33.69s [INFO] running `Command { std: "docker" "inspect" "d582b4d560203a36953d21d307109529d064369600db49d4a17cc7fc572c1801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d582b4d560203a36953d21d307109529d064369600db49d4a17cc7fc572c1801", kill_on_drop: false }` [INFO] [stdout] d582b4d560203a36953d21d307109529d064369600db49d4a17cc7fc572c1801 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db6c966f769a8da6c34cd9ec796490752a001d0f98e079044251f780e913d787 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "db6c966f769a8da6c34cd9ec796490752a001d0f98e079044251f780e913d787", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling erased-serde v0.3.16 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling icu_benchmark_macros v0.3.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling proc-macro-crate v1.0.0 [INFO] [stderr] Compiling icu_locid_macros v0.3.0 [INFO] [stderr] Compiling yoke v0.2.3 [INFO] [stderr] Compiling icu_locid v0.3.0 [INFO] [stderr] Compiling bstr v0.2.16 [INFO] [stderr] Compiling serde_cbor v0.11.1 [INFO] [stderr] Compiling icu_provider v0.3.0 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling icu_plurals v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling icu_provider_fs v0.3.0 [INFO] [stderr] Compiling criterion v0.3.5 [INFO] [stderr] Compiling icu_testdata v0.3.0 [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 29.97s [INFO] running `Command { std: "docker" "inspect" "db6c966f769a8da6c34cd9ec796490752a001d0f98e079044251f780e913d787", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db6c966f769a8da6c34cd9ec796490752a001d0f98e079044251f780e913d787", kill_on_drop: false }` [INFO] [stdout] db6c966f769a8da6c34cd9ec796490752a001d0f98e079044251f780e913d787 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] de2ea875f943dc196f97220b09b478e40ab788f17c3838f23aa3c2ec55ac3f8e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "de2ea875f943dc196f97220b09b478e40ab788f17c3838f23aa3c2ec55ac3f8e", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/icu_plurals-5e7e3622c5068d24) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/categories.rs (/opt/rustwide/target/debug/deps/categories-e95f0560dfb0bfb6) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] Running tests/helpers.rs (/opt/rustwide/target/debug/deps/helpers-7b3c92a8dd09fd8b) [INFO] [stdout] test test_categories ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/plurals.rs (/opt/rustwide/target/debug/deps/plurals-9102b263dbe02ebc) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test test_plural_category_all ... ok [INFO] [stderr] Running tests/rules.rs (/opt/rustwide/target/debug/deps/rules-be2834d2c316233e) [INFO] [stdout] test test_plural_rules_missing ... ok [INFO] [stdout] test test_plural_rules ... ok [INFO] [stdout] test test_plural_rules_non_static_lifetime ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_parsing_operands ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests icu_plurals [INFO] [stdout] [INFO] [stdout] running 34 tests [INFO] [stdout] test src/operands.rs - operands::PluralOperands (line 62) ... FAILED [INFO] [stdout] test src/operands.rs - operands::PluralOperands (line 34) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::Operand (line 261) ... FAILED [INFO] [stdout] test src/lib.rs - PluralRules::select (line 293) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast (line 11) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::DecimalValue (line 449) ... FAILED [INFO] [stdout] test src/lib.rs - PluralRules (line 236) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::AndCondition (line 144) ... FAILED [INFO] [stdout] test src/lib.rs - PluralRules::categories (line 360) ... FAILED [INFO] [stdout] test src/operands.rs - operands::PluralOperands (line 48) ... FAILED [INFO] [stdout] test src/lib.rs - (line 26) ... FAILED [INFO] [stdout] test src/lib.rs - PluralCategory::all (line 203) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::Condition (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - PluralRules::select (line 322) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::Expression (line 233) ... FAILED [INFO] [stdout] test src/lib.rs - PluralCategory (line 125) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::Samples (line 369) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::SampleRange (line 428) ... FAILED [INFO] [stdout] test src/lib.rs - PluralRules::try_new (line 266) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::Relation (line 185) ... FAILED [INFO] [stdout] test src/rules/mod.rs - rules (line 57) ... FAILED [INFO] [stdout] test src/rules/mod.rs - rules (line 32) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::RangeList (line 300) ... FAILED [INFO] [stdout] test src/rules/lexer.rs - rules::lexer::Lexer::new (line 62) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::RangeListItem (line 328) ... FAILED [INFO] [stdout] test src/rules/mod.rs - rules (line 99) ... FAILED [INFO] [stdout] test src/rules/serializer.rs - rules::serializer::serialize (line 13) ... FAILED [INFO] [stdout] test src/rules/parser.rs - rules::parser::parse (line 49) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::SampleList (line 402) ... FAILED [INFO] [stdout] test src/rules/lexer.rs - rules::lexer::Lexer (line 45) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::Value (line 353) ... FAILED [INFO] [stdout] test src/rules/ast.rs - rules::ast::Rule (line 50) ... FAILED [INFO] [stdout] test src/rules/parser.rs - rules::parser::parse_condition (line 77) ... FAILED [INFO] [stdout] test src/rules/resolver.rs - rules::resolver::test_condition (line 13) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/operands.rs - operands::PluralOperands (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/operands.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::PluralOperands; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluralOperands` in this scope [INFO] [stdout] --> src/operands.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(Ok(PluralOperands { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/operands.rs - operands::PluralOperands (line 34) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/operands.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::PluralOperands; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluralOperands` in this scope [INFO] [stdout] --> src/operands.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(PluralOperands { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralOperands` [INFO] [stdout] --> src/operands.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 11 | }, PluralOperands::from(2_usize)) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::Operand (line 261) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::Operand; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 5 | Operand::I; [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PluralRules::select (line 293) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::locid::macros::langid; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::{PluralRules, PluralRuleType, PluralCategory}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `langid` in this scope [INFO] [stdout] --> src/lib.rs:298:11 [INFO] [stdout] | [INFO] [stdout] 7 | let lid = langid!("en"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] icu_locid_macros::langid [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRuleType` [INFO] [stdout] --> src/lib.rs:302:41 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralRuleType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 15 | PluralCategory::One => "One item", [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 16 | PluralCategory::Other => "Many items", [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRules` [INFO] [stdout] --> src/lib.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast (line 11) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::parse_condition; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `icu::plurals::rules::parse_condition` [INFO] [stdout] --> src/rules/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::parse_condition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 15 | operand: Operand::I, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/ast.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 18 | operator: Operator::Eq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_condition` in this scope [INFO] [stdout] --> src/rules/ast.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 8 | let ast = parse_condition(input.as_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Condition` in this scope [INFO] [stdout] --> src/rules/ast.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(ast, Condition(Box::new([ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AndCondition` in this scope [INFO] [stdout] --> src/rules/ast.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 12 | AndCondition(Box::new([ [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::AndCondition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/ast.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 13 | Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/ast.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 14 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/ast.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 19 | range_list: RangeList(Box::new([ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 20 | RangeListItem::Value( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 21 | Value(1) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::DecimalValue (line 449) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:450:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:451:1 [INFO] [stdout] | [INFO] [stdout] 4 | DecimalValue("1.00".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PluralRules (line 236) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::locid::macros::langid; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::{PluralRules, PluralRuleType, PluralCategory}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `langid` in this scope [INFO] [stdout] --> src/lib.rs:241:11 [INFO] [stdout] | [INFO] [stdout] 7 | let lid = langid!("en"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] icu_locid_macros::langid [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRuleType` [INFO] [stdout] --> src/lib.rs:245:41 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralRuleType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:248:32 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(pr.select(5_usize), PluralCategory::Other); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRules` [INFO] [stdout] --> src/lib.rs:245:10 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::AndCondition (line 144) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 8 | operand: Operand::I, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/ast.rs:153:19 [INFO] [stdout] | [INFO] [stdout] 11 | operator: Operator::Eq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:158:22 [INFO] [stdout] | [INFO] [stdout] 16 | operand: Operand::V, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/ast.rs:161:19 [INFO] [stdout] | [INFO] [stdout] 19 | operator: Operator::NotEq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AndCondition` in this scope [INFO] [stdout] --> src/rules/ast.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 5 | AndCondition(Box::new([ [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::AndCondition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/ast.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 6 | Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/ast.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 7 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/ast.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 12 | range_list: RangeList(Box::new([RangeListItem::Value(Value(5))])), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:154:41 [INFO] [stdout] | [INFO] [stdout] 12 | range_list: RangeList(Box::new([RangeListItem::Value(Value(5))])), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:154:62 [INFO] [stdout] | [INFO] [stdout] 12 | range_list: RangeList(Box::new([RangeListItem::Value(Value(5))])), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/ast.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 14 | Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/ast.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 15 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/ast.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 20 | range_list: RangeList(Box::new([RangeListItem::Value(Value(2))])), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:162:41 [INFO] [stdout] | [INFO] [stdout] 20 | range_list: RangeList(Box::new([RangeListItem::Value(Value(2))])), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:162:62 [INFO] [stdout] | [INFO] [stdout] 20 | range_list: RangeList(Box::new([RangeListItem::Value(Value(2))])), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PluralRules::categories (line 360) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:361:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::locid::macros::langid; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::{PluralRules, PluralRuleType, PluralCategory}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `langid` in this scope [INFO] [stdout] --> src/lib.rs:365:11 [INFO] [stdout] | [INFO] [stdout] 7 | let lid = langid!("fr"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] icu_locid_macros::langid [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRuleType` [INFO] [stdout] --> src/lib.rs:369:41 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralRuleType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:373:37 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(categories.next(), Some(&PluralCategory::Many)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:374:37 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(categories.next(), Some(&PluralCategory::One)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:375:37 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(categories.next(), Some(&PluralCategory::Other)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRules` [INFO] [stdout] --> src/lib.rs:369:10 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/operands.rs - operands::PluralOperands (line 48) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/operands.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::PluralOperands; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluralOperands` in this scope [INFO] [stdout] --> src/operands.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(Ok(PluralOperands { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 26) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::locid::macros::langid; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::{PluralRules, PluralRuleType, PluralCategory}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `langid` in this scope [INFO] [stdout] --> src/lib.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 6 | let lid = langid!("en"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] icu_locid_macros::langid [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRuleType` [INFO] [stdout] --> src/lib.rs:34:47 [INFO] [stdout] | [INFO] [stdout] 10 | let pr = PluralRules::try_new(lid, &provider, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralRuleType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(pr.select(5_usize), PluralCategory::Other); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRules` [INFO] [stdout] --> src/lib.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 10 | let pr = PluralRules::try_new(lid, &provider, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PluralCategory::all (line 203) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::PluralCategory; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:208:37 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(categories.next(), Some(&PluralCategory::Few)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:209:37 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(categories.next(), Some(&PluralCategory::Many)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:210:37 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(categories.next(), Some(&PluralCategory::One)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:211:37 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(categories.next(), Some(&PluralCategory::Other)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(categories.next(), Some(&PluralCategory::Two)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(categories.next(), Some(&PluralCategory::Zero)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:206:22 [INFO] [stdout] | [INFO] [stdout] 5 | let mut categories = PluralCategory::all(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralCategory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::Condition (line 97) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::parse_condition; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `icu::plurals::rules::parse_condition` [INFO] [stdout] --> src/rules/ast.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::parse_condition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:104:22 [INFO] [stdout] | [INFO] [stdout] 9 | operand: Operand::I, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/ast.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 12 | operator: Operator::Eq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 17 | operand: Operand::V, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/ast.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 20 | operator: Operator::Eq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Condition` in this scope [INFO] [stdout] --> src/rules/ast.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 6 | let condition = Condition(Box::new([ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AndCondition` in this scope [INFO] [stdout] --> src/rules/ast.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 7 | AndCondition(Box::new([Relation { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::AndCondition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/ast.rs:102:28 [INFO] [stdout] | [INFO] [stdout] 7 | AndCondition(Box::new([Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/ast.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 8 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/ast.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 13 | range_list: RangeList(Box::new([RangeListItem::Value(Value(5))])), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:108:41 [INFO] [stdout] | [INFO] [stdout] 13 | range_list: RangeList(Box::new([RangeListItem::Value(Value(5))])), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:108:62 [INFO] [stdout] | [INFO] [stdout] 13 | range_list: RangeList(Box::new([RangeListItem::Value(Value(5))])), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AndCondition` in this scope [INFO] [stdout] --> src/rules/ast.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 15 | AndCondition(Box::new([Relation { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::AndCondition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/ast.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 15 | AndCondition(Box::new([Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/ast.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 16 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/ast.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 21 | range_list: RangeList(Box::new([RangeListItem::Value(Value(2))])), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:116:41 [INFO] [stdout] | [INFO] [stdout] 21 | range_list: RangeList(Box::new([RangeListItem::Value(Value(2))])), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:116:62 [INFO] [stdout] | [INFO] [stdout] 21 | range_list: RangeList(Box::new([RangeListItem::Value(Value(2))])), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_condition` in this scope [INFO] [stdout] --> src/rules/ast.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 27 | parse_condition(b"i = 5 or v = 2") [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PluralRules::select (line 322) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::locid::macros::langid; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 5 | use icu::plurals::{PluralRules, PluralRuleType}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 6 | use icu::plurals::{PluralCategory, PluralOperands}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `langid` in this scope [INFO] [stdout] --> src/lib.rs:329:11 [INFO] [stdout] | [INFO] [stdout] 9 | let lid = langid!("en"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] icu_locid_macros::langid [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRuleType` [INFO] [stdout] --> src/lib.rs:333:41 [INFO] [stdout] | [INFO] [stdout] 13 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralRuleType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:341:33 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(pr.select(operands), PluralCategory::Other); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:342:34 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(pr.select(operands2), PluralCategory::Other); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRules` [INFO] [stdout] --> src/lib.rs:333:10 [INFO] [stdout] | [INFO] [stdout] 13 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralOperands` [INFO] [stdout] --> src/lib.rs:336:16 [INFO] [stdout] | [INFO] [stdout] 16 | let operands = PluralOperands::try_from(-5) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PluralOperands` in this scope [INFO] [stdout] --> src/lib.rs:338:16 [INFO] [stdout] | [INFO] [stdout] 18 | let operands2: PluralOperands = "5.10".parse() [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::Expression (line 233) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:237:14 [INFO] [stdout] | [INFO] [stdout] 6 | operand: Operand::I, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/ast.rs:236:1 [INFO] [stdout] | [INFO] [stdout] 5 | Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 7 | modulus: Some(Value(100)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PluralCategory (line 125) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::locid::macros::langid; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::{PluralRules, PluralRuleType, PluralCategory}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `langid` in this scope [INFO] [stdout] --> src/lib.rs:130:11 [INFO] [stdout] | [INFO] [stdout] 7 | let lid = langid!("en"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] icu_locid_macros::langid [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRuleType` [INFO] [stdout] --> src/lib.rs:134:41 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralRuleType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralCategory` [INFO] [stdout] --> src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(pr.select(5_usize), PluralCategory::Other); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralCategory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRules` [INFO] [stdout] --> src/lib.rs:134:10 [INFO] [stdout] | [INFO] [stdout] 11 | let pr = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::Samples (line 369) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Samples` in this scope [INFO] [stdout] --> src/rules/ast.rs:371:1 [INFO] [stdout] | [INFO] [stdout] 4 | Samples { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Samples; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleList` in this scope [INFO] [stdout] --> src/rules/ast.rs:372:19 [INFO] [stdout] | [INFO] [stdout] 5 | integer: Some(SampleList { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleRange` in this scope [INFO] [stdout] --> src/rules/ast.rs:373:34 [INFO] [stdout] | [INFO] [stdout] 6 | sample_ranges: Box::new([SampleRange { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleRange; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:374:24 [INFO] [stdout] | [INFO] [stdout] 7 | lower_val: DecimalValue("2".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleList` in this scope [INFO] [stdout] --> src/rules/ast.rs:379:19 [INFO] [stdout] | [INFO] [stdout] 12 | decimal: Some(SampleList { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleRange` in this scope [INFO] [stdout] --> src/rules/ast.rs:380:34 [INFO] [stdout] | [INFO] [stdout] 13 | sample_ranges: Box::new([SampleRange { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleRange; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:381:24 [INFO] [stdout] | [INFO] [stdout] 14 | lower_val: DecimalValue("2.5".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::SampleRange (line 428) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:429:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleRange` in this scope [INFO] [stdout] --> src/rules/ast.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 4 | SampleRange { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleRange; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:431:16 [INFO] [stdout] | [INFO] [stdout] 5 | lower_val: DecimalValue("0.0".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:432:21 [INFO] [stdout] | [INFO] [stdout] 6 | upper_val: Some(DecimalValue("1.5".to_string())), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PluralRules::try_new (line 266) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::locid::macros::langid; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/lib.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::{PluralRules, PluralRuleType}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `langid` in this scope [INFO] [stdout] --> src/lib.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 7 | let lid = langid!("en"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] icu_locid_macros::langid [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRuleType` [INFO] [stdout] --> src/lib.rs:275:40 [INFO] [stdout] | [INFO] [stdout] 11 | let _ = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PluralRuleType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralRules` [INFO] [stdout] --> src/lib.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 11 | let _ = PluralRules::try_new(lid, &dp, PluralRuleType::Cardinal); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::Relation (line 185) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/ast.rs:190:18 [INFO] [stdout] | [INFO] [stdout] 7 | operand: Operand::I, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/ast.rs:193:15 [INFO] [stdout] | [INFO] [stdout] 10 | operator: Operator::Eq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/ast.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 5 | Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/ast.rs:189:17 [INFO] [stdout] | [INFO] [stdout] 6 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/ast.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 11 | range_list: RangeList(Box::new([RangeListItem::Value(Value(3))])), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:194:37 [INFO] [stdout] | [INFO] [stdout] 11 | range_list: RangeList(Box::new([RangeListItem::Value(Value(3))])), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:194:58 [INFO] [stdout] | [INFO] [stdout] 11 | range_list: RangeList(Box::new([RangeListItem::Value(Value(3))])), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/mod.rs - rules (line 57) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::parse_condition; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `icu::plurals::rules::parse_condition` [INFO] [stdout] --> src/rules/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::parse_condition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/mod.rs:69:26 [INFO] [stdout] | [INFO] [stdout] 14 | operand: Operand::I, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/mod.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 17 | operator: Operator::Eq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/rules/mod.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 26 | operand: Operand::V, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operator` [INFO] [stdout] --> src/rules/mod.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 29 | operator: Operator::Eq, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Operator` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_condition` in this scope [INFO] [stdout] --> src/rules/mod.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 8 | let ast = parse_condition(input.as_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Condition` in this scope [INFO] [stdout] --> src/rules/mod.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(ast, Condition(Box::new([ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AndCondition` in this scope [INFO] [stdout] --> src/rules/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 11 | AndCondition(Box::new([ [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::AndCondition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/mod.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 12 | Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/mod.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 13 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/mod.rs:73:25 [INFO] [stdout] | [INFO] [stdout] 18 | range_list: RangeList(Box::new([ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 19 | RangeListItem::Value( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/mod.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 20 | Value(1) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Relation` in this scope [INFO] [stdout] --> src/rules/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 24 | Relation { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Relation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expression` in this scope [INFO] [stdout] --> src/rules/mod.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 25 | expression: Expression { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/mod.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 30 | range_list: RangeList(Box::new([ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/mod.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 31 | RangeListItem::Value( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/mod.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 32 | Value(0) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/mod.rs - rules (line 32) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::PluralOperands; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluralOperands` in this scope [INFO] [stdout] --> src/rules/mod.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 4 | PluralOperands { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::RangeList (line 300) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RangeList` in this scope [INFO] [stdout] --> src/rules/ast.rs:303:1 [INFO] [stdout] | [INFO] [stdout] 5 | RangeList(Box::new([ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:304:5 [INFO] [stdout] | [INFO] [stdout] 6 | RangeListItem::Value(Value(5)), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:304:26 [INFO] [stdout] | [INFO] [stdout] 6 | RangeListItem::Value(Value(5)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:305:5 [INFO] [stdout] | [INFO] [stdout] 7 | RangeListItem::Value(Value(7)), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:305:26 [INFO] [stdout] | [INFO] [stdout] 7 | RangeListItem::Value(Value(7)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 8 | RangeListItem::Value(Value(9)), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:306:26 [INFO] [stdout] | [INFO] [stdout] 8 | RangeListItem::Value(Value(9)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/lexer.rs - rules::lexer::Lexer::new (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/lexer.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::Lexer; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> src/rules/lexer.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 5 | Lexer::new(b"n = 1"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::RangeListItem (line 328) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:329:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 5 | let _ = RangeListItem::Value(Value(5)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:331:30 [INFO] [stdout] | [INFO] [stdout] 5 | let _ = RangeListItem::Value(Value(5)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 6 | let _ = RangeListItem::Range(Value(11)..=Value(15)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:332:30 [INFO] [stdout] | [INFO] [stdout] 6 | let _ = RangeListItem::Range(Value(11)..=Value(15)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:332:42 [INFO] [stdout] | [INFO] [stdout] 6 | let _ = RangeListItem::Range(Value(11)..=Value(15)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/mod.rs - rules (line 99) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/mod.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::{test_condition, parse_condition}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/mod.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::PluralOperands; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralOperands` [INFO] [stdout] --> src/rules/mod.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 8 | let operands = PluralOperands::from(1_u32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_condition` in this scope [INFO] [stdout] --> src/rules/mod.rs:107:11 [INFO] [stdout] | [INFO] [stdout] 10 | let ast = parse_condition(input.as_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_condition` in this scope [INFO] [stdout] --> src/rules/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 13 | assert!(test_condition(&ast, &operands)); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::test_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/serializer.rs - rules::serializer::serialize (line 13) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/serializer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::parse; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/serializer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::ast; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/serializer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | use icu::plurals::rules::serialize; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/rules/serializer.rs:23:56 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(ast.condition.0[0].0[0].expression.operand, ast::Operand::I); [INFO] [stdout] | ^^^ use of undeclared crate or module `ast` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/rules/serializer.rs:24:56 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(ast.condition.0[1].0[0].expression.operand, ast::Operand::N); [INFO] [stdout] | ^^^ use of undeclared crate or module `ast` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse` in this scope [INFO] [stdout] --> src/rules/serializer.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 9 | let ast = parse(input.as_bytes()) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `serialize` in this scope [INFO] [stdout] --> src/rules/serializer.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 16 | serialize(&ast, &mut result) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/parser.rs - rules::parser::parse (line 49) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/parser.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::parse; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse` in this scope [INFO] [stdout] --> src/rules/parser.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(parse(input).is_ok(), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::SampleList (line 402) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleList` in this scope [INFO] [stdout] --> src/rules/ast.rs:404:1 [INFO] [stdout] | [INFO] [stdout] 4 | SampleList { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleRange` in this scope [INFO] [stdout] --> src/rules/ast.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 6 | SampleRange { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleRange; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:407:24 [INFO] [stdout] | [INFO] [stdout] 7 | lower_val: DecimalValue("0.0".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 8 | upper_val: Some(DecimalValue("1.5".to_string())), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/lexer.rs - rules::lexer::Lexer (line 45) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/lexer.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::Lexer; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> src/rules/lexer.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 6 | let lexer = Lexer::new(input); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::Value (line 353) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:354:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RangeListItem` [INFO] [stdout] --> src/rules/ast.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 5 | RangeListItem::Value(Value(99)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Value` in this scope [INFO] [stdout] --> src/rules/ast.rs:356:22 [INFO] [stdout] | [INFO] [stdout] 5 | RangeListItem::Value(Value(99)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::RangeListItem::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/ast.rs - rules::ast::Rule (line 50) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::ast::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/ast.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::{parse, parse_condition}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `icu::plurals::rules::parse`, `icu::plurals::rules::parse_condition` [INFO] [stdout] --> src/rules/ast.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::{parse, parse_condition}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_condition` in this scope [INFO] [stdout] --> src/rules/ast.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 6 | let condition = parse_condition(b"i = 5 or v = 2") [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Samples` in this scope [INFO] [stdout] --> src/rules/ast.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 9 | let samples = Samples { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Samples; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleList` in this scope [INFO] [stdout] --> src/rules/ast.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 10 | integer: Some(SampleList { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleRange` in this scope [INFO] [stdout] --> src/rules/ast.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 11 | sample_ranges: Box::new([SampleRange { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleRange; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 12 | lower_val: DecimalValue("2".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleList` in this scope [INFO] [stdout] --> src/rules/ast.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 17 | decimal: Some(SampleList { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SampleRange` in this scope [INFO] [stdout] --> src/rules/ast.rs:66:34 [INFO] [stdout] | [INFO] [stdout] 18 | sample_ranges: Box::new([SampleRange { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::SampleRange; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DecimalValue` in this scope [INFO] [stdout] --> src/rules/ast.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 19 | lower_val: DecimalValue("2.5".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::DecimalValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rule` in this scope [INFO] [stdout] --> src/rules/ast.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 26 | let rule = Rule { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::ast::Rule; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse` in this scope [INFO] [stdout] --> src/rules/ast.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 33 | parse("i = 5 or v = 2 @integer 2, … @decimal 2.5".as_bytes()) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/parser.rs - rules::parser::parse_condition (line 77) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/parser.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::rules::parse_condition; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_condition` in this scope [INFO] [stdout] --> src/rules/parser.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(parse_condition(input).is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules/resolver.rs - rules::resolver::test_condition (line 13) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/resolver.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 3 | use icu::plurals::PluralOperands; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `icu` [INFO] [stdout] --> src/rules/resolver.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 4 | use icu::plurals::rules::{parse_condition, test_condition}; [INFO] [stdout] | ^^^ use of undeclared crate or module `icu` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PluralOperands` [INFO] [stdout] --> src/rules/resolver.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 6 | let operands = PluralOperands::from(5_usize); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::PluralOperands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_condition` in this scope [INFO] [stdout] --> src/rules/resolver.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 7 | let condition = parse_condition(b"i = 4..6") [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::parse_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_condition` in this scope [INFO] [stdout] --> src/rules/resolver.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(test_condition(&condition, &operands), true); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use icu_plurals::rules::test_condition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 26) [INFO] [stdout] src/lib.rs - PluralCategory (line 125) [INFO] [stdout] src/lib.rs - PluralCategory::all (line 203) [INFO] [stdout] src/lib.rs - PluralRules (line 236) [INFO] [stdout] src/lib.rs - PluralRules::categories (line 360) [INFO] [stdout] src/lib.rs - PluralRules::select (line 293) [INFO] [stdout] src/lib.rs - PluralRules::select (line 322) [INFO] [stdout] src/lib.rs - PluralRules::try_new (line 266) [INFO] [stdout] src/operands.rs - operands::PluralOperands (line 34) [INFO] [stdout] src/operands.rs - operands::PluralOperands (line 48) [INFO] [stdout] src/operands.rs - operands::PluralOperands (line 62) [INFO] [stdout] src/rules/ast.rs - rules::ast (line 11) [INFO] [stdout] src/rules/ast.rs - rules::ast::AndCondition (line 144) [INFO] [stdout] src/rules/ast.rs - rules::ast::Condition (line 97) [INFO] [stdout] src/rules/ast.rs - rules::ast::DecimalValue (line 449) [INFO] [stdout] src/rules/ast.rs - rules::ast::Expression (line 233) [INFO] [stdout] src/rules/ast.rs - rules::ast::Operand (line 261) [INFO] [stdout] src/rules/ast.rs - rules::ast::RangeList (line 300) [INFO] [stdout] src/rules/ast.rs - rules::ast::RangeListItem (line 328) [INFO] [stdout] src/rules/ast.rs - rules::ast::Relation (line 185) [INFO] [stdout] src/rules/ast.rs - rules::ast::Rule (line 50) [INFO] [stdout] src/rules/ast.rs - rules::ast::SampleList (line 402) [INFO] [stdout] src/rules/ast.rs - rules::ast::SampleRange (line 428) [INFO] [stdout] src/rules/ast.rs - rules::ast::Samples (line 369) [INFO] [stdout] src/rules/ast.rs - rules::ast::Value (line 353) [INFO] [stdout] src/rules/lexer.rs - rules::lexer::Lexer (line 45) [INFO] [stdout] src/rules/lexer.rs - rules::lexer::Lexer::new (line 62) [INFO] [stdout] src/rules/mod.rs - rules (line 32) [INFO] [stdout] src/rules/mod.rs - rules (line 57) [INFO] [stdout] src/rules/mod.rs - rules (line 99) [INFO] [stdout] src/rules/parser.rs - rules::parser::parse (line 49) [INFO] [stdout] src/rules/parser.rs - rules::parser::parse_condition (line 77) [INFO] [stdout] src/rules/resolver.rs - rules::resolver::test_condition (line 13) [INFO] [stdout] src/rules/serializer.rs - rules::serializer::serialize (line 13) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 34 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.13s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "de2ea875f943dc196f97220b09b478e40ab788f17c3838f23aa3c2ec55ac3f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de2ea875f943dc196f97220b09b478e40ab788f17c3838f23aa3c2ec55ac3f8e", kill_on_drop: false }` [INFO] [stdout] de2ea875f943dc196f97220b09b478e40ab788f17c3838f23aa3c2ec55ac3f8e