
This changes the `cenum_impl_drop_cast` lint to be a hard error. This lint has been deny-by-default and warning in dependencies since https://github.com/rust-lang/rust/pull/97652 about 2.5 years ago. Closes https://github.com/rust-lang/rust/issues/73333
8 lines
217 B
Text
8 lines
217 B
Text
error: cannot cast enum `E` into integer `u32` because it implements `Drop`
|
|
--> $DIR/cenum_impl_drop_cast.rs:13:13
|
|
|
|
|
LL | let i = e as u32;
|
|
| ^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|