File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
compiler/rustc_mir_build/src/thir/cx Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use rustc_hir as hir;
88use rustc_hir:: def:: DefKind ;
99use rustc_hir:: def_id:: { DefId , LocalDefId } ;
1010use rustc_hir:: lang_items:: LangItem ;
11- use rustc_hir:: { HirId , Node } ;
11+ use rustc_hir:: HirId ;
1212use rustc_middle:: bug;
1313use rustc_middle:: middle:: region;
1414use rustc_middle:: thir:: * ;
@@ -110,11 +110,7 @@ impl<'tcx> Cx<'tcx> {
110110 }
111111
112112 #[ instrument( level = "debug" , skip( self ) ) ]
113- fn pattern_from_hir ( & mut self , p : & hir:: Pat < ' _ > ) -> Box < Pat < ' tcx > > {
114- let p = match self . tcx . hir_node ( p. hir_id ) {
115- Node :: Pat ( p) => p,
116- node => bug ! ( "pattern became {:?}" , node) ,
117- } ;
113+ fn pattern_from_hir ( & mut self , p : & ' tcx hir:: Pat < ' tcx > ) -> Box < Pat < ' tcx > > {
118114 pat_from_hir ( self . tcx , self . param_env , self . typeck_results ( ) , p)
119115 }
120116
You can’t perform that action at this time.
0 commit comments