File tree 1 file changed +7
-10
lines changed
compiler/rustc_ast_lowering/src
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -1385,18 +1385,15 @@ impl<'hir> LoweringContext<'_, 'hir> {
1385
1385
. map ( |d| ( d. base_res ( ) , d. unresolved_segments ( ) ) )
1386
1386
{
1387
1387
Some ( ( Res :: Def ( DefKind :: TyParam , def_id) , 0 ) )
1388
- if bound_pred. bound_generic_params . is_empty ( ) =>
1389
- {
1390
- for param in & generics. params {
1391
- if def_id == self . resolver . local_def_id ( param. id ) . to_def_id ( ) {
1392
- add_bounds
1393
- . entry ( param. id )
1394
- . or_default ( )
1395
- . push ( bound. clone ( ) ) ;
1396
- continue ' next_bound;
1397
- }
1388
+ if bound_pred. bound_generic_params . is_empty ( ) =>
1389
+ {
1390
+ for param in & generics. params {
1391
+ if def_id == self . resolver . local_def_id ( param. id ) . to_def_id ( ) {
1392
+ add_bounds. entry ( param. id ) . or_default ( ) . push ( bound. clone ( ) ) ;
1393
+ continue ' next_bound;
1398
1394
}
1399
1395
}
1396
+ }
1400
1397
_ => { }
1401
1398
}
1402
1399
self . diagnostic ( ) . span_err (
You can’t perform that action at this time.
0 commit comments