File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -284,9 +284,9 @@ impl ReleaseChannel {
284
284
285
285
pub fn from_str ( str : & str ) -> Option < Self > {
286
286
Some ( match str {
287
- "stable" => ReleaseChannel :: Stable ,
288
- "beta" => ReleaseChannel :: Beta ,
287
+ "" => ReleaseChannel :: Stable ,
289
288
"nightly" => ReleaseChannel :: Nightly ,
289
+ _ if str. starts_with ( "beta" ) => ReleaseChannel :: Beta ,
290
290
_ => return None ,
291
291
} )
292
292
}
Original file line number Diff line number Diff line change @@ -387,7 +387,6 @@ use self::foo::impl$0
387
387
fn use_tree_no_unstable_items_on_stable ( ) {
388
388
check (
389
389
r#"
390
- //- toolchain:stable
391
390
//- /lib.rs crate:main deps:std
392
391
use std::$0
393
392
//- /std.rs crate:std
Original file line number Diff line number Diff line change @@ -779,7 +779,7 @@ fn project_json_to_crate_graph(
779
779
CrateOrigin :: Local { repo : None , name : None }
780
780
} ,
781
781
target_layout. clone ( ) ,
782
- None ,
782
+ channel ,
783
783
) ;
784
784
if * is_proc_macro {
785
785
if let Some ( path) = proc_macro_dylib_path. clone ( ) {
Original file line number Diff line number Diff line change @@ -111,8 +111,9 @@ impl FixtureWithProjectMeta {
111
111
/// //- minicore: sized
112
112
/// ```
113
113
///
114
- /// That will include predefined proc macros and a subset of `libcore` into the fixture, see
115
- /// `minicore.rs` for what's available.
114
+ /// That will set toolchain to nightly and include predefined proc macros and a subset of
115
+ /// `libcore` into the fixture, see `minicore.rs` for what's available. Note that toolchain
116
+ /// defaults to stable.
116
117
pub fn parse ( ra_fixture : & str ) -> Self {
117
118
let fixture = trim_indent ( ra_fixture) ;
118
119
let mut fixture = fixture. as_str ( ) ;
You can’t perform that action at this time.
0 commit comments