Skip to content

Commit 2be2288

Browse files
committed
Remove detection of qself as associated type
The T::Value case is sufficient for this test suite.
1 parent 7526868 commit 2be2288

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

debug/tests/07-associated-type.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// {...}
1111
//
1212
// You can identify associated types as any syn::TypePath in which the first
13-
// path component is one of the type parameters, or in which the QSelf is one of
14-
// the type parameters.
13+
// path segment is one of the type parameters and there is more than one
14+
// segment.
1515
//
1616
//
1717
// Resources:
@@ -31,11 +31,6 @@ pub struct Field<T: Trait> {
3131
values: Vec<T::Value>,
3232
}
3333

34-
#[derive(CustomDebug)]
35-
pub struct FieldQ<T: Trait> {
36-
values: Vec<<T as Trait>::Value>,
37-
}
38-
3934
fn assert_debug<F: Debug>() {}
4035

4136
fn main() {
@@ -47,5 +42,4 @@ fn main() {
4742
}
4843

4944
assert_debug::<Field<Id>>();
50-
assert_debug::<FieldQ<Id>>();
5145
}

0 commit comments

Comments
 (0)