File tree 1 file changed +7
-1
lines changed
compiler/rustc_session/src
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use std::path::{Path, PathBuf};
13
13
use std:: str:: { self , FromStr } ;
14
14
use std:: sync:: LazyLock ;
15
15
use std:: { cmp, fmt, fs, iter} ;
16
+
16
17
use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap } ;
17
18
use rustc_data_structures:: stable_hasher:: { StableOrd , ToStableHashKey } ;
18
19
use rustc_errors:: emitter:: HumanReadableErrorType ;
@@ -2700,7 +2701,12 @@ pub fn parse_crate_types_from_list(list_list: Vec<String>) -> Result<Vec<CrateTy
2700
2701
"cdylib" => CrateType :: Cdylib ,
2701
2702
"bin" => CrateType :: Executable ,
2702
2703
"proc-macro" => CrateType :: ProcMacro ,
2703
- _ => return Err ( format ! ( "unknown crate type: `{part}` - expected one of: {display}" , display = CrateType :: shorthands_display( ) ) ) ,
2704
+ _ => {
2705
+ return Err ( format ! (
2706
+ "unknown crate type: `{part}` - expected one of: {display}" ,
2707
+ display = CrateType :: shorthands_display( )
2708
+ ) ) ;
2709
+ }
2704
2710
} ;
2705
2711
if !crate_types. contains ( & new_part) {
2706
2712
crate_types. push ( new_part)
You can’t perform that action at this time.
0 commit comments