From 9900e9f4ce91c79ce16c9ab419b8cbf490181526 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Fri, 20 Mar 2026 03:20:56 -0400 Subject: [PATCH] chore: update expected errors to Rust 1.94 --- .github/workflows/ci.yml | 4 +- ...ssue_184_extended_mux_cascaded.snap.stderr | 15 +- ...4_extended_mux_cascaded_dumped.snap.stderr | 84 +++-- ...d_mux_independent_multiplexors.snap.stderr | 111 +++++-- ...ndependent_multiplexors_dumped.snap.stderr | 111 +++++-- ...4_extended_mux_multiple_values.snap.stderr | 15 +- ...ded_mux_multiple_values_dumped.snap.stderr | 15 +- .../dbc-cantools/issue_199.snap.stderr | 115 ++++--- .../issue_199_extended.snap.stderr | 115 ++++--- .../dbc-cantools/multiplex_2.snap.stderr | 141 ++++++-- .../multiplex_2_dumped.snap.stderr | 306 ++++++++++++++---- 11 files changed, 783 insertions(+), 249 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fadc45f..32746aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - uses: taiki-e/install-action@v2 with: { tool: 'just,cargo-binstall' } - uses: dtolnay/rust-toolchain@stable - with: { toolchain: '1.93.0', components: 'rust-src,rust-docs,rustfmt,clippy' } + with: { toolchain: '1.94.0', components: 'rust-src,rust-docs,rustfmt,clippy' } - run: just ci-test test-msrv: @@ -59,7 +59,7 @@ jobs: - uses: taiki-e/install-action@v2 with: { tool: 'just,cargo-llvm-cov' } - uses: dtolnay/rust-toolchain@stable - with: { toolchain: '1.93.0', components: 'rust-src,rust-docs,rustfmt,clippy' } + with: { toolchain: '1.94.0', components: 'rust-src,rust-docs,rustfmt,clippy' } - name: Generate code coverage run: just ci-coverage - name: Upload coverage to Codecov diff --git a/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded.snap.stderr b/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded.snap.stderr index 95e44e8..a975b9e 100644 --- a/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded.snap.stderr @@ -7,15 +7,24 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.stderr b/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.stderr index f6859e6..202df44 100644 --- a/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.stderr @@ -24,7 +24,13 @@ error[E0422]: cannot find struct, variant or union type `ExtMuxCascadedMuxAM0` i | ------------------------- similarly named struct `ExtMuxCascaded` defined here ... 195 | ExtMuxCascadedMuxAIndex::M0(ExtMuxCascadedMuxAM0 { - | ^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxCascaded` + | ^^^^^^^^^^^^^^^^^^^^ + | +help: a struct with a similar name exists + | +195 - ExtMuxCascadedMuxAIndex::M0(ExtMuxCascadedMuxAM0 { +195 + ExtMuxCascadedMuxAIndex::M0(ExtMuxCascaded { + | error[E0422]: cannot find struct, variant or union type `ExtMuxCascadedMuxAM1` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:202:49 @@ -33,7 +39,13 @@ error[E0422]: cannot find struct, variant or union type `ExtMuxCascadedMuxAM1` i | ------------------------- similarly named struct `ExtMuxCascaded` defined here ... 202 | ExtMuxCascadedMuxAIndex::M1(ExtMuxCascadedMuxAM1 { - | ^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxCascaded` + | ^^^^^^^^^^^^^^^^^^^^ + | +help: a struct with a similar name exists + | +202 - ExtMuxCascadedMuxAIndex::M1(ExtMuxCascadedMuxAM1 { +202 + ExtMuxCascadedMuxAIndex::M1(ExtMuxCascaded { + | error[E0425]: cannot find type `ExtMuxCascadedMuxAM0` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:236:37 @@ -42,7 +54,13 @@ error[E0425]: cannot find type `ExtMuxCascadedMuxAM0` in this scope | ------------------------- similarly named struct `ExtMuxCascaded` defined here ... 236 | pub fn set_m0(&mut self, value: ExtMuxCascadedMuxAM0) -> Result<(), CanError> { - | ^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxCascaded` + | ^^^^^^^^^^^^^^^^^^^^ + | +help: a struct with a similar name exists + | +236 - pub fn set_m0(&mut self, value: ExtMuxCascadedMuxAM0) -> Result<(), CanError> { +236 + pub fn set_m0(&mut self, value: ExtMuxCascaded) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtMuxCascadedMuxAM1` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:245:37 @@ -51,7 +69,13 @@ error[E0425]: cannot find type `ExtMuxCascadedMuxAM1` in this scope | ------------------------- similarly named struct `ExtMuxCascaded` defined here ... 245 | pub fn set_m1(&mut self, value: ExtMuxCascadedMuxAM1) -> Result<(), CanError> { - | ^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxCascaded` + | ^^^^^^^^^^^^^^^^^^^^ + | +help: a struct with a similar name exists + | +245 - pub fn set_m1(&mut self, value: ExtMuxCascadedMuxAM1) -> Result<(), CanError> { +245 + pub fn set_m1(&mut self, value: ExtMuxCascaded) -> Result<(), CanError> { + | error[E0592]: duplicate definitions with name `set_m0` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:236:5 @@ -86,16 +110,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -103,19 +136,25 @@ error[E0433]: failed to resolve: use of undeclared type `ExtMuxCascadedMuxAIndex --> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:195:21 | 195 | ExtMuxCascadedMuxAIndex::M0(ExtMuxCascadedMuxAM0 { - | ^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxCascadedMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxCascadedMuxedA2MuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxCascadedMuxAIndex` + | +help: an enum with a similar name exists + | +195 - ExtMuxCascadedMuxAIndex::M0(ExtMuxCascadedMuxAM0 { +195 + ExtMuxCascadedMuxedA2MuxBIndex::M0(ExtMuxCascadedMuxAM0 { + | error[E0433]: failed to resolve: use of undeclared type `ExtMuxCascadedMuxAIndex` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:202:21 | 202 | ExtMuxCascadedMuxAIndex::M1(ExtMuxCascadedMuxAM1 { - | ^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxCascadedMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxCascadedMuxedA2MuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxCascadedMuxAIndex` + | +help: an enum with a similar name exists + | +202 - ExtMuxCascadedMuxAIndex::M1(ExtMuxCascadedMuxAM1 { +202 + ExtMuxCascadedMuxedA2MuxBIndex::M1(ExtMuxCascadedMuxAM1 { + | error[E0277]: the trait bound `u16: From` is not satisfied --> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:210:46 @@ -126,15 +165,24 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.stderr b/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.stderr index 5be93e7..01fc511 100644 --- a/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.stderr @@ -21,55 +21,91 @@ error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexors --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:216:58 | 216 | ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM0` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 362 | pub struct ExtMuxIndepMultiplexorsMuxBM0 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM0` defined here + | +help: a struct with a similar name exists + | +216 - ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { +216 + ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxBM0 { + | error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexorsMuxAM1` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:223:58 | 223 | ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM1` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 433 | pub struct ExtMuxIndepMultiplexorsMuxBM1 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM1` defined here + | +help: a struct with a similar name exists + | +223 - ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { +223 + ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxBM1 { + | error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexorsMuxAM2` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:230:58 | 230 | ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM2` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 548 | pub struct ExtMuxIndepMultiplexorsMuxBM2 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM2` defined here + | +help: a struct with a similar name exists + | +230 - ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { +230 + ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxBM2 { + | error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:266:16 | 266 | value: ExtMuxIndepMultiplexorsMuxAM0, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM0` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 362 | pub struct ExtMuxIndepMultiplexorsMuxBM0 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM0` defined here + | +help: a struct with a similar name exists + | +266 - value: ExtMuxIndepMultiplexorsMuxAM0, +266 + value: ExtMuxIndepMultiplexorsMuxBM0, + | error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:278:16 | 278 | value: ExtMuxIndepMultiplexorsMuxAM1, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM1` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 433 | pub struct ExtMuxIndepMultiplexorsMuxBM1 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM1` defined here + | +help: a struct with a similar name exists + | +278 - value: ExtMuxIndepMultiplexorsMuxAM1, +278 + value: ExtMuxIndepMultiplexorsMuxBM1, + | error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM2` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:290:16 | 290 | value: ExtMuxIndepMultiplexorsMuxAM2, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM2` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 548 | pub struct ExtMuxIndepMultiplexorsMuxBM2 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM2` defined here + | +help: a struct with a similar name exists + | +290 - value: ExtMuxIndepMultiplexorsMuxAM2, +290 + value: ExtMuxIndepMultiplexorsMuxBM2, + | error[E0592]: duplicate definitions with name `set_m0` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:264:5 @@ -125,16 +161,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -142,28 +187,37 @@ error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexors --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:216:21 | 216 | ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxIndepMultiplexorsMuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` + | +help: an enum with a similar name exists + | +216 - ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { +216 + ExtMuxIndepMultiplexorsMuxBIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { + | error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:223:21 | 223 | ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxIndepMultiplexorsMuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` + | +help: an enum with a similar name exists + | +223 - ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { +223 + ExtMuxIndepMultiplexorsMuxBIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { + | error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:230:21 | 230 | ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxIndepMultiplexorsMuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` + | +help: an enum with a similar name exists + | +230 - ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { +230 + ExtMuxIndepMultiplexorsMuxBIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { + | error[E0277]: the trait bound `u16: From` is not satisfied --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:238:46 @@ -174,15 +228,24 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.stderr b/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.stderr index 56ead0d..7bfe2a7 100644 --- a/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.stderr @@ -21,55 +21,91 @@ error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexors --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:216:58 | 216 | ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM0` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 362 | pub struct ExtMuxIndepMultiplexorsMuxBM0 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM0` defined here + | +help: a struct with a similar name exists + | +216 - ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { +216 + ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxBM0 { + | error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexorsMuxAM1` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:223:58 | 223 | ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM1` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 433 | pub struct ExtMuxIndepMultiplexorsMuxBM1 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM1` defined here + | +help: a struct with a similar name exists + | +223 - ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { +223 + ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxBM1 { + | error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexorsMuxAM2` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:230:58 | 230 | ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM2` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 548 | pub struct ExtMuxIndepMultiplexorsMuxBM2 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM2` defined here + | +help: a struct with a similar name exists + | +230 - ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { +230 + ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxBM2 { + | error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:266:16 | 266 | value: ExtMuxIndepMultiplexorsMuxAM0, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM0` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 362 | pub struct ExtMuxIndepMultiplexorsMuxBM0 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM0` defined here + | +help: a struct with a similar name exists + | +266 - value: ExtMuxIndepMultiplexorsMuxAM0, +266 + value: ExtMuxIndepMultiplexorsMuxBM0, + | error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:278:16 | 278 | value: ExtMuxIndepMultiplexorsMuxAM1, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM1` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 433 | pub struct ExtMuxIndepMultiplexorsMuxBM1 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM1` defined here + | +help: a struct with a similar name exists + | +278 - value: ExtMuxIndepMultiplexorsMuxAM1, +278 + value: ExtMuxIndepMultiplexorsMuxBM1, + | error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM2` in this scope --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:290:16 | 290 | value: ExtMuxIndepMultiplexorsMuxAM2, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxIndepMultiplexorsMuxBM2` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 548 | pub struct ExtMuxIndepMultiplexorsMuxBM2 { | ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM2` defined here + | +help: a struct with a similar name exists + | +290 - value: ExtMuxIndepMultiplexorsMuxAM2, +290 + value: ExtMuxIndepMultiplexorsMuxBM2, + | error[E0592]: duplicate definitions with name `set_m0` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:264:5 @@ -125,16 +161,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -142,28 +187,37 @@ error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexors --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:216:21 | 216 | ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxIndepMultiplexorsMuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` + | +help: an enum with a similar name exists + | +216 - ExtMuxIndepMultiplexorsMuxAIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { +216 + ExtMuxIndepMultiplexorsMuxBIndex::M0(ExtMuxIndepMultiplexorsMuxAM0 { + | error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:223:21 | 223 | ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxIndepMultiplexorsMuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` + | +help: an enum with a similar name exists + | +223 - ExtMuxIndepMultiplexorsMuxAIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { +223 + ExtMuxIndepMultiplexorsMuxBIndex::M1(ExtMuxIndepMultiplexorsMuxAM1 { + | error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:230:21 | 230 | ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` - | help: an enum with a similar name exists: `ExtMuxIndepMultiplexorsMuxBIndex` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex` + | +help: an enum with a similar name exists + | +230 - ExtMuxIndepMultiplexorsMuxAIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { +230 + ExtMuxIndepMultiplexorsMuxBIndex::M2(ExtMuxIndepMultiplexorsMuxAM2 { + | error[E0277]: the trait bound `u16: From` is not satisfied --> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:238:46 @@ -174,15 +228,24 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values.snap.stderr b/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values.snap.stderr index a1581df..d3c2cc3 100644 --- a/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values.snap.stderr @@ -7,15 +7,24 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values_dumped.snap.stderr b/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values_dumped.snap.stderr index 87b01be..e148838 100644 --- a/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values_dumped.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values_dumped.snap.stderr @@ -7,15 +7,24 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests-snapshots/dbc-cantools/issue_199.snap.stderr b/tests-snapshots/dbc-cantools/issue_199.snap.stderr index 9d7372a..eb00399 100644 --- a/tests-snapshots/dbc-cantools/issue_199.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_199.snap.stderr @@ -2,100 +2,139 @@ error[E0425]: cannot find type `GearShifterGearShifter` in this scope --> tests-snapshots/dbc-cantools/issue_199.snap.rs:991:35 | 991 | pub fn gear_shifter(&self) -> GearShifterGearShifter { - | ^^^^^^^^^^^^^^^^^^^^^^ help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ ... 1106 | pub enum GearShifterLeftBlinker { | ------------------------------- similarly named enum `GearShifterLeftBlinker` defined here + | +help: an enum with a similar name exists + | + 991 - pub fn gear_shifter(&self) -> GearShifterGearShifter { + 991 + pub fn gear_shifter(&self) -> GearShifterLeftBlinker { + | error[E0425]: cannot find type `CruiseButtonsCruiseButtons` in this scope --> tests-snapshots/dbc-cantools/issue_199.snap.rs:2054:37 | 2054 | pub fn cruise_buttons(&self) -> CruiseButtonsCruiseButtons { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 2268 | pub enum CruiseButtons2LkaGapButton { | ----------------------------------- similarly named enum `CruiseButtons2LkaGapButton` defined here + | +help: an enum with a similar name exists + | +2054 - pub fn cruise_buttons(&self) -> CruiseButtonsCruiseButtons { +2054 + pub fn cruise_buttons(&self) -> CruiseButtons2LkaGapButton { + | error[E0433]: failed to resolve: use of undeclared type `GearShifterGearShifter` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:994:18 | 994 | 3 => GearShifterGearShifter::Park, - | ^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `GearShifterGearShifter` - | help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GearShifterGearShifter` + | +help: an enum with a similar name exists + | +994 - 3 => GearShifterGearShifter::Park, +994 + 3 => GearShifterLeftBlinker::Park, + | error[E0433]: failed to resolve: use of undeclared type `GearShifterGearShifter` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:995:18 | 995 | 0 => GearShifterGearShifter::DriveLow, - | ^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `GearShifterGearShifter` - | help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GearShifterGearShifter` + | +help: an enum with a similar name exists + | +995 - 0 => GearShifterGearShifter::DriveLow, +995 + 0 => GearShifterLeftBlinker::DriveLow, + | error[E0433]: failed to resolve: use of undeclared type `GearShifterGearShifter` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:996:18 | 996 | _ => GearShifterGearShifter::_Other(self.gear_shifter_raw()), - | ^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `GearShifterGearShifter` - | help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GearShifterGearShifter` + | +help: an enum with a similar name exists + | +996 - _ => GearShifterGearShifter::_Other(self.gear_shifter_raw()), +996 + _ => GearShifterLeftBlinker::_Other(self.gear_shifter_raw()), + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:2057:18 | 2057 | 6 => CruiseButtonsCruiseButtons::Cancel, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +2057 - 6 => CruiseButtonsCruiseButtons::Cancel, +2057 + 6 => CruiseButtons2LkaGapButton::Cancel, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:2058:18 | 2058 | 5 => CruiseButtonsCruiseButtons::Main, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +2058 - 5 => CruiseButtonsCruiseButtons::Main, +2058 + 5 => CruiseButtons2LkaGapButton::Main, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:2059:18 | 2059 | 3 => CruiseButtonsCruiseButtons::Set, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +2059 - 3 => CruiseButtonsCruiseButtons::Set, +2059 + 3 => CruiseButtons2LkaGapButton::Set, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:2060:18 | 2060 | 2 => CruiseButtonsCruiseButtons::Resume, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +2060 - 2 => CruiseButtonsCruiseButtons::Resume, +2060 + 2 => CruiseButtons2LkaGapButton::Resume, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:2061:18 | 2061 | 1 => CruiseButtonsCruiseButtons::None, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +2061 - 1 => CruiseButtonsCruiseButtons::None, +2061 + 1 => CruiseButtons2LkaGapButton::None, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199.snap.rs:2062:18 | 2062 | _ => CruiseButtonsCruiseButtons::_Other(self.cruise_buttons_raw()), - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +2062 - _ => CruiseButtonsCruiseButtons::_Other(self.cruise_buttons_raw()), +2062 + _ => CruiseButtons2LkaGapButton::_Other(self.cruise_buttons_raw()), + | error: unreachable pattern --> tests-snapshots/dbc-cantools/issue_199.snap.rs:65:13 diff --git a/tests-snapshots/dbc-cantools/issue_199_extended.snap.stderr b/tests-snapshots/dbc-cantools/issue_199_extended.snap.stderr index 106b119..f3c5ae3 100644 --- a/tests-snapshots/dbc-cantools/issue_199_extended.snap.stderr +++ b/tests-snapshots/dbc-cantools/issue_199_extended.snap.stderr @@ -2,100 +2,139 @@ error[E0425]: cannot find type `GearShifterGearShifter` in this scope --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:941:35 | 941 | pub fn gear_shifter(&self) -> GearShifterGearShifter { - | ^^^^^^^^^^^^^^^^^^^^^^ help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ ... 1056 | pub enum GearShifterLeftBlinker { | ------------------------------- similarly named enum `GearShifterLeftBlinker` defined here + | +help: an enum with a similar name exists + | + 941 - pub fn gear_shifter(&self) -> GearShifterGearShifter { + 941 + pub fn gear_shifter(&self) -> GearShifterLeftBlinker { + | error[E0425]: cannot find type `CruiseButtonsCruiseButtons` in this scope --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1954:37 | 1954 | pub fn cruise_buttons(&self) -> CruiseButtonsCruiseButtons { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 2168 | pub enum CruiseButtons2LkaGapButton { | ----------------------------------- similarly named enum `CruiseButtons2LkaGapButton` defined here + | +help: an enum with a similar name exists + | +1954 - pub fn cruise_buttons(&self) -> CruiseButtonsCruiseButtons { +1954 + pub fn cruise_buttons(&self) -> CruiseButtons2LkaGapButton { + | error[E0433]: failed to resolve: use of undeclared type `GearShifterGearShifter` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:944:18 | 944 | 3 => GearShifterGearShifter::Park, - | ^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `GearShifterGearShifter` - | help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GearShifterGearShifter` + | +help: an enum with a similar name exists + | +944 - 3 => GearShifterGearShifter::Park, +944 + 3 => GearShifterLeftBlinker::Park, + | error[E0433]: failed to resolve: use of undeclared type `GearShifterGearShifter` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:945:18 | 945 | 0 => GearShifterGearShifter::DriveLow, - | ^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `GearShifterGearShifter` - | help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GearShifterGearShifter` + | +help: an enum with a similar name exists + | +945 - 0 => GearShifterGearShifter::DriveLow, +945 + 0 => GearShifterLeftBlinker::DriveLow, + | error[E0433]: failed to resolve: use of undeclared type `GearShifterGearShifter` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:946:18 | 946 | _ => GearShifterGearShifter::_Other(self.gear_shifter_raw()), - | ^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `GearShifterGearShifter` - | help: an enum with a similar name exists: `GearShifterLeftBlinker` + | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `GearShifterGearShifter` + | +help: an enum with a similar name exists + | +946 - _ => GearShifterGearShifter::_Other(self.gear_shifter_raw()), +946 + _ => GearShifterLeftBlinker::_Other(self.gear_shifter_raw()), + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1957:18 | 1957 | 6 => CruiseButtonsCruiseButtons::Cancel, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +1957 - 6 => CruiseButtonsCruiseButtons::Cancel, +1957 + 6 => CruiseButtons2LkaGapButton::Cancel, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1958:18 | 1958 | 5 => CruiseButtonsCruiseButtons::Main, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +1958 - 5 => CruiseButtonsCruiseButtons::Main, +1958 + 5 => CruiseButtons2LkaGapButton::Main, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1959:18 | 1959 | 3 => CruiseButtonsCruiseButtons::Set, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +1959 - 3 => CruiseButtonsCruiseButtons::Set, +1959 + 3 => CruiseButtons2LkaGapButton::Set, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1960:18 | 1960 | 2 => CruiseButtonsCruiseButtons::Resume, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +1960 - 2 => CruiseButtonsCruiseButtons::Resume, +1960 + 2 => CruiseButtons2LkaGapButton::Resume, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1961:18 | 1961 | 1 => CruiseButtonsCruiseButtons::None, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +1961 - 1 => CruiseButtonsCruiseButtons::None, +1961 + 1 => CruiseButtons2LkaGapButton::None, + | error[E0433]: failed to resolve: use of undeclared type `CruiseButtonsCruiseButtons` --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1962:18 | 1962 | _ => CruiseButtonsCruiseButtons::_Other(self.cruise_buttons_raw()), - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `CruiseButtonsCruiseButtons` - | help: an enum with a similar name exists: `CruiseButtons2LkaGapButton` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CruiseButtonsCruiseButtons` + | +help: an enum with a similar name exists + | +1962 - _ => CruiseButtonsCruiseButtons::_Other(self.cruise_buttons_raw()), +1962 + _ => CruiseButtons2LkaGapButton::_Other(self.cruise_buttons_raw()), + | error: unreachable pattern --> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:69:13 diff --git a/tests-snapshots/dbc-cantools/multiplex_2.snap.stderr b/tests-snapshots/dbc-cantools/multiplex_2.snap.stderr index 8488d27..384ef6c 100644 --- a/tests-snapshots/dbc-cantools/multiplex_2.snap.stderr +++ b/tests-snapshots/dbc-cantools/multiplex_2.snap.stderr @@ -21,55 +21,91 @@ error[E0422]: cannot find struct, variant or union type `ExtendedS0M0` in this s --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:792:41 | 792 | 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M0` + | ^^^^^^^^^^^^ ... 913 | pub struct ExtendedS6M0 { | ----------------------- similarly named struct `ExtendedS6M0` defined here + | +help: a struct with a similar name exists + | +792 - 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), +792 + 0 => Ok(ExtendedS0Index::M0(ExtendedS6M0 { raw: self.raw })), + | error[E0422]: cannot find struct, variant or union type `ExtendedS0M1` in this scope --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:793:41 | 793 | 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M1` + | ^^^^^^^^^^^^ ... 1028 | pub struct ExtendedS6M1 { | ----------------------- similarly named struct `ExtendedS6M1` defined here + | +help: a struct with a similar name exists + | + 793 - 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), + 793 + 1 => Ok(ExtendedS0Index::M1(ExtendedS6M1 { raw: self.raw })), + | error[E0422]: cannot find struct, variant or union type `ExtendedS0M2` in this scope --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:794:41 | 794 | 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M2` + | ^^^^^^^^^^^^ ... 1143 | pub struct ExtendedS6M2 { | ----------------------- similarly named struct `ExtendedS6M2` defined here + | +help: a struct with a similar name exists + | + 794 - 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), + 794 + 2 => Ok(ExtendedS0Index::M2(ExtendedS6M2 { raw: self.raw })), + | error[E0425]: cannot find type `ExtendedS0M0` in this scope --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:824:37 | 824 | pub fn set_m0(&mut self, value: ExtendedS0M0) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M0` + | ^^^^^^^^^^^^ ... 913 | pub struct ExtendedS6M0 { | ----------------------- similarly named struct `ExtendedS6M0` defined here + | +help: a struct with a similar name exists + | +824 - pub fn set_m0(&mut self, value: ExtendedS0M0) -> Result<(), CanError> { +824 + pub fn set_m0(&mut self, value: ExtendedS6M0) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedS0M1` in this scope --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:833:37 | 833 | pub fn set_m1(&mut self, value: ExtendedS0M1) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M1` + | ^^^^^^^^^^^^ ... 1028 | pub struct ExtendedS6M1 { | ----------------------- similarly named struct `ExtendedS6M1` defined here + | +help: a struct with a similar name exists + | + 833 - pub fn set_m1(&mut self, value: ExtendedS0M1) -> Result<(), CanError> { + 833 + pub fn set_m1(&mut self, value: ExtendedS6M1) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedS0M2` in this scope --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:842:37 | 842 | pub fn set_m2(&mut self, value: ExtendedS0M2) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M2` + | ^^^^^^^^^^^^ ... 1143 | pub struct ExtendedS6M2 { | ----------------------- similarly named struct `ExtendedS6M2` defined here + | +help: a struct with a similar name exists + | + 842 - pub fn set_m2(&mut self, value: ExtendedS0M2) -> Result<(), CanError> { + 842 + pub fn set_m2(&mut self, value: ExtendedS6M2) -> Result<(), CanError> { + | error: invalid suffix `i32` for float literal --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:1269:30 @@ -123,16 +159,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -145,16 +190,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -167,16 +221,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -184,28 +247,37 @@ error[E0433]: failed to resolve: use of undeclared type `ExtendedS0Index` --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:792:21 | 792 | 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS0Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS0Index` + | +help: an enum with a similar name exists + | +792 - 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), +792 + 0 => Ok(ExtendedS6Index::M0(ExtendedS0M0 { raw: self.raw })), + | error[E0433]: failed to resolve: use of undeclared type `ExtendedS0Index` --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:793:21 | 793 | 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS0Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS0Index` + | +help: an enum with a similar name exists + | +793 - 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), +793 + 1 => Ok(ExtendedS6Index::M1(ExtendedS0M1 { raw: self.raw })), + | error[E0433]: failed to resolve: use of undeclared type `ExtendedS0Index` --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:794:21 | 794 | 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS0Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS0Index` + | +help: an enum with a similar name exists + | +794 - 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), +794 + 2 => Ok(ExtendedS6Index::M2(ExtendedS0M2 { raw: self.raw })), + | error[E0277]: the trait bound `u16: From` is not satisfied --> tests-snapshots/dbc-cantools/multiplex_2.snap.rs:798:46 @@ -216,15 +288,24 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.stderr b/tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.stderr index 61ff698..fdd7814 100644 --- a/tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.stderr +++ b/tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.stderr @@ -21,55 +21,91 @@ error[E0422]: cannot find struct, variant or union type `ExtendedS1M0` in this s --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:793:41 | 793 | 0 => Ok(ExtendedS1Index::M0(ExtendedS1M0 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M0` + | ^^^^^^^^^^^^ ... 988 | pub struct ExtendedS6M0 { | ----------------------- similarly named struct `ExtendedS6M0` defined here + | +help: a struct with a similar name exists + | +793 - 0 => Ok(ExtendedS1Index::M0(ExtendedS1M0 { raw: self.raw })), +793 + 0 => Ok(ExtendedS1Index::M0(ExtendedS6M0 { raw: self.raw })), + | error[E0422]: cannot find struct, variant or union type `ExtendedS1M1` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:794:41 | 794 | 1 => Ok(ExtendedS1Index::M1(ExtendedS1M1 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M1` + | ^^^^^^^^^^^^ ... 1103 | pub struct ExtendedS6M1 { | ----------------------- similarly named struct `ExtendedS6M1` defined here + | +help: a struct with a similar name exists + | + 794 - 1 => Ok(ExtendedS1Index::M1(ExtendedS1M1 { raw: self.raw })), + 794 + 1 => Ok(ExtendedS1Index::M1(ExtendedS6M1 { raw: self.raw })), + | error[E0422]: cannot find struct, variant or union type `ExtendedS1M2` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:795:41 | 795 | 2 => Ok(ExtendedS1Index::M2(ExtendedS1M2 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M2` + | ^^^^^^^^^^^^ ... 1218 | pub struct ExtendedS6M2 { | ----------------------- similarly named struct `ExtendedS6M2` defined here + | +help: a struct with a similar name exists + | + 795 - 2 => Ok(ExtendedS1Index::M2(ExtendedS1M2 { raw: self.raw })), + 795 + 2 => Ok(ExtendedS1Index::M2(ExtendedS6M2 { raw: self.raw })), + | error[E0425]: cannot find type `ExtendedS1M0` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:825:37 | 825 | pub fn set_m0(&mut self, value: ExtendedS1M0) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M0` + | ^^^^^^^^^^^^ ... 988 | pub struct ExtendedS6M0 { | ----------------------- similarly named struct `ExtendedS6M0` defined here + | +help: a struct with a similar name exists + | +825 - pub fn set_m0(&mut self, value: ExtendedS1M0) -> Result<(), CanError> { +825 + pub fn set_m0(&mut self, value: ExtendedS6M0) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedS1M1` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:834:37 | 834 | pub fn set_m1(&mut self, value: ExtendedS1M1) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M1` + | ^^^^^^^^^^^^ ... 1103 | pub struct ExtendedS6M1 { | ----------------------- similarly named struct `ExtendedS6M1` defined here + | +help: a struct with a similar name exists + | + 834 - pub fn set_m1(&mut self, value: ExtendedS1M1) -> Result<(), CanError> { + 834 + pub fn set_m1(&mut self, value: ExtendedS6M1) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedS1M2` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:843:37 | 843 | pub fn set_m2(&mut self, value: ExtendedS1M2) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M2` + | ^^^^^^^^^^^^ ... 1218 | pub struct ExtendedS6M2 { | ----------------------- similarly named struct `ExtendedS6M2` defined here + | +help: a struct with a similar name exists + | + 843 - pub fn set_m2(&mut self, value: ExtendedS1M2) -> Result<(), CanError> { + 843 + pub fn set_m2(&mut self, value: ExtendedS6M2) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedS0Index` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:865:36 @@ -94,55 +130,91 @@ error[E0422]: cannot find struct, variant or union type `ExtendedS0M0` in this s --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:867:41 | 867 | 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M0` + | ^^^^^^^^^^^^ ... 988 | pub struct ExtendedS6M0 { | ----------------------- similarly named struct `ExtendedS6M0` defined here + | +help: a struct with a similar name exists + | +867 - 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), +867 + 0 => Ok(ExtendedS0Index::M0(ExtendedS6M0 { raw: self.raw })), + | error[E0422]: cannot find struct, variant or union type `ExtendedS0M1` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:868:41 | 868 | 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M1` + | ^^^^^^^^^^^^ ... 1103 | pub struct ExtendedS6M1 { | ----------------------- similarly named struct `ExtendedS6M1` defined here + | +help: a struct with a similar name exists + | + 868 - 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), + 868 + 1 => Ok(ExtendedS0Index::M1(ExtendedS6M1 { raw: self.raw })), + | error[E0422]: cannot find struct, variant or union type `ExtendedS0M2` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:869:41 | 869 | 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M2` + | ^^^^^^^^^^^^ ... 1218 | pub struct ExtendedS6M2 { | ----------------------- similarly named struct `ExtendedS6M2` defined here + | +help: a struct with a similar name exists + | + 869 - 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), + 869 + 2 => Ok(ExtendedS0Index::M2(ExtendedS6M2 { raw: self.raw })), + | error[E0425]: cannot find type `ExtendedS0M0` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:899:37 | 899 | pub fn set_m0(&mut self, value: ExtendedS0M0) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M0` + | ^^^^^^^^^^^^ ... 988 | pub struct ExtendedS6M0 { | ----------------------- similarly named struct `ExtendedS6M0` defined here + | +help: a struct with a similar name exists + | +899 - pub fn set_m0(&mut self, value: ExtendedS0M0) -> Result<(), CanError> { +899 + pub fn set_m0(&mut self, value: ExtendedS6M0) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedS0M1` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:908:37 | 908 | pub fn set_m1(&mut self, value: ExtendedS0M1) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M1` + | ^^^^^^^^^^^^ ... 1103 | pub struct ExtendedS6M1 { | ----------------------- similarly named struct `ExtendedS6M1` defined here + | +help: a struct with a similar name exists + | + 908 - pub fn set_m1(&mut self, value: ExtendedS0M1) -> Result<(), CanError> { + 908 + pub fn set_m1(&mut self, value: ExtendedS6M1) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedS0M2` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:917:37 | 917 | pub fn set_m2(&mut self, value: ExtendedS0M2) -> Result<(), CanError> { - | ^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedS6M2` + | ^^^^^^^^^^^^ ... 1218 | pub struct ExtendedS6M2 { | ----------------------- similarly named struct `ExtendedS6M2` defined here + | +help: a struct with a similar name exists + | + 917 - pub fn set_m2(&mut self, value: ExtendedS0M2) -> Result<(), CanError> { + 917 + pub fn set_m2(&mut self, value: ExtendedS6M2) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedTypesS11Index` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1441:37 @@ -167,37 +239,61 @@ error[E0422]: cannot find struct, variant or union type `ExtendedTypesS11M0` in --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1445:47 | 1445 | ExtendedTypesS11Index::M0(ExtendedTypesS11M0 { - | ^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedTypesS0M0` + | ^^^^^^^^^^^^^^^^^^ ... 1564 | pub struct ExtendedTypesS0M0 { | ---------------------------- similarly named struct `ExtendedTypesS0M0` defined here + | +help: a struct with a similar name exists + | +1445 - ExtendedTypesS11Index::M0(ExtendedTypesS11M0 { +1445 + ExtendedTypesS11Index::M0(ExtendedTypesS0M0 { + | error[E0422]: cannot find struct, variant or union type `ExtendedTypesS11M5` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1452:47 | 1452 | ExtendedTypesS11Index::M5(ExtendedTypesS11M5 { - | ^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedTypesS0M5` + | ^^^^^^^^^^^^^^^^^^ ... 1637 | pub struct ExtendedTypesS0M5 { | ---------------------------- similarly named struct `ExtendedTypesS0M5` defined here + | +help: a struct with a similar name exists + | +1452 - ExtendedTypesS11Index::M5(ExtendedTypesS11M5 { +1452 + ExtendedTypesS11Index::M5(ExtendedTypesS0M5 { + | error[E0425]: cannot find type `ExtendedTypesS11M0` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1485:37 | 1485 | pub fn set_m0(&mut self, value: ExtendedTypesS11M0) -> Result<(), CanError> { - | ^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedTypesS0M0` + | ^^^^^^^^^^^^^^^^^^ ... 1564 | pub struct ExtendedTypesS0M0 { | ---------------------------- similarly named struct `ExtendedTypesS0M0` defined here + | +help: a struct with a similar name exists + | +1485 - pub fn set_m0(&mut self, value: ExtendedTypesS11M0) -> Result<(), CanError> { +1485 + pub fn set_m0(&mut self, value: ExtendedTypesS0M0) -> Result<(), CanError> { + | error[E0425]: cannot find type `ExtendedTypesS11M5` in this scope --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1494:37 | 1494 | pub fn set_m5(&mut self, value: ExtendedTypesS11M5) -> Result<(), CanError> { - | ^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtendedTypesS0M5` + | ^^^^^^^^^^^^^^^^^^ ... 1637 | pub struct ExtendedTypesS0M5 { | ---------------------------- similarly named struct `ExtendedTypesS0M5` defined here + | +help: a struct with a similar name exists + | +1494 - pub fn set_m5(&mut self, value: ExtendedTypesS11M5) -> Result<(), CanError> { +1494 + pub fn set_m5(&mut self, value: ExtendedTypesS0M5) -> Result<(), CanError> { + | error: invalid suffix `i32` for float literal --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1344:30 @@ -296,16 +392,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -318,16 +423,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -340,16 +454,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -357,28 +480,37 @@ error[E0433]: failed to resolve: use of undeclared type `ExtendedS1Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:793:21 | 793 | 0 => Ok(ExtendedS1Index::M0(ExtendedS1M0 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS1Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS1Index` + | +help: an enum with a similar name exists + | +793 - 0 => Ok(ExtendedS1Index::M0(ExtendedS1M0 { raw: self.raw })), +793 + 0 => Ok(ExtendedS6Index::M0(ExtendedS1M0 { raw: self.raw })), + | error[E0433]: failed to resolve: use of undeclared type `ExtendedS1Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:794:21 | 794 | 1 => Ok(ExtendedS1Index::M1(ExtendedS1M1 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS1Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS1Index` + | +help: an enum with a similar name exists + | +794 - 1 => Ok(ExtendedS1Index::M1(ExtendedS1M1 { raw: self.raw })), +794 + 1 => Ok(ExtendedS6Index::M1(ExtendedS1M1 { raw: self.raw })), + | error[E0433]: failed to resolve: use of undeclared type `ExtendedS1Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:795:21 | 795 | 2 => Ok(ExtendedS1Index::M2(ExtendedS1M2 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS1Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS1Index` + | +help: an enum with a similar name exists + | +795 - 2 => Ok(ExtendedS1Index::M2(ExtendedS1M2 { raw: self.raw })), +795 + 2 => Ok(ExtendedS6Index::M2(ExtendedS1M2 { raw: self.raw })), + | error[E0277]: the trait bound `u16: From` is not satisfied --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:799:46 @@ -389,16 +521,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -406,28 +547,37 @@ error[E0433]: failed to resolve: use of undeclared type `ExtendedS0Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:867:21 | 867 | 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS0Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS0Index` + | +help: an enum with a similar name exists + | +867 - 0 => Ok(ExtendedS0Index::M0(ExtendedS0M0 { raw: self.raw })), +867 + 0 => Ok(ExtendedS6Index::M0(ExtendedS0M0 { raw: self.raw })), + | error[E0433]: failed to resolve: use of undeclared type `ExtendedS0Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:868:21 | 868 | 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS0Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS0Index` + | +help: an enum with a similar name exists + | +868 - 1 => Ok(ExtendedS0Index::M1(ExtendedS0M1 { raw: self.raw })), +868 + 1 => Ok(ExtendedS6Index::M1(ExtendedS0M1 { raw: self.raw })), + | error[E0433]: failed to resolve: use of undeclared type `ExtendedS0Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:869:21 | 869 | 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), - | ^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedS0Index` - | help: an enum with a similar name exists: `ExtendedS6Index` + | ^^^^^^^^^^^^^^^ use of undeclared type `ExtendedS0Index` + | +help: an enum with a similar name exists + | +869 - 2 => Ok(ExtendedS0Index::M2(ExtendedS0M2 { raw: self.raw })), +869 + 2 => Ok(ExtendedS6Index::M2(ExtendedS0M2 { raw: self.raw })), + | error[E0277]: the trait bound `u16: From` is not satisfied --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:873:46 @@ -438,16 +588,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -460,16 +619,25 @@ error[E0277]: the trait bound `u16: From` is not satisfied help: the following other types implement trait `From` --> $RUST/core/src/ascii/ascii_char.rs | + | impl const From for $ty { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` +... | into_int_impl!(u8 u16 u32 u64 u128 char); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ---------------------------------------- in this macro invocation | ::: $RUST/core/src/convert/num.rs | + | impl const From<$Small> for $Large { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | `u16` implements `From` + | `u16` implements `From` +... | impl_from!(bool => u16); - | ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | ----------------------- in this macro invocation ... | impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From` + | -------------------------------------------------------------------------------- in this macro invocation = note: required for `i8` to implement `Into` = note: this error originates in the macro `into_int_impl` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -477,16 +645,22 @@ error[E0433]: failed to resolve: use of undeclared type `ExtendedTypesS11Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1445:21 | 1445 | ExtendedTypesS11Index::M0(ExtendedTypesS11M0 { - | ^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedTypesS11Index` - | help: an enum with a similar name exists: `ExtendedTypesS0Index` + | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtendedTypesS11Index` + | +help: an enum with a similar name exists + | +1445 - ExtendedTypesS11Index::M0(ExtendedTypesS11M0 { +1445 + ExtendedTypesS0Index::M0(ExtendedTypesS11M0 { + | error[E0433]: failed to resolve: use of undeclared type `ExtendedTypesS11Index` --> tests-snapshots/dbc-cantools/multiplex_2_dumped.snap.rs:1452:21 | 1452 | ExtendedTypesS11Index::M5(ExtendedTypesS11M5 { - | ^^^^^^^^^^^^^^^^^^^^^ - | | - | use of undeclared type `ExtendedTypesS11Index` - | help: an enum with a similar name exists: `ExtendedTypesS0Index` + | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ExtendedTypesS11Index` + | +help: an enum with a similar name exists + | +1452 - ExtendedTypesS11Index::M5(ExtendedTypesS11M5 { +1452 + ExtendedTypesS0Index::M5(ExtendedTypesS11M5 { + |