File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11#![ feature( rustc_private, bool_to_option, stmt_expr_attributes) ]
22
3+ extern crate rustc_data_structures;
34extern crate rustc_driver;
45extern crate rustc_errors;
56extern crate rustc_hir;
@@ -12,12 +13,12 @@ use std::convert::TryFrom;
1213use std:: env;
1314use std:: num:: NonZeroU64 ;
1415use std:: path:: PathBuf ;
15- use std:: rc:: Rc ;
1616use std:: str:: FromStr ;
1717
1818use hex:: FromHexError ;
1919use log:: debug;
2020
21+ use rustc_data_structures:: sync:: Lrc ;
2122use rustc_driver:: Compilation ;
2223use rustc_errors:: emitter:: { ColorConfig , HumanReadableErrorType } ;
2324use rustc_hir:: { self as hir, def_id:: LOCAL_CRATE , Node } ;
@@ -42,7 +43,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
4243 // HACK: rustc will emit "crate ... required to be available in rlib format, but
4344 // was not found in this form" errors once we use `tcx.dependency_formats()` if
4445 // there's no rlib provided, so setting a dummy path here to workaround those errors.
45- Rc :: make_mut ( & mut crate_source) . rlib = Some ( ( PathBuf :: new ( ) , PathKind :: All ) ) ;
46+ Lrc :: make_mut ( & mut crate_source) . rlib = Some ( ( PathBuf :: new ( ) , PathKind :: All ) ) ;
4647 crate_source
4748 } ;
4849 } ) ;
You can’t perform that action at this time.
0 commit comments