[INFO] cloning repository https://github.com/lucaliebenberg/rust-typescript [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucaliebenberg/rust-typescript" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucaliebenberg%2Frust-typescript", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucaliebenberg%2Frust-typescript'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 60e01c0b922991e4538d910c76c947b4a283e9e3 [INFO] testing lucaliebenberg/rust-typescript against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucaliebenberg%2Frust-typescript" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lucaliebenberg/rust-typescript [INFO] finished tweaking git repo https://github.com/lucaliebenberg/rust-typescript [INFO] tweaked toml for git repo https://github.com/lucaliebenberg/rust-typescript written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lucaliebenberg/rust-typescript on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lucaliebenberg/rust-typescript already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0468acddb27911d5beef41463a5fef21c18e1d9e83664dc8cdd87f8ae910c197 [INFO] running `Command { std: "docker" "start" "-a" "0468acddb27911d5beef41463a5fef21c18e1d9e83664dc8cdd87f8ae910c197", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0468acddb27911d5beef41463a5fef21c18e1d9e83664dc8cdd87f8ae910c197", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0468acddb27911d5beef41463a5fef21c18e1d9e83664dc8cdd87f8ae910c197", kill_on_drop: false }` [INFO] [stdout] 0468acddb27911d5beef41463a5fef21c18e1d9e83664dc8cdd87f8ae910c197 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec94e281aee62663ae463acea41571cf9e324d632828681ba3e376b0b77f797e [INFO] running `Command { std: "docker" "start" "-a" "ec94e281aee62663ae463acea41571cf9e324d632828681ba3e376b0b77f797e", kill_on_drop: false }` [INFO] [stderr] Compiling rust-typescript v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, `}`, or an operator, found `:` [INFO] [stdout] --> src/shapes/rect.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 78 | return RectIter { [INFO] [stdout] | -------- while parsing this struct [INFO] [stdout] 79 | points: [INFO] [stdout] 80 | idx: 0 [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of 8 possible tokens [INFO] [stdout] | help: try adding a comma: `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `IntoIterator` is not a member of trait `IntoIterator` [INFO] [stdout] --> src/shapes/rect.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | type IntoIterator = RectIter; [INFO] [stdout] | ^^^^^------------^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | help: there is an associated type with a similar name: `IntoIter` [INFO] [stdout] | not a member of trait `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dx` in this scope [INFO] [stdout] --> src/shapes/circle.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | return dx * dx + dy * d <= self.radius * self.radius; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dx` in this scope [INFO] [stdout] --> src/shapes/circle.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | return dx * dx + dy * d <= self.radius * self.radius; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dy` in this scope [INFO] [stdout] --> src/shapes/circle.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | return dx * dx + dy * d <= self.radius * self.radius; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `d` in this scope [INFO] [stdout] --> src/shapes/circle.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | return dx * dx + dy * d <= self.radius * self.radius; [INFO] [stdout] | ^ help: a local variable with a similar name exists: `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rect` in this scope [INFO] [stdout] --> src/shapes/circle.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | impl Collidable for Circle { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Rect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rect` in this scope [INFO] [stdout] --> src/shapes/circle.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | fn collide(&self, other: &Rect) -> bool { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Rect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shapes::collisions::Collidable` [INFO] [stdout] --> src/shapes/rect.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shapes::collisions::Collidable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Circle` [INFO] [stdout] --> src/shapes/rect.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Circle; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `IntoIterator` not found for `Self` [INFO] [stdout] --> src/shapes/rect.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | fn into_iter(self) -> Self::IntoIterator { [INFO] [stdout] | ^^^^^^^^^^^^ help: there is an associated type with a similar name: `IntoIter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `IntoIter` [INFO] [stdout] --> src/shapes/rect.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | impl IntoIterator for Rect { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `IntoIter` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type IntoIter = /* Type */;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `&Circle` is not an iterator [INFO] [stdout] --> src/shapes/circle.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | for point in other { [INFO] [stdout] | ^^^^^ `&Circle` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `&Circle` [INFO] [stdout] = note: required for `&Circle` to implement `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `idx` in initializer of `RectIter` [INFO] [stdout] --> src/shapes/rect.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | return RectIter { [INFO] [stdout] | ^^^^^^^^ missing `idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/shapes/rect.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | (self.x, self.width, self.y), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(f64, f64)` [INFO] [stdout] found tuple `(f64, f64, f64)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/shapes/collisions.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 53 | if self.contains_point(&point) { [INFO] [stdout] | -------------- ^^^^^^ expected `(f64, f64)`, found `&(f64, f64)` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(_, _)` [INFO] [stdout] found reference `&(_, _)` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/shapes/collisions.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn contains_point(&self, point: (f64, f64)) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ ----- [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 53 - if self.contains_point(&point) { [INFO] [stdout] 53 + if self.contains_point(point) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `collide` found for struct `Rect` in the current scope [INFO] [stdout] | [INFO] [stdout] ::: src/shapes/rect.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Rect { [INFO] [stdout] | --------------- method `collide` not found for this struct [INFO] [stdout] | [INFO] [stdout] ::: src/shapes/collisions.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn collide(&self, other: &T) -> bool; [INFO] [stdout] | ------- the method is available for `Rect` here [INFO] [stdout] --> src/main.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | rect.collide(&rect2); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Collidable` which provides `collide` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::shapes::collisions::Collidable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `collides` with a similar name [INFO] [stdout] | [INFO] [stdout] 20 | rect.collides(&rect2); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Circle` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | println!("{:?}",circle) [INFO] [stdout] | ---- ^^^^^^ `Circle` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Circle` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Circle` or manually `impl Debug for Circle` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Circle` with `#[derive(Debug)]` [INFO] [stdout] --> src/shapes/circle.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Debug)] [INFO] [stdout] 6 | pub struct Circle { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0063, E0220, E0277, E0308, E0412, E0425, E0437, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-typescript` (bin "rust-typescript") due to 16 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ec94e281aee62663ae463acea41571cf9e324d632828681ba3e376b0b77f797e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec94e281aee62663ae463acea41571cf9e324d632828681ba3e376b0b77f797e", kill_on_drop: false }` [INFO] [stdout] ec94e281aee62663ae463acea41571cf9e324d632828681ba3e376b0b77f797e