forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#135964 - ehuss:cenum_impl_drop_cast, r=Nadr…
…ieril Make cenum_impl_drop_cast a hard error 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 rust-lang#97652 about 2.5 years ago. Closes rust-lang#73333
- Loading branch information
Showing
8 changed files
with
12 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,8 @@ | ||
error: cannot cast enum `E` into integer `u32` because it implements `Drop` | ||
--> $DIR/cenum_impl_drop_cast.rs:15:13 | ||
--> $DIR/cenum_impl_drop_cast.rs:13:13 | ||
| | ||
LL | let i = e as u32; | ||
| ^^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #73333 <https://github.com/rust-lang/rust/issues/73333> | ||
note: the lint level is defined here | ||
--> $DIR/cenum_impl_drop_cast.rs:1:9 | ||
| | ||
LL | #![deny(cenum_impl_drop_cast)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
Future incompatibility report: Future breakage diagnostic: | ||
error: cannot cast enum `E` into integer `u32` because it implements `Drop` | ||
--> $DIR/cenum_impl_drop_cast.rs:15:13 | ||
| | ||
LL | let i = e as u32; | ||
| ^^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #73333 <https://github.com/rust-lang/rust/issues/73333> | ||
note: the lint level is defined here | ||
--> $DIR/cenum_impl_drop_cast.rs:1:9 | ||
| | ||
LL | #![deny(cenum_impl_drop_cast)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|