|
1 | | -error[E0390]: cannot define inherent `impl` for a type outside of crate where the type is defined |
| 1 | +error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined |
2 | 2 | --> $DIR/needs-has-incoherent-impls.rs:5:1 |
3 | 3 | | |
4 | 4 | LL | / impl extern_crate::StructWithAttr { |
| 5 | +LL | | |
5 | 6 | LL | | fn foo() {} |
6 | 7 | LL | | } |
7 | 8 | | |_^ |
8 | 9 | | |
9 | 10 | = help: consider moving this inherent impl into the crate defining the type if possible |
10 | 11 | help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items |
11 | | - --> $DIR/needs-has-incoherent-impls.rs:6:5 |
| 12 | + --> $DIR/needs-has-incoherent-impls.rs:7:5 |
12 | 13 | | |
13 | 14 | LL | fn foo() {} |
14 | 15 | | ^^^^^^^^^^^ |
15 | 16 |
|
16 | | -error[E0390]: cannot define inherent `impl` for a type outside of crate where the type is defined |
17 | | - --> $DIR/needs-has-incoherent-impls.rs:12:1 |
| 17 | +error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined |
| 18 | + --> $DIR/needs-has-incoherent-impls.rs:13:1 |
18 | 19 | | |
19 | 20 | LL | / impl extern_crate::StructNoAttr { |
| 21 | +LL | | |
20 | 22 | LL | | fn foo() {} |
21 | 23 | LL | | } |
22 | 24 | | |_^ |
23 | 25 | | |
24 | 26 | = help: consider moving this inherent impl into the crate defining the type if possible |
25 | 27 | help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items |
26 | | - --> $DIR/needs-has-incoherent-impls.rs:12:1 |
| 28 | + --> $DIR/needs-has-incoherent-impls.rs:13:1 |
27 | 29 | | |
28 | 30 | LL | / impl extern_crate::StructNoAttr { |
| 31 | +LL | | |
29 | 32 | LL | | fn foo() {} |
30 | 33 | LL | | } |
31 | 34 | | |_^ |
32 | 35 |
|
33 | | -error[E0390]: cannot define inherent `impl` for a type outside of crate where the type is defined |
34 | | - --> $DIR/needs-has-incoherent-impls.rs:15:1 |
| 36 | +error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined |
| 37 | + --> $DIR/needs-has-incoherent-impls.rs:17:1 |
35 | 38 | | |
36 | 39 | LL | / impl extern_crate::StructNoAttr { |
| 40 | +LL | | |
37 | 41 | LL | | #[rustc_allow_incoherent_impl] |
38 | 42 | LL | | fn bar() {} |
39 | 43 | LL | | } |
40 | 44 | | |_^ |
41 | 45 | | |
42 | 46 | = help: consider moving this inherent impl into the crate defining the type if possible |
43 | 47 | help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items |
44 | | - --> $DIR/needs-has-incoherent-impls.rs:15:1 |
| 48 | + --> $DIR/needs-has-incoherent-impls.rs:17:1 |
45 | 49 | | |
46 | 50 | LL | / impl extern_crate::StructNoAttr { |
| 51 | +LL | | |
47 | 52 | LL | | #[rustc_allow_incoherent_impl] |
48 | 53 | LL | | fn bar() {} |
49 | 54 | LL | | } |
50 | 55 | | |_^ |
51 | 56 |
|
52 | | -error[E0390]: cannot define inherent `impl` for a type outside of crate where the type is defined |
53 | | - --> $DIR/needs-has-incoherent-impls.rs:19:1 |
| 57 | +error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined |
| 58 | + --> $DIR/needs-has-incoherent-impls.rs:22:1 |
54 | 59 | | |
55 | 60 | LL | / impl extern_crate::EnumWithAttr { |
| 61 | +LL | | |
56 | 62 | LL | | fn foo() {} |
57 | 63 | LL | | } |
58 | 64 | | |_^ |
59 | 65 | | |
60 | 66 | = help: consider moving this inherent impl into the crate defining the type if possible |
61 | 67 | help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items |
62 | | - --> $DIR/needs-has-incoherent-impls.rs:20:5 |
| 68 | + --> $DIR/needs-has-incoherent-impls.rs:24:5 |
63 | 69 | | |
64 | 70 | LL | fn foo() {} |
65 | 71 | | ^^^^^^^^^^^ |
66 | 72 |
|
67 | | -error[E0390]: cannot define inherent `impl` for a type outside of crate where the type is defined |
68 | | - --> $DIR/needs-has-incoherent-impls.rs:26:1 |
| 73 | +error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined |
| 74 | + --> $DIR/needs-has-incoherent-impls.rs:30:1 |
69 | 75 | | |
70 | 76 | LL | / impl extern_crate::EnumNoAttr { |
| 77 | +LL | | |
71 | 78 | LL | | fn foo() {} |
72 | 79 | LL | | } |
73 | 80 | | |_^ |
74 | 81 | | |
75 | 82 | = help: consider moving this inherent impl into the crate defining the type if possible |
76 | 83 | help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items |
77 | | - --> $DIR/needs-has-incoherent-impls.rs:26:1 |
| 84 | + --> $DIR/needs-has-incoherent-impls.rs:30:1 |
78 | 85 | | |
79 | 86 | LL | / impl extern_crate::EnumNoAttr { |
| 87 | +LL | | |
80 | 88 | LL | | fn foo() {} |
81 | 89 | LL | | } |
82 | 90 | | |_^ |
83 | 91 |
|
84 | | -error[E0390]: cannot define inherent `impl` for a type outside of crate where the type is defined |
85 | | - --> $DIR/needs-has-incoherent-impls.rs:29:1 |
| 92 | +error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined |
| 93 | + --> $DIR/needs-has-incoherent-impls.rs:34:1 |
86 | 94 | | |
87 | 95 | LL | / impl extern_crate::EnumNoAttr { |
| 96 | +LL | | |
88 | 97 | LL | | #[rustc_allow_incoherent_impl] |
89 | 98 | LL | | fn bar() {} |
90 | 99 | LL | | } |
91 | 100 | | |_^ |
92 | 101 | | |
93 | 102 | = help: consider moving this inherent impl into the crate defining the type if possible |
94 | 103 | help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items |
95 | | - --> $DIR/needs-has-incoherent-impls.rs:29:1 |
| 104 | + --> $DIR/needs-has-incoherent-impls.rs:34:1 |
96 | 105 | | |
97 | 106 | LL | / impl extern_crate::EnumNoAttr { |
| 107 | +LL | | |
98 | 108 | LL | | #[rustc_allow_incoherent_impl] |
99 | 109 | LL | | fn bar() {} |
100 | 110 | LL | | } |
|
0 commit comments