Skip to content

Commit

Permalink
resolve: Do not put nonexistent crate meta into prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Oct 17, 2020
1 parent 03687f8 commit 3522add
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions compiler/rustc_resolve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1240,9 +1240,6 @@ impl<'a> Resolver<'a> {
extern_prelude.insert(Ident::with_dummy_span(sym::core), Default::default());
if !session.contains_name(&krate.attrs, sym::no_std) {
extern_prelude.insert(Ident::with_dummy_span(sym::std), Default::default());
if session.rust_2018() {
extern_prelude.insert(Ident::with_dummy_span(sym::meta), Default::default());
}
}
}

Expand Down
7 changes: 0 additions & 7 deletions src/test/ui/rfc-2126-extern-absolute-paths/meta.rs

This file was deleted.

9 changes: 0 additions & 9 deletions src/test/ui/rfc-2126-extern-absolute-paths/meta.stderr

This file was deleted.

0 comments on commit 3522add

Please sign in to comment.