Skip to content

Commit 409e372

Browse files
committed
fixme and ordering
1 parent bfa8563 commit 409e372

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ declare_lint_pass! {
8282
PROC_MACRO_DERIVE_RESOLUTION_FALLBACK,
8383
PTR_CAST_ADD_AUTO_TO_OBJECT,
8484
PTR_TO_INTEGER_TRANSMUTE_IN_CONSTS,
85-
REDUNDANT_TRANSMUTATION,
8685
PUB_USE_OF_PRIVATE_EXTERN_CRATE,
8786
REDUNDANT_IMPORTS,
8887
REDUNDANT_LIFETIMES,
88+
REDUNDANT_TRANSMUTATION,
8989
REFINING_IMPL_TRAIT_INTERNAL,
9090
REFINING_IMPL_TRAIT_REACHABLE,
9191
RENAMED_AND_REMOVED_LINTS,

compiler/rustc_mir_transform/src/check_redundant_transmutes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ impl<'a, 'tcx> RedundantTransmutesChecker<'a, 'tcx> {
7878
// bool → (uNN ↔ iNN)
7979
Bool | Uint(..) | Int(..) => {
8080
matches!(fn_sig.output().kind(), Int(..) | Uint(..)).then(|| {
81+
// FIXME: suggest `cast_unsigned`/ `cast_signed` when `integer_sign_cast` stabilizes
8182
errors::RedundantTransmute {
8283
sugg: format!("({arg}) as {}", fn_sig.output()),
8384
help: None,

0 commit comments

Comments
 (0)