Split CrateImplDefs in inherent and trait impls

This makes the intention of inherent vs. trait impls somewhat more
clear and also fixes (?) an issue where trait impls with an unresolved
trait were added as inherent impls instead (hence the test changes).
This commit is contained in:
Jonas Schievink 2020-07-01 17:15:20 +02:00
parent 07ba986db7
commit 6bde542a39
7 changed files with 133 additions and 121 deletions

View file

@ -219,6 +219,10 @@ impl T for &Foo {}
#[derive(Copy)]
//^^^^^^^^^^^^^^^
struct Foo<|>;
mod marker {
trait Copy {}
}
"#,
);
}