File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ pub fn parse_unstable_flag(value: Option<&str>) -> Vec<String> {
17
17
let mut crates: HashSet < & str > = value. split ( ',' ) . collect ( ) ;
18
18
if crates. contains ( "std" ) {
19
19
crates. insert ( "core" ) ;
20
+ crates. insert ( "alloc" ) ;
21
+ crates. insert ( "proc_macro" ) ;
20
22
crates. insert ( "panic_unwind" ) ;
21
23
crates. insert ( "compiler_builtins" ) ;
22
24
} else if crates. contains ( "core" ) {
Original file line number Diff line number Diff line change @@ -237,7 +237,15 @@ fn doc() {
237
237
238
238
fn check_std ( ) {
239
239
let p = project ( )
240
- . file ( "src/lib.rs" , "pub fn f() {}" )
240
+ . file (
241
+ "src/lib.rs" ,
242
+ "
243
+ extern crate core;
244
+ extern crate alloc;
245
+ extern crate proc_macro;
246
+ pub fn f() {}
247
+ " ,
248
+ )
241
249
. file ( "src/main.rs" , "fn main() {}" )
242
250
. file (
243
251
"tests/t1.rs" ,
You can’t perform that action at this time.
0 commit comments