mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 11:17:04 +00:00
12 lines
481 B
Rust
12 lines
481 B
Rust
use super::prelude::*;
|
|
|
|
pub(crate) struct NoImplicitPreludeParser;
|
|
|
|
impl<S: Stage> NoArgsAttributeParser<S> for NoImplicitPreludeParser {
|
|
const PATH: &[rustc_span::Symbol] = &[sym::no_implicit_prelude];
|
|
const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn;
|
|
const ALLOWED_TARGETS: AllowedTargets =
|
|
AllowedTargets::AllowListWarnRest(&[Allow(Target::Mod), Allow(Target::Crate)]);
|
|
const CREATE: fn(Span) -> AttributeKind = AttributeKind::NoImplicitPrelude;
|
|
}
|