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 @@ -4112,6 +4112,7 @@ dependencies = [
41124112 " rustc_hir" ,
41134113 " rustc_middle" ,
41144114 " rustc_span" ,
4115+ " rustc_target" ,
41154116 " tracing" ,
41164117]
41174118
Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ 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"
1113
1214[features ]
1315default = [
16+ " rustc_hir" ,
1417 " rustc_middle" ,
1518 " rustc_span" ,
19+ " rustc_target" ,
1620]
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