Correct fmt
This commit is contained in:
parent
7af840f62e
commit
0f5bfc2242
1 changed files with 7 additions and 10 deletions
|
@ -1385,18 +1385,15 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
||||||
.map(|d| (d.base_res(), d.unresolved_segments()))
|
.map(|d| (d.base_res(), d.unresolved_segments()))
|
||||||
{
|
{
|
||||||
Some((Res::Def(DefKind::TyParam, def_id), 0))
|
Some((Res::Def(DefKind::TyParam, def_id), 0))
|
||||||
if bound_pred.bound_generic_params.is_empty() =>
|
if bound_pred.bound_generic_params.is_empty() =>
|
||||||
{
|
{
|
||||||
for param in &generics.params {
|
for param in &generics.params {
|
||||||
if def_id == self.resolver.local_def_id(param.id).to_def_id() {
|
if def_id == self.resolver.local_def_id(param.id).to_def_id() {
|
||||||
add_bounds
|
add_bounds.entry(param.id).or_default().push(bound.clone());
|
||||||
.entry(param.id)
|
continue 'next_bound;
|
||||||
.or_default()
|
|
||||||
.push(bound.clone());
|
|
||||||
continue 'next_bound;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
self.diagnostic().span_err(
|
self.diagnostic().span_err(
|
||||||
|
|
Loading…
Add table
Reference in a new issue