File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
compiler/rustc_ast_lowering/src Expand file tree Collapse file tree 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> {
13851385 . map ( |d| ( d. base_res ( ) , d. unresolved_segments ( ) ) )
13861386 {
13871387 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;
13981394 }
13991395 }
1396+ }
14001397 _ => { }
14011398 }
14021399 self . diagnostic ( ) . span_err (
You can’t perform that action at this time.
0 commit comments