@@ -100,10 +100,10 @@ use rustc_hir::hir_id::{HirIdMap, HirIdSet};
100
100
use rustc_hir:: intravisit:: { walk_expr, FnKind , Visitor } ;
101
101
use rustc_hir:: LangItem :: { OptionNone , OptionSome , ResultErr , ResultOk } ;
102
102
use rustc_hir:: {
103
- self as hir, def, Arm , ArrayLen , BindingMode , Block , BlockCheckMode , Body , ByRef , Closure , Destination , Expr ,
104
- ExprField , ExprKind , FnDecl , FnRetTy , GenericArgs , HirId , Impl , ImplItem , ImplItemKind , ImplItemRef , Item ,
105
- ItemKind , LangItem , LetStmt , MatchSource , Mutability , Node , OwnerId , Param , Pat , PatKind , Path , PathSegment ,
106
- PrimTy , QPath , Stmt , StmtKind , TraitItem , TraitItemKind , TraitItemRef , TraitRef , TyKind , UnOp ,
103
+ self as hir, def, Arm , ArrayLen , BindingMode , Block , BlockCheckMode , Body , ByRef , Closure , ConstContext ,
104
+ Destination , Expr , ExprField , ExprKind , FnDecl , FnRetTy , GenericArgs , HirId , Impl , ImplItem , ImplItemKind ,
105
+ ImplItemRef , Item , ItemKind , LangItem , LetStmt , MatchSource , Mutability , Node , OwnerId , Param , Pat , PatKind , Path ,
106
+ PathSegment , PrimTy , QPath , Stmt , StmtKind , TraitItem , TraitItemKind , TraitItemRef , TraitRef , TyKind , UnOp ,
107
107
} ;
108
108
use rustc_lexer:: { tokenize, TokenKind } ;
109
109
use rustc_lint:: { LateContext , Level , Lint , LintContext } ;
0 commit comments