summaryrefslogtreecommitdiffstats
path: root/tests/ui-fulldeps/regions-mock-tcx.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui-fulldeps/regions-mock-tcx.rs (renamed from src/test/ui-fulldeps/regions-mock-tcx.rs)5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui-fulldeps/regions-mock-tcx.rs b/tests/ui-fulldeps/regions-mock-tcx.rs
index 30e627232..63975ef62 100644
--- a/src/test/ui-fulldeps/regions-mock-tcx.rs
+++ b/tests/ui-fulldeps/regions-mock-tcx.rs
@@ -14,6 +14,11 @@
extern crate rustc_arena;
extern crate libc;
+// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
+// files.
+#[allow(unused_extern_crates)]
+extern crate rustc_driver;
+
use TypeStructure::{TypeInt, TypeFunction};
use AstKind::{ExprInt, ExprVar, ExprLambda};
use rustc_arena::TypedArena;