Skip to content

Commit 0f5bfc2

Browse files
author
surechen
committed
Correct fmt
1 parent 7af840f commit 0f5bfc2

File tree

1 file changed

+7
-10
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+7
-10
lines changed

compiler/rustc_ast_lowering/src/item.rs

+7-10
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)