I.e. do not mark them as used, or non-speculative loaded, or similar. Previously they were sometimes finalized during early resolution, causing issues like https://github.com/rust-lang/rust/pull/144793#issuecomment-3168108005.
15 lines
302 B
Plaintext
15 lines
302 B
Plaintext
warning: unused import: `crate::mac`
|
|
--> $DIR/unused-macro-import.rs:10:9
|
|
|
|
|
LL | use crate::mac;
|
|
| ^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused-macro-import.rs:3:9
|
|
|
|
|
LL | #![warn(unused_imports)]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
warning: 1 warning emitted
|
|
|