Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5ff235b

Browse files
committedFeb 17, 2022
Cleanup feature gates.
1 parent ebf467d commit 5ff235b

File tree

111 files changed

+236
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+236
-272
lines changed
 

‎compiler/rustc_interface/src/passes.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,11 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
924924
tcx.ensure().check_mod_const_bodies(module);
925925
});
926926
},
927+
{
928+
sess.time("unused_lib_feature_checking", || {
929+
rustc_passes::stability::check_unused_or_stable_features(tcx)
930+
});
931+
},
927932
{
928933
// We force these querie to run,
929934
// since they might not otherwise get called.
@@ -1002,11 +1007,6 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
10021007
tcx.hir()
10031008
.par_for_each_module(|module| tcx.ensure().check_mod_deathness(module));
10041009
},
1005-
{
1006-
sess.time("unused_lib_feature_checking", || {
1007-
rustc_passes::stability::check_unused_or_stable_features(tcx)
1008-
});
1009-
},
10101010
{
10111011
sess.time("lint_checking", || {
10121012
rustc_lint::check_crate(tcx, || {

‎src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// compile-flags:-C panic=abort
22

3-
#![feature(alloc_error_handler, panic_handler)]
3+
#![feature(alloc_error_handler)]
44
#![no_std]
55
#![no_main]
66

0 commit comments

Comments
 (0)
Please sign in to comment.