Don't suggest dyn as parameter to add
This commit is contained in:
parent
950b47fb96
commit
bf0623e363
4 changed files with 11 additions and 24 deletions
|
@ -2065,7 +2065,11 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
|
|||
path: &[Segment],
|
||||
) -> Option<(Span, &'static str, String, Applicability)> {
|
||||
let (ident, span) = match path {
|
||||
[segment] if !segment.has_generic_args && segment.ident.name != kw::SelfUpper => {
|
||||
[segment]
|
||||
if !segment.has_generic_args
|
||||
&& segment.ident.name != kw::SelfUpper
|
||||
&& segment.ident.name != kw::Dyn =>
|
||||
{
|
||||
(segment.ident.to_string(), segment.ident.span)
|
||||
}
|
||||
_ => return None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue