Skip to content

Commit 74978b3

Browse files
committed
fixme and ordering
1 parent 2747517 commit 74978b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ declare_lint_pass! {
8383
PROC_MACRO_DERIVE_RESOLUTION_FALLBACK,
8484
PTR_CAST_ADD_AUTO_TO_OBJECT,
8585
PTR_TO_INTEGER_TRANSMUTE_IN_CONSTS,
86-
REDUNDANT_TRANSMUTATION,
8786
PUB_USE_OF_PRIVATE_EXTERN_CRATE,
8887
REDUNDANT_IMPORTS,
8988
REDUNDANT_LIFETIMES,
89+
REDUNDANT_TRANSMUTATION,
9090
REFINING_IMPL_TRAIT_INTERNAL,
9191
REFINING_IMPL_TRAIT_REACHABLE,
9292
RENAMED_AND_REMOVED_LINTS,

compiler/rustc_mir_transform/src/check_redundant_transmutes.rs

+1
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)