#![no_implicit_prelude]
cannot coexist with #[rustfmt::skip]
and other tool-prelude attributes
#106518
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
#![no_implicit_prelude]
disables all preludes, including the tool prelude. However, unlike the std prelude and the extern prelude, there is no way to selectively re-enable it.This has the concrete result that if I am writing a tool that generates Rust code and want to disable implicit symbols that may happen to clash with my own (hygine, etc), tool-generates symbols, I cannot mark the whole file as
#![rustfmt::skip]
to disable formatting, since it's machine-generated source code.See https://godbolt.org/z/bfdKzG47E
The text was updated successfully, but these errors were encountered: