Skip to content

Commit 78478b9

Browse files
authored
upgrade to rust 1.93 stderr (#142)
1 parent 0e459b3 commit 78478b9

11 files changed

Lines changed: 298 additions & 108 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: taiki-e/install-action@v2
2727
with: { tool: 'just,cargo-binstall' }
2828
- uses: dtolnay/rust-toolchain@stable
29-
with: { toolchain: '1.92.0', components: 'rust-src,rust-docs,rustfmt,clippy' }
29+
with: { toolchain: '1.93.0', components: 'rust-src,rust-docs,rustfmt,clippy' }
3030
- run: just ci-test
3131

3232
test-msrv:
@@ -59,7 +59,7 @@ jobs:
5959
- uses: taiki-e/install-action@v2
6060
with: { tool: 'just,cargo-llvm-cov' }
6161
- uses: dtolnay/rust-toolchain@stable
62-
with: { toolchain: '1.92.0', components: 'rust-src,rust-docs,rustfmt,clippy' }
62+
with: { toolchain: '1.93.0', components: 'rust-src,rust-docs,rustfmt,clippy' }
6363
- name: Generate code coverage
6464
run: just ci-coverage
6565
- name: Upload coverage to Codecov

tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded.snap.stderr

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
44
125 | multiplexor: multiplexor.into(),
55
| ^^^^ the trait `From<i8>` is not implemented for `u16`
66
|
7-
= help: the following other types implement trait `From<T>`:
8-
`u16` implements `From<Char>`
9-
`u16` implements `From<bool>`
10-
`u16` implements `From<u8>`
7+
help: the following other types implement trait `From<T>`
8+
--> $RUST/core/src/ascii/ascii_char.rs
9+
|
10+
| into_int_impl!(u8 u16 u32 u64 u128 char);
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
12+
|
13+
::: $RUST/core/src/convert/num.rs
14+
|
15+
| impl_from!(bool => u16);
16+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
17+
...
18+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
19+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
1120
= note: required for `i8` to implement `Into<u16>`
21+
= 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)

tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.stderr

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0412]: cannot find type `ExtMuxCascadedMuxAIndex` in this scope
1+
error[E0425]: cannot find type `ExtMuxCascadedMuxAIndex` in this scope
22
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:191:39
33
|
44
191 | pub fn mux_a(&mut self) -> Result<ExtMuxCascadedMuxAIndex, CanError> {
@@ -35,7 +35,7 @@ error[E0422]: cannot find struct, variant or union type `ExtMuxCascadedMuxAM1` i
3535
202 | ExtMuxCascadedMuxAIndex::M1(ExtMuxCascadedMuxAM1 {
3636
| ^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxCascaded`
3737

38-
error[E0412]: cannot find type `ExtMuxCascadedMuxAM0` in this scope
38+
error[E0425]: cannot find type `ExtMuxCascadedMuxAM0` in this scope
3939
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:236:37
4040
|
4141
55 | pub struct ExtMuxCascaded {
@@ -44,7 +44,7 @@ error[E0412]: cannot find type `ExtMuxCascadedMuxAM0` in this scope
4444
236 | pub fn set_m0(&mut self, value: ExtMuxCascadedMuxAM0) -> Result<(), CanError> {
4545
| ^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ExtMuxCascaded`
4646

47-
error[E0412]: cannot find type `ExtMuxCascadedMuxAM1` in this scope
47+
error[E0425]: cannot find type `ExtMuxCascadedMuxAM1` in this scope
4848
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:245:37
4949
|
5050
55 | pub struct ExtMuxCascaded {
@@ -83,11 +83,21 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
8383
128 | multiplexor: multiplexor.into(),
8484
| ^^^^ the trait `From<i8>` is not implemented for `u16`
8585
|
86-
= help: the following other types implement trait `From<T>`:
87-
`u16` implements `From<Char>`
88-
`u16` implements `From<bool>`
89-
`u16` implements `From<u8>`
86+
help: the following other types implement trait `From<T>`
87+
--> $RUST/core/src/ascii/ascii_char.rs
88+
|
89+
| into_int_impl!(u8 u16 u32 u64 u128 char);
90+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
91+
|
92+
::: $RUST/core/src/convert/num.rs
93+
|
94+
| impl_from!(bool => u16);
95+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
96+
...
97+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
98+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
9099
= note: required for `i8` to implement `Into<u16>`
100+
= 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)
91101

92102
error[E0433]: failed to resolve: use of undeclared type `ExtMuxCascadedMuxAIndex`
93103
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_cascaded_dumped.snap.rs:195:21
@@ -113,8 +123,18 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
113123
210 | multiplexor: multiplexor.into(),
114124
| ^^^^ the trait `From<i8>` is not implemented for `u16`
115125
|
116-
= help: the following other types implement trait `From<T>`:
117-
`u16` implements `From<Char>`
118-
`u16` implements `From<bool>`
119-
`u16` implements `From<u8>`
126+
help: the following other types implement trait `From<T>`
127+
--> $RUST/core/src/ascii/ascii_char.rs
128+
|
129+
| into_int_impl!(u8 u16 u32 u64 u128 char);
130+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
131+
|
132+
::: $RUST/core/src/convert/num.rs
133+
|
134+
| impl_from!(bool => u16);
135+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
136+
...
137+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
138+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
120139
= note: required for `i8` to implement `Into<u16>`
140+
= 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)

tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.stderr

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAIndex` in this scope
1+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAIndex` in this scope
22
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:212:39
33
|
44
212 | pub fn mux_a(&mut self) -> Result<ExtMuxIndepMultiplexorsMuxAIndex, CanError> {
@@ -44,7 +44,7 @@ error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexors
4444
548 | pub struct ExtMuxIndepMultiplexorsMuxBM2 {
4545
| ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM2` defined here
4646

47-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope
47+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope
4848
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:266:16
4949
|
5050
266 | value: ExtMuxIndepMultiplexorsMuxAM0,
@@ -53,7 +53,7 @@ error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope
5353
362 | pub struct ExtMuxIndepMultiplexorsMuxBM0 {
5454
| ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM0` defined here
5555

56-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope
56+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope
5757
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:278:16
5858
|
5959
278 | value: ExtMuxIndepMultiplexorsMuxAM1,
@@ -62,7 +62,7 @@ error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope
6262
433 | pub struct ExtMuxIndepMultiplexorsMuxBM1 {
6363
| ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM1` defined here
6464

65-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM2` in this scope
65+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM2` in this scope
6666
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:290:16
6767
|
6868
290 | value: ExtMuxIndepMultiplexorsMuxAM2,
@@ -122,11 +122,21 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
122122
137 | multiplexor: multiplexor.into(),
123123
| ^^^^ the trait `From<i8>` is not implemented for `u16`
124124
|
125-
= help: the following other types implement trait `From<T>`:
126-
`u16` implements `From<Char>`
127-
`u16` implements `From<bool>`
128-
`u16` implements `From<u8>`
125+
help: the following other types implement trait `From<T>`
126+
--> $RUST/core/src/ascii/ascii_char.rs
127+
|
128+
| into_int_impl!(u8 u16 u32 u64 u128 char);
129+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
130+
|
131+
::: $RUST/core/src/convert/num.rs
132+
|
133+
| impl_from!(bool => u16);
134+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
135+
...
136+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
137+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
129138
= note: required for `i8` to implement `Into<u16>`
139+
= 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)
130140

131141
error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex`
132142
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors.snap.rs:216:21
@@ -161,8 +171,18 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
161171
238 | multiplexor: multiplexor.into(),
162172
| ^^^^ the trait `From<i8>` is not implemented for `u16`
163173
|
164-
= help: the following other types implement trait `From<T>`:
165-
`u16` implements `From<Char>`
166-
`u16` implements `From<bool>`
167-
`u16` implements `From<u8>`
174+
help: the following other types implement trait `From<T>`
175+
--> $RUST/core/src/ascii/ascii_char.rs
176+
|
177+
| into_int_impl!(u8 u16 u32 u64 u128 char);
178+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
179+
|
180+
::: $RUST/core/src/convert/num.rs
181+
|
182+
| impl_from!(bool => u16);
183+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
184+
...
185+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
186+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
168187
= note: required for `i8` to implement `Into<u16>`
188+
= 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)

tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.stderr

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAIndex` in this scope
1+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAIndex` in this scope
22
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:212:39
33
|
44
212 | pub fn mux_a(&mut self) -> Result<ExtMuxIndepMultiplexorsMuxAIndex, CanError> {
@@ -44,7 +44,7 @@ error[E0422]: cannot find struct, variant or union type `ExtMuxIndepMultiplexors
4444
548 | pub struct ExtMuxIndepMultiplexorsMuxBM2 {
4545
| ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM2` defined here
4646

47-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope
47+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope
4848
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:266:16
4949
|
5050
266 | value: ExtMuxIndepMultiplexorsMuxAM0,
@@ -53,7 +53,7 @@ error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM0` in this scope
5353
362 | pub struct ExtMuxIndepMultiplexorsMuxBM0 {
5454
| ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM0` defined here
5555

56-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope
56+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope
5757
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:278:16
5858
|
5959
278 | value: ExtMuxIndepMultiplexorsMuxAM1,
@@ -62,7 +62,7 @@ error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM1` in this scope
6262
433 | pub struct ExtMuxIndepMultiplexorsMuxBM1 {
6363
| ---------------------------------------- similarly named struct `ExtMuxIndepMultiplexorsMuxBM1` defined here
6464

65-
error[E0412]: cannot find type `ExtMuxIndepMultiplexorsMuxAM2` in this scope
65+
error[E0425]: cannot find type `ExtMuxIndepMultiplexorsMuxAM2` in this scope
6666
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:290:16
6767
|
6868
290 | value: ExtMuxIndepMultiplexorsMuxAM2,
@@ -122,11 +122,21 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
122122
137 | multiplexor: multiplexor.into(),
123123
| ^^^^ the trait `From<i8>` is not implemented for `u16`
124124
|
125-
= help: the following other types implement trait `From<T>`:
126-
`u16` implements `From<Char>`
127-
`u16` implements `From<bool>`
128-
`u16` implements `From<u8>`
125+
help: the following other types implement trait `From<T>`
126+
--> $RUST/core/src/ascii/ascii_char.rs
127+
|
128+
| into_int_impl!(u8 u16 u32 u64 u128 char);
129+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
130+
|
131+
::: $RUST/core/src/convert/num.rs
132+
|
133+
| impl_from!(bool => u16);
134+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
135+
...
136+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
137+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
129138
= note: required for `i8` to implement `Into<u16>`
139+
= 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)
130140

131141
error[E0433]: failed to resolve: use of undeclared type `ExtMuxIndepMultiplexorsMuxAIndex`
132142
--> tests-snapshots/dbc-cantools/issue_184_extended_mux_independent_multiplexors_dumped.snap.rs:216:21
@@ -161,8 +171,18 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
161171
238 | multiplexor: multiplexor.into(),
162172
| ^^^^ the trait `From<i8>` is not implemented for `u16`
163173
|
164-
= help: the following other types implement trait `From<T>`:
165-
`u16` implements `From<Char>`
166-
`u16` implements `From<bool>`
167-
`u16` implements `From<u8>`
174+
help: the following other types implement trait `From<T>`
175+
--> $RUST/core/src/ascii/ascii_char.rs
176+
|
177+
| into_int_impl!(u8 u16 u32 u64 u128 char);
178+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
179+
|
180+
::: $RUST/core/src/convert/num.rs
181+
|
182+
| impl_from!(bool => u16);
183+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
184+
...
185+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
186+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
168187
= note: required for `i8` to implement `Into<u16>`
188+
= 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)

tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values.snap.stderr

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
44
130 | multiplexor: multiplexor.into(),
55
| ^^^^ the trait `From<i8>` is not implemented for `u16`
66
|
7-
= help: the following other types implement trait `From<T>`:
8-
`u16` implements `From<Char>`
9-
`u16` implements `From<bool>`
10-
`u16` implements `From<u8>`
7+
help: the following other types implement trait `From<T>`
8+
--> $RUST/core/src/ascii/ascii_char.rs
9+
|
10+
| into_int_impl!(u8 u16 u32 u64 u128 char);
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
12+
|
13+
::: $RUST/core/src/convert/num.rs
14+
|
15+
| impl_from!(bool => u16);
16+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
17+
...
18+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
19+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
1120
= note: required for `i8` to implement `Into<u16>`
21+
= 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)

tests-snapshots/dbc-cantools/issue_184_extended_mux_multiple_values_dumped.snap.stderr

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ error[E0277]: the trait bound `u16: From<i8>` is not satisfied
44
130 | multiplexor: multiplexor.into(),
55
| ^^^^ the trait `From<i8>` is not implemented for `u16`
66
|
7-
= help: the following other types implement trait `From<T>`:
8-
`u16` implements `From<Char>`
9-
`u16` implements `From<bool>`
10-
`u16` implements `From<u8>`
7+
help: the following other types implement trait `From<T>`
8+
--> $RUST/core/src/ascii/ascii_char.rs
9+
|
10+
| into_int_impl!(u8 u16 u32 u64 u128 char);
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<Char>`
12+
|
13+
::: $RUST/core/src/convert/num.rs
14+
|
15+
| impl_from!(bool => u16);
16+
| ^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<bool>`
17+
...
18+
| impl_from!(u8 => u16, #[stable(feature = "lossless_int_conv", since = "1.5.0")]);
19+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u16` implements `From<u8>`
1120
= note: required for `i8` to implement `Into<u16>`
21+
= 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)

tests-snapshots/dbc-cantools/issue_199.snap.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0412]: cannot find type `GearShifterGearShifter` in this scope
1+
error[E0425]: cannot find type `GearShifterGearShifter` in this scope
22
--> tests-snapshots/dbc-cantools/issue_199.snap.rs:991:35
33
|
44
991 | pub fn gear_shifter(&self) -> GearShifterGearShifter {
@@ -7,7 +7,7 @@ error[E0412]: cannot find type `GearShifterGearShifter` in this scope
77
1106 | pub enum GearShifterLeftBlinker {
88
| ------------------------------- similarly named enum `GearShifterLeftBlinker` defined here
99

10-
error[E0412]: cannot find type `CruiseButtonsCruiseButtons` in this scope
10+
error[E0425]: cannot find type `CruiseButtonsCruiseButtons` in this scope
1111
--> tests-snapshots/dbc-cantools/issue_199.snap.rs:2054:37
1212
|
1313
2054 | pub fn cruise_buttons(&self) -> CruiseButtonsCruiseButtons {

tests-snapshots/dbc-cantools/issue_199_extended.snap.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0412]: cannot find type `GearShifterGearShifter` in this scope
1+
error[E0425]: cannot find type `GearShifterGearShifter` in this scope
22
--> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:941:35
33
|
44
941 | pub fn gear_shifter(&self) -> GearShifterGearShifter {
@@ -7,7 +7,7 @@ error[E0412]: cannot find type `GearShifterGearShifter` in this scope
77
1056 | pub enum GearShifterLeftBlinker {
88
| ------------------------------- similarly named enum `GearShifterLeftBlinker` defined here
99

10-
error[E0412]: cannot find type `CruiseButtonsCruiseButtons` in this scope
10+
error[E0425]: cannot find type `CruiseButtonsCruiseButtons` in this scope
1111
--> tests-snapshots/dbc-cantools/issue_199_extended.snap.rs:1954:37
1212
|
1313
1954 | pub fn cruise_buttons(&self) -> CruiseButtonsCruiseButtons {

0 commit comments

Comments
 (0)