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> {
1717 let mut crates: HashSet < & str > = value. split ( ',' ) . collect ( ) ;
1818 if crates. contains ( "std" ) {
1919 crates. insert ( "core" ) ;
20+ crates. insert ( "alloc" ) ;
21+ crates. insert ( "proc_macro" ) ;
2022 crates. insert ( "panic_unwind" ) ;
2123 crates. insert ( "compiler_builtins" ) ;
2224 } else if crates. contains ( "core" ) {
Original file line number Diff line number Diff line change @@ -237,7 +237,15 @@ fn doc() {
237237
238238fn check_std ( ) {
239239 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+ )
241249 . file ( "src/main.rs" , "fn main() {}" )
242250 . file (
243251 "tests/t1.rs" ,
You can’t perform that action at this time.
0 commit comments