We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4be61ad commit d3cc761Copy full SHA for d3cc761
src/libsyntax/feature_gate.rs
@@ -858,6 +858,11 @@ impl<'a> PostExpansionVisitor<'a> {
858
859
impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
860
fn visit_attribute(&mut self, attr: &ast::Attribute) {
861
+ if &*attr.name() == "no_implicit_prelude" {
862
+ self.context.span_handler.span_warn(attr.span,
863
+ "the `#[no_implicit_prelude]` attribute is \
864
+ deprecated, use `#[no_prelude]` instead");
865
+ }
866
if !self.context.cm.span_allows_unstable(attr.span) {
867
self.context.check_attribute(attr, false);
868
}
0 commit comments