Skip to content

Commit

Permalink
rustc -> rustc_middle part 5 -- fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Mar 30, 2020
1 parent 39f0625 commit 2a92839
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/librustc_middle/lib.rs
Expand Up @@ -92,5 +92,5 @@ pub mod util {
pub mod common;
}

// Allows macros to refer to this crate as `::rustc`
// Allows macros to refer to this crate as `::rustc_middle`
extern crate self as rustc_middle;
@@ -1,7 +1,7 @@
#![feature(rustc_private)]

extern crate rustc;
extern crate rustc_codegen_ssa;
extern crate rustc_middle;
#[macro_use]
extern crate rustc_data_structures;
extern crate rustc_driver;
Expand All @@ -11,14 +11,14 @@ extern crate rustc_span;
extern crate rustc_symbol_mangling;
extern crate rustc_target;

use rustc::dep_graph::DepGraph;
use rustc::middle::cstore::{EncodedMetadata, MetadataLoader, MetadataLoaderDyn};
use rustc::ty::query::Providers;
use rustc::ty::TyCtxt;
use rustc::util::common::ErrorReported;
use rustc_codegen_ssa::traits::CodegenBackend;
use rustc_data_structures::owning_ref::OwningRef;
use rustc_data_structures::sync::MetadataRef;
use rustc_middle::dep_graph::DepGraph;
use rustc_middle::middle::cstore::{EncodedMetadata, MetadataLoader, MetadataLoaderDyn};
use rustc_middle::ty::query::Providers;
use rustc_middle::ty::TyCtxt;
use rustc_middle::util::common::ErrorReported;
use rustc_session::config::OutputFilenames;
use rustc_session::Session;
use rustc_span::symbol::Symbol;
Expand Down
Expand Up @@ -3,7 +3,7 @@
#![feature(plugin_registrar)]
#![feature(rustc_private)]

extern crate rustc;
extern crate rustc_middle;
extern crate rustc_driver;

use rustc_driver::plugin::Registry;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/auxiliary/outlive-expansion-phase.rs
Expand Up @@ -3,7 +3,7 @@
#![feature(plugin_registrar)]
#![feature(box_syntax, rustc_private)]

extern crate rustc;
extern crate rustc_middle;
extern crate rustc_driver;

use std::any::Any;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/auxiliary/rlib-crate-test.rs
Expand Up @@ -3,7 +3,7 @@
#![crate_type = "rlib"]
#![feature(plugin_registrar, rustc_private)]

extern crate rustc;
extern crate rustc_middle;
extern crate rustc_driver;

use rustc_driver::plugin::Registry;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/hash-stable-is-unstable.rs
Expand Up @@ -2,7 +2,7 @@

extern crate rustc_data_structures;
//~^ use of unstable library feature 'rustc_private'
extern crate rustc;
extern crate rustc_middle;
//~^ use of unstable library feature 'rustc_private'
extern crate rustc_macros;
//~^ use of unstable library feature 'rustc_private'
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/hash-stable-is-unstable.stderr
Expand Up @@ -10,8 +10,8 @@ LL | extern crate rustc_data_structures;
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/hash-stable-is-unstable.rs:5:1
|
LL | extern crate rustc;
| ^^^^^^^^^^^^^^^^^^^
LL | extern crate rustc_middle;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
Expand Down
Expand Up @@ -3,7 +3,7 @@
#![feature(rustc_private)]
#![deny(rustc::lint_pass_impl_without_macro)]

extern crate rustc;
extern crate rustc_middle;
extern crate rustc_session;

use rustc_session::lint::{LintArray, LintPass};
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/internal-lints/pass_ty_by_ref.rs
Expand Up @@ -4,9 +4,9 @@
#![deny(rustc::ty_pass_by_reference)]
#![allow(unused)]

extern crate rustc;
extern crate rustc_middle;

use rustc::ty::{Ty, TyCtxt};
use rustc_middle::ty::{Ty, TyCtxt};

fn ty_by_ref(
ty_val: Ty<'_>,
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs
Expand Up @@ -4,9 +4,9 @@
#![deny(rustc::usage_of_qualified_ty)]
#![allow(unused)]

extern crate rustc;
extern crate rustc_middle;

use rustc::ty::{self, Ty, TyCtxt};
use rustc_middle::ty::{self, Ty, TyCtxt};

macro_rules! qualified_macro {
($a:ident) => {
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/internal-lints/ty_tykind_usage.rs
Expand Up @@ -2,9 +2,9 @@

#![feature(rustc_private)]

extern crate rustc;
extern crate rustc_middle;

use rustc::ty::{self, Ty, TyKind};
use rustc_middle::ty::{self, Ty, TyKind};

#[deny(rustc::usage_of_ty_tykind)]
fn main() {
Expand Down
6 changes: 3 additions & 3 deletions src/test/ui-fulldeps/pathless-extern-unstable.rs
@@ -1,10 +1,10 @@
// ignore-stage1
// edition:2018
// compile-flags:--extern rustc
// compile-flags:--extern rustc_middle

// Test that `--extern rustc` fails with `rustc_private`.
// Test that `--extern rustc_middle` fails with `rustc_private`.

pub use rustc;
pub use rustc_middle;
//~^ ERROR use of unstable library feature 'rustc_private'

fn main() {}
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/pathless-extern-unstable.stderr
@@ -1,8 +1,8 @@
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/pathless-extern-unstable.rs:7:9
|
LL | pub use rustc;
| ^^^^^
LL | pub use rustc_middle;
| ^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
Expand Down

0 comments on commit 2a92839

Please sign in to comment.