@@ -4,14 +4,14 @@ use rustc_ast::ptr::P as AstP;
4
4
use rustc_ast:: * ;
5
5
use rustc_data_structures:: stack:: ensure_sufficient_stack;
6
6
use rustc_hir as hir;
7
- use rustc_hir:: def:: { DefKind , Res } ;
8
7
use rustc_hir:: HirId ;
8
+ use rustc_hir:: def:: { DefKind , Res } ;
9
9
use rustc_middle:: span_bug;
10
10
use rustc_session:: errors:: report_lit_error;
11
- use rustc_span:: source_map:: { respan , Spanned } ;
12
- use rustc_span:: symbol:: { kw , sym , Ident , Symbol } ;
13
- use rustc_span:: { DesugaringKind , Span , DUMMY_SP } ;
14
- use thin_vec:: { thin_vec , ThinVec } ;
11
+ use rustc_span:: source_map:: { Spanned , respan } ;
12
+ use rustc_span:: symbol:: { Ident , Symbol , kw , sym } ;
13
+ use rustc_span:: { DUMMY_SP , DesugaringKind , Span } ;
14
+ use thin_vec:: { ThinVec , thin_vec } ;
15
15
16
16
use super :: errors:: {
17
17
AsyncCoroutinesNotSupported , AwaitOnlyInAsyncFnAndBlocks , BaseExpressionDoubleDot ,
@@ -23,7 +23,7 @@ use super::{
23
23
GenericArgsMode , ImplTraitContext , LoweringContext , ParamMode , ResolverAstLoweringExt ,
24
24
} ;
25
25
use crate :: errors:: YieldInClosure ;
26
- use crate :: { fluent_generated , AllowReturnTypeNotation , FnDeclKind , ImplTraitPosition } ;
26
+ use crate :: { AllowReturnTypeNotation , FnDeclKind , ImplTraitPosition , fluent_generated } ;
27
27
28
28
impl < ' hir > LoweringContext < ' _ , ' hir > {
29
29
fn lower_exprs ( & mut self , exprs : & [ AstP < Expr > ] ) -> & ' hir [ hir:: Expr < ' hir > ] {
@@ -725,18 +725,15 @@ impl<'hir> LoweringContext<'_, 'hir> {
725
725
span,
726
726
Some ( self . allow_gen_future . clone ( ) ) ,
727
727
) ;
728
- self . lower_attrs (
729
- inner_hir_id,
730
- & [ Attribute {
731
- kind : AttrKind :: Normal ( ptr:: P ( NormalAttr :: from_ident ( Ident :: new (
732
- sym:: track_caller,
733
- span,
734
- ) ) ) ) ,
735
- id : self . tcx . sess . psess . attr_id_generator . mk_attr_id ( ) ,
736
- style : AttrStyle :: Outer ,
737
- span : unstable_span,
738
- } ] ,
739
- ) ;
728
+ self . lower_attrs ( inner_hir_id, & [ Attribute {
729
+ kind : AttrKind :: Normal ( ptr:: P ( NormalAttr :: from_ident ( Ident :: new (
730
+ sym:: track_caller,
731
+ span,
732
+ ) ) ) ) ,
733
+ id : self . tcx . sess . psess . attr_id_generator . mk_attr_id ( ) ,
734
+ style : AttrStyle :: Outer ,
735
+ span : unstable_span,
736
+ } ] ) ;
740
737
}
741
738
}
742
739
0 commit comments