Skip to content

Commit 247ab49

Browse files
committed
Pacify tidy
1 parent 9b847f0 commit 247ab49

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/librustc_mir/transform/qualify_consts.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,8 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
924924
| "add_with_overflow"
925925
| "sub_with_overflow"
926926
| "mul_with_overflow"
927-
// no need to check feature gates, intrinsics are only callable from the
928-
// libstd or with forever unstable feature gates
927+
// no need to check feature gates, intrinsics are only callable
928+
// from the libstd or with forever unstable feature gates
929929
=> is_const_fn = true,
930930
// special intrinsic that can be called diretly without an intrinsic
931931
// feature gate needs a language feature gate
@@ -969,9 +969,9 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
969969
is_const_fn = true;
970970
} else if self.is_const_panic_fn(def_id) {
971971
// check the const_panic feature gate
972-
// FIXME: cannot allow this inside `allow_internal_unstable` because
973-
// that would make `panic!` insta stable in constants, since the
974-
// macro is marked with the attr
972+
// FIXME: cannot allow this inside `allow_internal_unstable`
973+
// because that would make `panic!` insta stable in constants,
974+
// since the macro is marked with the attr
975975
if self.tcx.features().const_panic {
976976
is_const_fn = true;
977977
} else {
@@ -984,10 +984,10 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
984984
&format!("panicking in {}s is unstable", self.mode),
985985
);
986986
}
987-
} else if let Some(feature) = self.tcx.is_unstable_const_fn(def_id) {
987+
} else if let Some(feat) = self.tcx.is_unstable_const_fn(def_id) {
988988
// check `#[unstable]` const fns or `#[rustc_const_unstable]`
989-
// functions without the feature gate active in this crate to report
990-
// a better error message than the one below
989+
// functions without the feature gate active in this crate to
990+
// report a better error message than the one below
991991
if self.span.allows_unstable() {
992992
// `allow_internal_unstable` can make such calls stable
993993
is_const_fn = true;
@@ -998,7 +998,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
998998
help!(&mut err,
999999
"in Nightly builds, add `#![feature({})]` \
10001000
to the crate attributes to enable",
1001-
feature);
1001+
feat);
10021002
err.emit();
10031003
}
10041004
} else {

0 commit comments

Comments
 (0)