File tree Expand file tree Collapse file tree 5 files changed +16
-35
lines changed Expand file tree Collapse file tree 5 files changed +16
-35
lines changed Original file line number Diff line number Diff line change @@ -64,34 +64,4 @@ thiserror = "1.0"
64
64
# for more information.
65
65
rustc-workspace-hack = " 1.0.0"
66
66
67
- [dependencies .rustc_ast ]
68
- package = " rustc-ap-rustc_ast"
69
- version = " 712.0.0"
70
-
71
- [dependencies .rustc_ast_pretty ]
72
- package = " rustc-ap-rustc_ast_pretty"
73
- version = " 712.0.0"
74
-
75
- [dependencies .rustc_data_structures ]
76
- package = " rustc-ap-rustc_data_structures"
77
- version = " 712.0.0"
78
-
79
- [dependencies .rustc_errors ]
80
- package = " rustc-ap-rustc_errors"
81
- version = " 712.0.0"
82
-
83
- [dependencies .rustc_expand ]
84
- package = " rustc-ap-rustc_expand"
85
- version = " 712.0.0"
86
-
87
- [dependencies .rustc_parse ]
88
- package = " rustc-ap-rustc_parse"
89
- version = " 712.0.0"
90
-
91
- [dependencies .rustc_session ]
92
- package = " rustc-ap-rustc_session"
93
- version = " 712.0.0"
94
-
95
- [dependencies .rustc_span ]
96
- package = " rustc-ap-rustc_span"
97
- version = " 712.0.0"
67
+ # Rustc dependencies are loaded from the sysroot, Cargo doesn't know about them.
Original file line number Diff line number Diff line change 2
2
3
3
#![ recursion_limit = "256" ]
4
4
5
- extern crate proc_macro;
6
-
7
5
mod attrs;
8
6
mod config_type;
9
7
mod item_enum;
Original file line number Diff line number Diff line change 1
- nightly-2021-03-26
1
+ [toolchain]
2
+ channel = "nightly-2021-03-26"
3
+ components = ["rustc-dev"]
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ impl Rewrite for ast::Attribute {
376
376
}
377
377
}
378
378
379
- impl < ' a > Rewrite for [ ast:: Attribute ] {
379
+ impl Rewrite for [ ast:: Attribute ] {
380
380
fn rewrite ( & self , context : & RewriteContext < ' _ > , shape : Shape ) -> Option < String > {
381
381
if self . is_empty ( ) {
382
382
return Some ( String :: new ( ) ) ;
Original file line number Diff line number Diff line change
1
+ #![ feature( rustc_private) ]
1
2
#![ deny( rust_2018_idioms) ]
2
3
#![ warn( unreachable_pub) ]
3
4
@@ -9,6 +10,16 @@ extern crate lazy_static;
9
10
#[ macro_use]
10
11
extern crate log;
11
12
13
+ // N.B. these crates are loaded from the sysroot, so they need extern crate.
14
+ extern crate rustc_ast;
15
+ extern crate rustc_ast_pretty;
16
+ extern crate rustc_data_structures;
17
+ extern crate rustc_errors;
18
+ extern crate rustc_expand;
19
+ extern crate rustc_parse;
20
+ extern crate rustc_session;
21
+ extern crate rustc_span;
22
+
12
23
use std:: cell:: RefCell ;
13
24
use std:: collections:: HashMap ;
14
25
use std:: fmt;
You can’t perform that action at this time.
0 commit comments