We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7458385 commit 39c67b2Copy full SHA for 39c67b2
compiler/rustc_hir/src/hir.rs
@@ -566,8 +566,7 @@ impl<'hir> Generics<'hir> {
566
}
567
568
569
- /// If there are generic parameters, return wher to introduce a new one, and false.
570
- /// If there is none, return where to introduce `<>` and true.
+ /// If there are generic parameters, return where to introduce a new one.
571
pub fn span_for_param_suggestion(&self) -> Option<Span> {
572
if self.params.iter().any(|p| self.span.contains(p.span)) {
573
// `fn foo<A>(t: impl Trait)`
0 commit comments