@@ -38,66 +38,127 @@ LL | #[generate_mod::check_attr]
38
38
OuterAttr
39
39
= note: this error originates in the attribute macro `generate_mod::check_attr` (in Nightly builds, run with -Z macro-backtrace for more info)
40
40
41
- error[E0412] : cannot find type `FromOutside` in this scope
41
+ error: cannot find type `FromOutside` in this scope
42
42
--> $DIR/generate-mod.rs:16:10
43
43
|
44
44
LL | #[derive(generate_mod::CheckDerive)]
45
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
45
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
46
46
|
47
- = note: consider importing this struct:
48
- FromOutside
47
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
48
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
49
+ = note: `#[deny(proc_macro_derive_resolution_fallback)]` on by default
49
50
= note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
50
51
51
- error[E0412] : cannot find type `OuterDerive` in this scope
52
+ error: cannot find type `OuterDerive` in this scope
52
53
--> $DIR/generate-mod.rs:16:10
53
54
|
54
55
LL | #[derive(generate_mod::CheckDerive)]
55
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
56
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
56
57
|
57
- = note: consider importing this struct:
58
- OuterDerive
58
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
59
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
59
60
= note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
60
61
61
- error[E0412] : cannot find type `FromOutside` in this scope
62
- --> $DIR/generate-mod.rs:21 :14
62
+ error: cannot find type `FromOutside` in this scope
63
+ --> $DIR/generate-mod.rs:23 :14
63
64
|
64
65
LL | #[derive(generate_mod::CheckDerive)]
65
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
66
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
66
67
|
67
- = note: consider importing this struct:
68
- FromOutside
68
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
69
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
69
70
= note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
70
71
71
- error[E0412] : cannot find type `OuterDerive` in this scope
72
- --> $DIR/generate-mod.rs:21 :14
72
+ error: cannot find type `OuterDerive` in this scope
73
+ --> $DIR/generate-mod.rs:23 :14
73
74
|
74
75
LL | #[derive(generate_mod::CheckDerive)]
75
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
76
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
76
77
|
77
- = note: consider importing this struct:
78
- OuterDerive
78
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
79
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
79
80
= note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
80
81
81
- error[E0412]: cannot find type `FromOutside` in this scope
82
- --> $DIR/generate-mod.rs:26:10
82
+ error: aborting due to 8 previous errors
83
+
84
+ For more information about this error, try `rustc --explain E0412`.
85
+ Future incompatibility report: Future breakage diagnostic:
86
+ error: cannot find type `FromOutside` in this scope
87
+ --> $DIR/generate-mod.rs:16:10
83
88
|
84
- LL | #[derive(generate_mod::CheckDeriveLint )]
85
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
89
+ LL | #[derive(generate_mod::CheckDerive )]
90
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
86
91
|
87
- = note: consider importing this struct:
88
- FromOutside
89
- = note: this error originates in the derive macro `generate_mod::CheckDeriveLint` (in Nightly builds, run with -Z macro-backtrace for more info)
92
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
93
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
94
+ = note: `#[deny(proc_macro_derive_resolution_fallback)]` on by default
95
+ = note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
90
96
91
- error[E0412]: cannot find type `OuterDeriveLint` in this scope
92
- --> $DIR/generate-mod.rs:26:10
97
+ Future breakage diagnostic:
98
+ error: cannot find type `OuterDerive` in this scope
99
+ --> $DIR/generate-mod.rs:16:10
93
100
|
94
- LL | #[derive(generate_mod::CheckDeriveLint )]
95
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
101
+ LL | #[derive(generate_mod::CheckDerive )]
102
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
96
103
|
97
- = note: consider importing this struct:
98
- OuterDeriveLint
99
- = note: this error originates in the derive macro `generate_mod::CheckDeriveLint` (in Nightly builds, run with -Z macro-backtrace for more info)
104
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
105
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
106
+ = note: `#[deny(proc_macro_derive_resolution_fallback)]` on by default
107
+ = note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
100
108
101
- error: aborting due to 10 previous errors
109
+ Future breakage diagnostic:
110
+ error: cannot find type `FromOutside` in this scope
111
+ --> $DIR/generate-mod.rs:23:14
112
+ |
113
+ LL | #[derive(generate_mod::CheckDerive)]
114
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
115
+ |
116
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
117
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
118
+ = note: `#[deny(proc_macro_derive_resolution_fallback)]` on by default
119
+ = note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
120
+
121
+ Future breakage diagnostic:
122
+ error: cannot find type `OuterDerive` in this scope
123
+ --> $DIR/generate-mod.rs:23:14
124
+ |
125
+ LL | #[derive(generate_mod::CheckDerive)]
126
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
127
+ |
128
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
129
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
130
+ = note: `#[deny(proc_macro_derive_resolution_fallback)]` on by default
131
+ = note: this error originates in the derive macro `generate_mod::CheckDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
132
+
133
+ Future breakage diagnostic:
134
+ warning: cannot find type `FromOutside` in this scope
135
+ --> $DIR/generate-mod.rs:30:10
136
+ |
137
+ LL | #[derive(generate_mod::CheckDeriveLint)] // OK, lint is suppressed
138
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
139
+ |
140
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
141
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
142
+ note: the lint level is defined here
143
+ --> $DIR/generate-mod.rs:30:10
144
+ |
145
+ LL | #[derive(generate_mod::CheckDeriveLint)] // OK, lint is suppressed
146
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
147
+ = note: this warning originates in the derive macro `generate_mod::CheckDeriveLint` (in Nightly builds, run with -Z macro-backtrace for more info)
148
+
149
+ Future breakage diagnostic:
150
+ warning: cannot find type `OuterDeriveLint` in this scope
151
+ --> $DIR/generate-mod.rs:30:10
152
+ |
153
+ LL | #[derive(generate_mod::CheckDeriveLint)] // OK, lint is suppressed
154
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ names from parent modules are not accessible without an explicit import
155
+ |
156
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
157
+ = note: for more information, see issue #83583 <https://github.com/rust-lang/rust/issues/83583>
158
+ note: the lint level is defined here
159
+ --> $DIR/generate-mod.rs:30:10
160
+ |
161
+ LL | #[derive(generate_mod::CheckDeriveLint)] // OK, lint is suppressed
162
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
163
+ = note: this warning originates in the derive macro `generate_mod::CheckDeriveLint` (in Nightly builds, run with -Z macro-backtrace for more info)
102
164
103
- For more information about this error, try `rustc --explain E0412`.
0 commit comments