Skip to content

Commit 9c79f60

Browse files
committed
Fix test.
1 parent f832a89 commit 9c79f60

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/test/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#![feature(rustc_private)]
22

33
extern crate rustc_codegen_ssa;
4-
extern crate rustc_errors;
5-
extern crate rustc_middle;
4+
extern crate rustc_crate;
65
extern crate rustc_data_structures;
76
extern crate rustc_driver;
7+
extern crate rustc_errors;
88
extern crate rustc_hir;
9+
extern crate rustc_middle;
910
extern crate rustc_session;
1011
extern crate rustc_span;
1112
extern crate rustc_symbol_mangling;
@@ -14,12 +15,12 @@ extern crate rustc_target;
1415
use rustc_codegen_ssa::back::linker::LinkerInfo;
1516
use rustc_codegen_ssa::traits::CodegenBackend;
1617
use rustc_codegen_ssa::{CodegenResults, CrateInfo};
18+
use rustc_crate::cstore::{EncodedMetadata, MetadataLoader, MetadataLoaderDyn};
1719
use rustc_data_structures::fx::FxHashMap;
1820
use rustc_data_structures::sync::MetadataRef;
1921
use rustc_errors::ErrorReported;
2022
use rustc_middle::dep_graph::DepGraph;
2123
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
22-
use rustc_middle::middle::cstore::{EncodedMetadata, MetadataLoader, MetadataLoaderDyn};
2324
use rustc_middle::ty::query::Providers;
2425
use rustc_middle::ty::TyCtxt;
2526
use rustc_session::config::OutputFilenames;

src/test/ui-fulldeps/hash-stable-is-unstable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ignore-stage1
22

3-
extern crate rustc_data_structures;
3+
extern crate rustc_crate;
44
//~^ use of unstable library feature 'rustc_private'
5-
extern crate rustc_middle;
5+
extern crate rustc_data_structures;
66
//~^ use of unstable library feature 'rustc_private'
77
extern crate rustc_macros;
88
//~^ use of unstable library feature 'rustc_private'

src/test/ui-fulldeps/hash-stable-is-unstable.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
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?
22
--> $DIR/hash-stable-is-unstable.rs:3:1
33
|
4-
LL | extern crate rustc_data_structures;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | extern crate rustc_crate;
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
88
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
99

1010
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?
1111
--> $DIR/hash-stable-is-unstable.rs:5:1
1212
|
13-
LL | extern crate rustc_middle;
14-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
LL | extern crate rustc_data_structures;
14+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515
|
1616
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
1717
= help: add `#![feature(rustc_private)]` to the crate attributes to enable

0 commit comments

Comments
 (0)