rustc_typeck: rework coherence to be almost completely on-demand.

This commit is contained in:
Eduard-Mihai Burtescu 2017-02-19 14:46:29 +02:00
parent 9890e0466d
commit c832e6f327
53 changed files with 836 additions and 682 deletions

View file

@ -7,15 +7,6 @@ error[E0204]: the trait `Copy` may not be implemented for this type
15 | impl Copy for Foo { }
| ^^^^
error[E0204]: the trait `Copy` may not be implemented for this type
--> $DIR/E0204.rs:27:6
|
23 | Bar { x: Vec<u32> },
| ----------- this field does not implement `Copy`
...
27 | impl Copy for EFoo { }
| ^^^^
error[E0204]: the trait `Copy` may not be implemented for this type
--> $DIR/E0204.rs:17:10
|
@ -25,6 +16,15 @@ error[E0204]: the trait `Copy` may not be implemented for this type
19 | ty: &'a mut bool,
| ---------------- this field does not implement `Copy`
error[E0204]: the trait `Copy` may not be implemented for this type
--> $DIR/E0204.rs:27:6
|
23 | Bar { x: Vec<u32> },
| ----------- this field does not implement `Copy`
...
27 | impl Copy for EFoo { }
| ^^^^
error[E0204]: the trait `Copy` may not be implemented for this type
--> $DIR/E0204.rs:29:10
|