We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 962b219 commit b0c3968Copy full SHA for b0c3968
compiler/rustc_hir/src/hir.rs
@@ -531,7 +531,6 @@ impl GenericParam<'hir> {
531
.fold(None, |span: Option<Span>, bound| {
532
// We include bounds that come from a `#[derive(_)]` but point at the user's code,
533
// as we use this method to get a span appropriate for suggestions.
534
- // FIXME: a more "principled" approach should be taken here.
535
if !bound.span().can_be_used_for_suggestions() {
536
None
537
} else {
0 commit comments