File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -4235,6 +4235,7 @@ dependencies = [
42354235 " rustc_middle" ,
42364236 " rustc_span" ,
42374237 " scoped-tls" ,
4238+ " rustc_target" ,
42384239 " tracing" ,
42394240]
42404241
Original file line number Diff line number Diff line change @@ -4,14 +4,18 @@ version = "0.0.0"
44edition = " 2021"
55
66[dependencies ]
7- rustc_hir = { path = " ../rustc_hir" }
7+ # Use optional dependencies for rustc_* in order to support building this crate separately.
8+ rustc_hir = { path = " ../rustc_hir" , optional = true }
89rustc_middle = { path = " ../rustc_middle" , optional = true }
910rustc_span = { path = " ../rustc_span" , optional = true }
11+ rustc_target = { path = " ../rustc_target" , optional = true }
1012tracing = " 0.1"
1113scoped-tls = " 1.0"
1214
1315[features ]
1416default = [
17+ " rustc_hir" ,
1518 " rustc_middle" ,
1619 " rustc_span" ,
20+ " rustc_target" ,
1721]
Original file line number Diff line number Diff line change 11[toolchain ]
2- channel = " nightly-2023-02-28 "
2+ channel = " nightly-2023-06-14 "
33components = [ " rustfmt" , " rustc-dev" ]
Original file line number Diff line number Diff line change 1414#![ feature( local_key_cell_methods) ]
1515#![ feature( ptr_metadata) ]
1616
17+ // Declare extern rustc_* crates to enable building this crate separately from the compiler.
18+ #[ cfg( not( feature = "default" ) ) ]
19+ extern crate rustc_hir;
20+ #[ cfg( not( feature = "default" ) ) ]
21+ extern crate rustc_middle;
22+ #[ cfg( not( feature = "default" ) ) ]
23+ extern crate rustc_span;
24+ #[ cfg( not( feature = "default" ) ) ]
25+ extern crate rustc_target;
26+
1727pub mod rustc_internal;
1828pub mod stable_mir;
1929
You can’t perform that action at this time.
0 commit comments