File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( rustc_private, bool_to_option, stmt_expr_attributes) ]
2
2
3
+ extern crate rustc_data_structures;
3
4
extern crate rustc_driver;
4
5
extern crate rustc_errors;
5
6
extern crate rustc_hir;
@@ -12,12 +13,12 @@ use std::convert::TryFrom;
12
13
use std:: env;
13
14
use std:: num:: NonZeroU64 ;
14
15
use std:: path:: PathBuf ;
15
- use std:: rc:: Rc ;
16
16
use std:: str:: FromStr ;
17
17
18
18
use hex:: FromHexError ;
19
19
use log:: debug;
20
20
21
+ use rustc_data_structures:: sync:: Lrc ;
21
22
use rustc_driver:: Compilation ;
22
23
use rustc_errors:: emitter:: { ColorConfig , HumanReadableErrorType } ;
23
24
use rustc_hir:: { self as hir, def_id:: LOCAL_CRATE , Node } ;
@@ -42,7 +43,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
42
43
// HACK: rustc will emit "crate ... required to be available in rlib format, but
43
44
// was not found in this form" errors once we use `tcx.dependency_formats()` if
44
45
// 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 ) ) ;
46
47
crate_source
47
48
} ;
48
49
} ) ;
You can’t perform that action at this time.
0 commit comments