[INFO] cloning repository https://github.com/shyim/swc-php [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shyim/swc-php" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshyim%2Fswc-php", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshyim%2Fswc-php'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc18f4ad07d17017aabe7c6d1b5c5bae4ceb258a [INFO] testing shyim/swc-php against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshyim%2Fswc-php" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shyim/swc-php on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-14/source/rust-toolchain [INFO] started tweaking git repo https://github.com/shyim/swc-php [INFO] finished tweaking git repo https://github.com/shyim/swc-php [INFO] tweaked toml for git repo https://github.com/shyim/swc-php written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/shyim/swc-php already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 668db0e3817fc7e0884c5df9c32a4f8641da91845fb72e8ebfdc098bf064fa82 [INFO] running `Command { std: "docker" "start" "-a" "668db0e3817fc7e0884c5df9c32a4f8641da91845fb72e8ebfdc098bf064fa82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "668db0e3817fc7e0884c5df9c32a4f8641da91845fb72e8ebfdc098bf064fa82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "668db0e3817fc7e0884c5df9c32a4f8641da91845fb72e8ebfdc098bf064fa82", kill_on_drop: false }` [INFO] [stdout] 668db0e3817fc7e0884c5df9c32a4f8641da91845fb72e8ebfdc098bf064fa82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 393f7c75835fba43eb65cbb6e5b965ef1eea2702d447ed97aa14de1206c26e17 [INFO] running `Command { std: "docker" "start" "-a" "393f7c75835fba43eb65cbb6e5b965ef1eea2702d447ed97aa14de1206c26e17", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling siphasher v0.3.1 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling strsim v0.9.2 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.3 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling unicode-width v0.1.6 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling if_chain v0.1.3 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling path-clean v0.1.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling hashbrown v0.6.3 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling indexmap v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling backtrace v0.3.40 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling parking_lot v0.4.8 [INFO] [stderr] Compiling chashmap v2.2.2 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling swc_atoms v0.2.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling pmutil v0.5.2 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling swc_macros_common v0.3.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling serde_derive v1.0.103 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling enum_kind v0.2.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling string_enum v0.3.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling swc_ecma_parser_macros v0.4.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.4.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling const-random-macro v0.1.6 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling ast_node v0.5.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling const-random v0.1.6 [INFO] [stderr] Compiling ahash v0.2.18 [INFO] [stderr] Compiling serde v1.0.103 [INFO] [stderr] Compiling string_cache v0.8.0 [INFO] [stderr] Compiling serde_json v1.0.42 [INFO] [stderr] Compiling swc_common v0.4.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling sourcemap v4.1.1 [INFO] [stderr] Compiling swc_ecma_ast v0.10.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling swc_ecma_parser v0.12.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling swc_ecma_codegen v0.8.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stderr] Compiling swc_ecma_transforms v0.2.0 (https://github.com/swc-project/swc.git#b3a2ee8e) [INFO] [stdout] error[E0437]: type `Ok` is not a member of trait `Try` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | type Ok = T; [INFO] [stdout] | ^^^^^^^^^^^^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `Try` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | type Error = UnknownError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `Try` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / fn from_ok(t: T) -> Self { [INFO] [stdout] 42 | | Known(t) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `Try` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / fn from_error(_: UnknownError) -> Self { [INFO] [stdout] 45 | | Unknown [INFO] [stdout] 46 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `into_result` is not a member of trait `Try` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | / fn into_result(self) -> Result { [INFO] [stdout] 48 | | match self { [INFO] [stdout] 49 | | Known(t) => Ok(t), [INFO] [stdout] 50 | | Unknown => Err(UnknownError), [INFO] [stdout] 51 | | } [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Not, Try}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #84277 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | impl Try for Value { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #84277 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Output`, `Residual`, `from_output`, `branch` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util/value.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | impl Try for Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ missing `Output`, `Residual`, `from_output`, `branch` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Output = Type;` [INFO] [stdout] = help: implement the missing item: `type Residual = Type;` [INFO] [stdout] = help: implement the missing item: `fn from_output(_: ::Output) -> Self { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn branch(self) -> ControlFlow<::Residual, ::Output> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:801:37 [INFO] [stdout] | [INFO] [stdout] 755 | / fn perform_abstract_rel_cmp( [INFO] [stdout] 756 | | _span: Span, [INFO] [stdout] 757 | | left: &Expr, [INFO] [stdout] 758 | | right: &Expr, [INFO] [stdout] ... | [INFO] [stdout] 801 | | let (lv, rv) = (left.as_number()?, right.as_number()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 806 | | Known(lv < rv) [INFO] [stdout] 807 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:801:57 [INFO] [stdout] | [INFO] [stdout] 755 | / fn perform_abstract_rel_cmp( [INFO] [stdout] 756 | | _span: Span, [INFO] [stdout] 757 | | left: &Expr, [INFO] [stdout] 758 | | right: &Expr, [INFO] [stdout] ... | [INFO] [stdout] 801 | | let (lv, rv) = (left.as_number()?, right.as_number()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 806 | | Known(lv < rv) [INFO] [stdout] 807 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:811:36 [INFO] [stdout] | [INFO] [stdout] 810 | / fn perform_abstract_eq_cmp(span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 811 | | let (lt, rt) = (left.get_type()?, right.get_type()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] 812 | | [INFO] [stdout] 813 | | if lt == rt { [INFO] [stdout] ... | [INFO] [stdout] 839 | | } [INFO] [stdout] 840 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:811:55 [INFO] [stdout] | [INFO] [stdout] 810 | / fn perform_abstract_eq_cmp(span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 811 | | let (lt, rt) = (left.get_type()?, right.get_type()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] 812 | | [INFO] [stdout] 813 | | if lt == rt { [INFO] [stdout] ... | [INFO] [stdout] 839 | | } [INFO] [stdout] 840 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:820:39 [INFO] [stdout] | [INFO] [stdout] 810 | / fn perform_abstract_eq_cmp(span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 811 | | let (lt, rt) = (left.get_type()?, right.get_type()?); [INFO] [stdout] 812 | | [INFO] [stdout] 813 | | if lt == rt { [INFO] [stdout] ... | [INFO] [stdout] 820 | | let rv = right.as_number()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 839 | | } [INFO] [stdout] 840 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:825:38 [INFO] [stdout] | [INFO] [stdout] 810 | / fn perform_abstract_eq_cmp(span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 811 | | let (lt, rt) = (left.get_type()?, right.get_type()?); [INFO] [stdout] 812 | | [INFO] [stdout] 813 | | if lt == rt { [INFO] [stdout] ... | [INFO] [stdout] 825 | | let lv = left.as_number()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 839 | | } [INFO] [stdout] 840 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:865:36 [INFO] [stdout] | [INFO] [stdout] 843 | / fn perform_strict_eq_cmp(_span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 844 | | // Any strict equality comparison against NaN returns false. [INFO] [stdout] 845 | | if left.is_nan() || right.is_nan() { [INFO] [stdout] 846 | | return Known(false); [INFO] [stdout] ... | [INFO] [stdout] 865 | | let (lt, rt) = (left.get_type()?, right.get_type()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 891 | | } [INFO] [stdout] 892 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:865:55 [INFO] [stdout] | [INFO] [stdout] 843 | / fn perform_strict_eq_cmp(_span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 844 | | // Any strict equality comparison against NaN returns false. [INFO] [stdout] 845 | | if left.is_nan() || right.is_nan() { [INFO] [stdout] 846 | | return Known(false); [INFO] [stdout] ... | [INFO] [stdout] 865 | | let (lt, rt) = (left.get_type()?, right.get_type()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 891 | | } [INFO] [stdout] 892 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:873:45 [INFO] [stdout] | [INFO] [stdout] 843 | / fn perform_strict_eq_cmp(_span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 844 | | // Any strict equality comparison against NaN returns false. [INFO] [stdout] 845 | | if left.is_nan() || right.is_nan() { [INFO] [stdout] 846 | | return Known(false); [INFO] [stdout] ... | [INFO] [stdout] 873 | | NumberType => Known(left.as_number()? == right.as_number()?), [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 891 | | } [INFO] [stdout] 892 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:873:67 [INFO] [stdout] | [INFO] [stdout] 843 | / fn perform_strict_eq_cmp(_span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 844 | | // Any strict equality comparison against NaN returns false. [INFO] [stdout] 845 | | if left.is_nan() || right.is_nan() { [INFO] [stdout] 846 | | return Known(false); [INFO] [stdout] ... | [INFO] [stdout] 873 | | NumberType => Known(left.as_number()? == right.as_number()?), [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 891 | | } [INFO] [stdout] 892 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:875:45 [INFO] [stdout] | [INFO] [stdout] 843 | / fn perform_strict_eq_cmp(_span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 844 | | // Any strict equality comparison against NaN returns false. [INFO] [stdout] 845 | | if left.is_nan() || right.is_nan() { [INFO] [stdout] 846 | | return Known(false); [INFO] [stdout] ... | [INFO] [stdout] 875 | | let (lv, rv) = (left.as_string()?, right.as_string()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 891 | | } [INFO] [stdout] 892 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/simplify/expr.rs:875:65 [INFO] [stdout] | [INFO] [stdout] 843 | / fn perform_strict_eq_cmp(_span: Span, left: &Expr, right: &Expr) -> Value { [INFO] [stdout] 844 | | // Any strict equality comparison against NaN returns false. [INFO] [stdout] 845 | | if left.is_nan() || right.is_nan() { [INFO] [stdout] 846 | | return Known(false); [INFO] [stdout] ... | [INFO] [stdout] 875 | | let (lv, rv) = (left.as_string()?, right.as_string()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 891 | | } [INFO] [stdout] 892 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a trait method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util.rs:328:55 [INFO] [stdout] | [INFO] [stdout] 277 | / fn as_number(&self) -> Value { [INFO] [stdout] 278 | | let expr = self.as_expr_kind(); [INFO] [stdout] 279 | | let v = match *expr { [INFO] [stdout] 280 | | Expr::Lit(ref l) => match *l { [INFO] [stdout] ... | [INFO] [stdout] 328 | | return num_from_str(&*self.as_string()?); [INFO] [stdout] | | ^ cannot use the `?` operator in a trait method that returns `util::value::Value` [INFO] [stdout] ... | [INFO] [stdout] 334 | | Known(v) [INFO] [stdout] 335 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a trait method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util.rs:366:60 [INFO] [stdout] | [INFO] [stdout] 337 | / fn as_string(&self) -> Value> { [INFO] [stdout] 338 | | let expr = self.as_expr_kind(); [INFO] [stdout] 339 | | match *expr { [INFO] [stdout] 340 | | Expr::Lit(ref l) => match *l { [INFO] [stdout] ... | [INFO] [stdout] 366 | | }) => Known(Cow::Borrowed(if arg.as_pure_bool()? { [INFO] [stdout] | | ^ cannot use the `?` operator in a trait method that returns `util::value::Value>` [INFO] [stdout] ... | [INFO] [stdout] 401 | | } [INFO] [stdout] 402 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a trait method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/swc-594f88c93b4170b2/b3a2ee8/ecmascript/transforms/src/util.rs:384:54 [INFO] [stdout] | [INFO] [stdout] 337 | / fn as_string(&self) -> Value> { [INFO] [stdout] 338 | | let expr = self.as_expr_kind(); [INFO] [stdout] 339 | | match *expr { [INFO] [stdout] 340 | | Expr::Lit(ref l) => match *l { [INFO] [stdout] ... | [INFO] [stdout] 384 | | _ => expr.as_string()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a trait method that returns `util::value::Value>` [INFO] [stdout] ... | [INFO] [stdout] 401 | | } [INFO] [stdout] 402 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `util::value::Value>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0277, E0407, E0437, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `swc_ecma_transforms` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "393f7c75835fba43eb65cbb6e5b965ef1eea2702d447ed97aa14de1206c26e17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "393f7c75835fba43eb65cbb6e5b965ef1eea2702d447ed97aa14de1206c26e17", kill_on_drop: false }` [INFO] [stdout] 393f7c75835fba43eb65cbb6e5b965ef1eea2702d447ed97aa14de1206c26e17