[INFO] fetching crate lightyear_utils 0.23.0... [INFO] checking lightyear_utils-0.23.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate lightyear_utils 0.23.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate lightyear_utils 0.23.0 [INFO] finished tweaking crates.io crate lightyear_utils 0.23.0 [INFO] tweaked toml for crates.io crate lightyear_utils 0.23.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lightyear_utils 0.23.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate lightyear_utils 0.23.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 27f594633c024f03f7019b9650e1453d212050d1656c02d477db73168e299a86 [INFO] running `Command { std: "docker" "start" "-a" "27f594633c024f03f7019b9650e1453d212050d1656c02d477db73168e299a86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "27f594633c024f03f7019b9650e1453d212050d1656c02d477db73168e299a86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27f594633c024f03f7019b9650e1453d212050d1656c02d477db73168e299a86", kill_on_drop: false }` [INFO] [stdout] 27f594633c024f03f7019b9650e1453d212050d1656c02d477db73168e299a86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff19e51587d0d9aa3b075332854af865eb2a1d3e1ee1d5fd7aa1116c2a62dfd8 [INFO] running `Command { std: "docker" "start" "-a" "ff19e51587d0d9aa3b075332854af865eb2a1d3e1ee1d5fd7aa1116c2a62dfd8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling typeid v1.0.3 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-lite v2.6.1 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking disqualified v1.0.0 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Checking bevy_ptr v0.16.1 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking fixedbitset v0.5.7 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Checking nonmax v0.5.5 [INFO] [stderr] Checking downcast-rs v2.0.1 [INFO] [stderr] Checking bumpalo v3.19.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking seahash v4.1.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Checking erased-serde v0.4.6 [INFO] [stderr] Checking bevy_platform v0.16.1 [INFO] [stderr] Checking bevy_utils v0.16.1 [INFO] [stderr] Compiling bevy_macro_utils v0.16.1 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling variadics_please v1.1.0 [INFO] [stderr] Compiling assert_type_match v0.1.1 [INFO] [stderr] Compiling bevy_ecs_macros v0.16.1 [INFO] [stderr] Compiling bevy_reflect_derive v0.16.1 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking bevy_tasks v0.16.1 [INFO] [stderr] Checking bevy_reflect v0.16.1 [INFO] [stderr] Checking bevy_ecs v0.16.1 [INFO] [stderr] Checking lightyear_utils v0.23.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/wrapping_id.rs:153:28 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn to_tick(&self) -> Tick { [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] ... [INFO] [stdout] 324 | atomic_wrapping_id!(AtomicTick); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/wrapping_id.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn set_if_lower(&self, new_value: Tick){ [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] ... [INFO] [stdout] 324 | atomic_wrapping_id!(AtomicTick); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/wrapping_id.rs:153:28 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn to_tick(&self) -> Tick { [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] ... [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/wrapping_id.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn set_if_lower(&self, new_value: Tick){ [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] ... [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::atomic_wrapping_id` [INFO] [stdout] --> src/wrapping_id.rs:326:20 [INFO] [stdout] | [INFO] [stdout] 326 | use super::atomic_wrapping_id::Tick; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ could not find `atomic_wrapping_id` in `super` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `lightyear_utils` [INFO] [stdout] --> src/wrapping_id.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | use lightyear_utils::wrapping_id::{wrapping_diff, WrappedId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `lightyear_utils` [INFO] [stdout] ... [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `lightyear_utils`, use `cargo add lightyear_utils` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `lightyear_utils` [INFO] [stdout] --> src/wrapping_id.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | use lightyear_utils::wrapping_id::{wrapping_diff, WrappedId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `lightyear_utils` [INFO] [stdout] ... [INFO] [stdout] 324 | atomic_wrapping_id!(AtomicTick); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `lightyear_utils`, use `cargo add lightyear_utils` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `lightyear_utils::wrapping_id::atomic_wrapping_id` [INFO] [stdout] --> src/wrapping_id.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | use lightyear_utils::wrapping_id::atomic_wrapping_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `atomic_wrapping_id` in `wrapping_id` [INFO] [stdout] | [INFO] [stdout] = note: this could be because a macro annotated with `#[macro_export]` will be exported at the root of the crate instead of the module where it is defined [INFO] [stdout] help: a macro with this name exists at the root of the crate [INFO] [stdout] | [INFO] [stdout] 327 - use lightyear_utils::wrapping_id::atomic_wrapping_id; [INFO] [stdout] 327 + use crate::atomic_wrapping_id; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Tick` in this scope [INFO] [stdout] --> src/wrapping_id.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn to_tick(&self) -> Tick { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 324 | atomic_wrapping_id!(AtomicTick); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct: [INFO] [stdout] bevy_ecs::component::Tick [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Tick` in this scope [INFO] [stdout] --> src/wrapping_id.rs:159:51 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn set_if_lower(&self, new_value: Tick){ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 324 | atomic_wrapping_id!(AtomicTick); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct: [INFO] [stdout] bevy_ecs::component::Tick [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `atomic_wrapping_id` is ambiguous [INFO] [stdout] --> src/wrapping_id.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module [INFO] [stdout] note: `atomic_wrapping_id` could refer to the macro defined here [INFO] [stdout] --> src/wrapping_id.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | / macro_rules! atomic_wrapping_id { [INFO] [stdout] 141 | | ($struct_name:ident) => { [INFO] [stdout] 142 | | use lightyear_utils::wrapping_id::paste; [INFO] [stdout] 143 | | paste! { [INFO] [stdout] ... | [INFO] [stdout] 189 | | }; [INFO] [stdout] 190 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: `atomic_wrapping_id` could also refer to the unresolved item imported here [INFO] [stdout] --> src/wrapping_id.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | use lightyear_utils::wrapping_id::atomic_wrapping_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/wrapping_id.rs:321:9 [INFO] [stdout] | [INFO] [stdout] 321 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `$struct_name:lower _module>] { [INFO] [stdout] use lightyear_utils::wrapping_id::{wrapping_diff, WrappedId}; [INFO] [stdout] use bevy_platform::sync::atomic::AtomicU16; [INFO] [stdout] use core::sync::atomic::{Ordering as AtomicOrdering}; [INFO] [stdout] [INFO] [stdout] // define the struct [INFO] [stdout] #[derive(Debug, Default)] [INFO] [stdout] pub struct $struct_name(pub AtomicU16); [INFO] [stdout] [INFO] [stdout] pub fn to_tick(&self) -> Tick { [INFO] [stdout] Tick(self.0.load(AtomicOrdering::Relaxed)) [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] /// Replicate the value of the AtomicU16 with the new tick value [INFO] [stdout] /// only if that value is lower than the current value. [INFO] [stdout] pub fn set_if_lower(&self, new_value: Tick){ [INFO] [stdout] let mut current = self.0.get(); [INFO] [stdout] // Loop until we successfully update the value. [INFO] [stdout] loop { [INFO] [stdout] // If the new value isn't lower, there's nothing to do. [INFO] [stdout] if wrapping_diff(current, new_value) >= 0 { [INFO] [stdout] break; [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] // Attempt to swap the `current` value with `new_value`. [INFO] [stdout] // This will only succeed if the atomic's value is still `current`. [INFO] [stdout] // If another thread changed it, `compare_exchange` will fail and [INFO] [stdout] // return the `Err` variant containing the now-current value. [INFO] [stdout] match self.0.compare_exchange( [INFO] [stdout] current, [INFO] [stdout] new_value, [INFO] [stdout] AtomicOrdering::SeqCst, [INFO] [stdout] AtomicOrdering::Relaxed, [INFO] [stdout] ) { [INFO] [stdout] // Successfully swapped, we are done. [INFO] [stdout] Ok(_) => break, [INFO] [stdout] // The value was changed by another thread. [INFO] [stdout] // The loop will retry with the new current value. [INFO] [stdout] Err(newly_read_value) => current = newly_read_value, [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] pub use [<$struct_name:lower _module>]` [INFO] [stdout] --> src/wrapping_id.rs:144:15 [INFO] [stdout] | [INFO] [stdout] 144 | mod [<$struct_name:lower _module>] { [INFO] [stdout] | _______________^ [INFO] [stdout] 145 | | use lightyear_utils::wrapping_id::{wrapping_diff, WrappedId}; [INFO] [stdout] 146 | | use bevy_platform::sync::atomic::AtomicU16; [INFO] [stdout] 147 | | use core::sync::atomic::{Ordering as AtomicOrdering}; [INFO] [stdout] ... | [INFO] [stdout] 187 | | pub use [<$struct_name:lower _module>]::$struct_name; [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 324 | atomic_wrapping_id!(AtomicTick); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Tick` in this scope [INFO] [stdout] --> src/wrapping_id.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | Tick(self.0.load(AtomicOrdering::Relaxed)) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 324 | atomic_wrapping_id!(AtomicTick); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `atomic_wrapping_id` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_if_lower` found for struct `tick_module::Tick` in the current scope [INFO] [stdout] --> src/wrapping_id.rs:332:14 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct $struct_name(pub AtomicU16); [INFO] [stdout] | --------------------------------------- method `set_if_lower` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 332 | tick.set_if_lower(Tick(5)); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `tick_module::Tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/wrapping_id.rs:332:32 [INFO] [stdout] | [INFO] [stdout] 332 | tick.set_if_lower(Tick(5)); [INFO] [stdout] | ---- ^ expected `AtomicU16`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/wrapping_id.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `{integer}` into `AtomicU16` [INFO] [stdout] | [INFO] [stdout] 332 | tick.set_if_lower(Tick(5.into())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_tick` found for struct `tick_module::Tick` in the current scope [INFO] [stdout] --> src/wrapping_id.rs:333:25 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct $struct_name(pub AtomicU16); [INFO] [stdout] | --------------------------------------- method `to_tick` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 333 | assert_eq!(tick.to_tick(), Tick(5)); [INFO] [stdout] | ^^^^^^^ method not found in `tick_module::Tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/wrapping_id.rs:333:41 [INFO] [stdout] | [INFO] [stdout] 333 | assert_eq!(tick.to_tick(), Tick(5)); [INFO] [stdout] | ---- ^ expected `AtomicU16`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/wrapping_id.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `{integer}` into `AtomicU16` [INFO] [stdout] | [INFO] [stdout] 333 | assert_eq!(tick.to_tick(), Tick(5.into())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_if_lower` found for struct `tick_module::Tick` in the current scope [INFO] [stdout] --> src/wrapping_id.rs:335:14 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct $struct_name(pub AtomicU16); [INFO] [stdout] | --------------------------------------- method `set_if_lower` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 335 | tick.set_if_lower(Tick(3)); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `tick_module::Tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/wrapping_id.rs:335:32 [INFO] [stdout] | [INFO] [stdout] 335 | tick.set_if_lower(Tick(3)); [INFO] [stdout] | ---- ^ expected `AtomicU16`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/wrapping_id.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `{integer}` into `AtomicU16` [INFO] [stdout] | [INFO] [stdout] 335 | tick.set_if_lower(Tick(3.into())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_tick` found for struct `tick_module::Tick` in the current scope [INFO] [stdout] --> src/wrapping_id.rs:336:25 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct $struct_name(pub AtomicU16); [INFO] [stdout] | --------------------------------------- method `to_tick` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 336 | assert_eq!(tick.to_tick(), Tick(5)); // should not change [INFO] [stdout] | ^^^^^^^ method not found in `tick_module::Tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/wrapping_id.rs:336:41 [INFO] [stdout] | [INFO] [stdout] 336 | assert_eq!(tick.to_tick(), Tick(5)); // should not change [INFO] [stdout] | ---- ^ expected `AtomicU16`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/wrapping_id.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `{integer}` into `AtomicU16` [INFO] [stdout] | [INFO] [stdout] 336 | assert_eq!(tick.to_tick(), Tick(5.into())); // should not change [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_if_lower` found for struct `tick_module::Tick` in the current scope [INFO] [stdout] --> src/wrapping_id.rs:338:14 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct $struct_name(pub AtomicU16); [INFO] [stdout] | --------------------------------------- method `set_if_lower` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 338 | tick.set_if_lower(Tick(7)); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `tick_module::Tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/wrapping_id.rs:338:32 [INFO] [stdout] | [INFO] [stdout] 338 | tick.set_if_lower(Tick(7)); [INFO] [stdout] | ---- ^ expected `AtomicU16`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/wrapping_id.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `{integer}` into `AtomicU16` [INFO] [stdout] | [INFO] [stdout] 338 | tick.set_if_lower(Tick(7.into())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_tick` found for struct `tick_module::Tick` in the current scope [INFO] [stdout] --> src/wrapping_id.rs:339:25 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct $struct_name(pub AtomicU16); [INFO] [stdout] | --------------------------------------- method `to_tick` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 339 | assert_eq!(tick.to_tick(), Tick(7)); // should change [INFO] [stdout] | ^^^^^^^ method not found in `tick_module::Tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/wrapping_id.rs:339:41 [INFO] [stdout] | [INFO] [stdout] 339 | assert_eq!(tick.to_tick(), Tick(7)); // should change [INFO] [stdout] | ---- ^ expected `AtomicU16`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/wrapping_id.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | atomic_wrapping_id!(Tick); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `{integer}` into `AtomicU16` [INFO] [stdout] | [INFO] [stdout] 339 | assert_eq!(tick.to_tick(), Tick(7.into())); // should change [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0432, E0433, E0599, E0659. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lightyear_utils` (lib test) due to 24 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "ff19e51587d0d9aa3b075332854af865eb2a1d3e1ee1d5fd7aa1116c2a62dfd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff19e51587d0d9aa3b075332854af865eb2a1d3e1ee1d5fd7aa1116c2a62dfd8", kill_on_drop: false }` [INFO] [stdout] ff19e51587d0d9aa3b075332854af865eb2a1d3e1ee1d5fd7aa1116c2a62dfd8