@@ -924,8 +924,8 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
924
924
| "add_with_overflow"
925
925
| "sub_with_overflow"
926
926
| "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
929
929
=> is_const_fn = true ,
930
930
// special intrinsic that can be called diretly without an intrinsic
931
931
// feature gate needs a language feature gate
@@ -969,9 +969,9 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
969
969
is_const_fn = true ;
970
970
} else if self . is_const_panic_fn ( def_id) {
971
971
// 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
975
975
if self . tcx . features ( ) . const_panic {
976
976
is_const_fn = true ;
977
977
} else {
@@ -984,10 +984,10 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
984
984
& format ! ( "panicking in {}s is unstable" , self . mode) ,
985
985
) ;
986
986
}
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) {
988
988
// 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
991
991
if self . span . allows_unstable ( ) {
992
992
// `allow_internal_unstable` can make such calls stable
993
993
is_const_fn = true ;
@@ -998,7 +998,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
998
998
help ! ( & mut err,
999
999
"in Nightly builds, add `#![feature({})]` \
1000
1000
to the crate attributes to enable",
1001
- feature ) ;
1001
+ feat ) ;
1002
1002
err. emit ( ) ;
1003
1003
}
1004
1004
} else {
0 commit comments