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 1368591 commit 6b3e1e5Copy full SHA for 6b3e1e5
impl/src/generics.rs
@@ -25,11 +25,12 @@ impl<'a> ParamsInScope<'a> {
25
26
fn crawl(in_scope: &ParamsInScope, ty: &Type, found: &mut bool) {
27
if let Type::Path(ty) = ty {
28
- if ty.qself.is_none() {
29
- if let Some(ident) = ty.path.get_ident() {
30
- if in_scope.names.contains(ident) {
31
- *found = true;
32
- }
+ if let Some(qself) = &ty.qself {
+ crawl(in_scope, &qself.ty, found);
+ } else {
+ let front = ty.path.segments.first().unwrap();
+ if front.arguments.is_none() && in_scope.names.contains(&front.ident) {
33
+ *found = true;
34
}
35
36
for segment in &ty.path.segments {
0 commit comments