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> + '_ {
1106
1106
. collect:: <String >( )
1107
1107
) ,
1108
1108
[ ( only, _) ] => only. to_string ( ) ,
1109
- [ ] => "this type" . to_string ( ) ,
1109
+ [ ] => bug ! ( "expected one segment to deny" ) ,
1110
1110
} ;
1111
1111
1112
1112
let arg_spans: Vec < Span > = segments
@@ -1136,7 +1136,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
1136
1136
"s" ,
1137
1137
) ,
1138
1138
[ only] => ( only. to_string ( ) , "" ) ,
1139
- [ ] => unreachable ! ( "expected at least one generic to prohibit" ) ,
1139
+ [ ] => bug ! ( "expected at least one generic to prohibit" ) ,
1140
1140
} ;
1141
1141
let last_span = * arg_spans. last ( ) . unwrap ( ) ;
1142
1142
let span: MultiSpan = arg_spans. into ( ) ;
You can’t perform that action at this time.
0 commit comments