review comment

This commit is contained in:
Esteban Kuber 2021-12-03 18:45:15 +00:00
parent 962b2197a5
commit b0c3968615

View File

@ -531,7 +531,6 @@ impl GenericParam<'hir> {
.fold(None, |span: Option<Span>, bound| {
// We include bounds that come from a `#[derive(_)]` but point at the user's code,
// as we use this method to get a span appropriate for suggestions.
// FIXME: a more "principled" approach should be taken here.
if !bound.span().can_be_used_for_suggestions() {
None
} else {