File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_hir_analysis/src/hir_ty_lowering Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1106,7 +1106,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
11061106 . collect:: <String >( )
11071107 ) ,
11081108 [ ( only, _) ] => only. to_string ( ) ,
1109- [ ] => "this type" . to_string ( ) ,
1109+ [ ] => bug ! ( "expected one segment to deny" ) ,
11101110 } ;
11111111
11121112 let arg_spans: Vec < Span > = segments
@@ -1136,7 +1136,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
11361136 "s" ,
11371137 ) ,
11381138 [ only] => ( only. to_string ( ) , "" ) ,
1139- [ ] => unreachable ! ( "expected at least one generic to prohibit" ) ,
1139+ [ ] => bug ! ( "expected at least one generic to prohibit" ) ,
11401140 } ;
11411141 let last_span = * arg_spans. last ( ) . unwrap ( ) ;
11421142 let span: MultiSpan = arg_spans. into ( ) ;
You can’t perform that action at this time.
0 commit comments