File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
compiler/rustc_session/src Expand file tree Collapse file tree 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};
1313use std:: str:: { self , FromStr } ;
1414use std:: sync:: LazyLock ;
1515use std:: { cmp, fmt, fs, iter} ;
16+
1617use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap } ;
1718use rustc_data_structures:: stable_hasher:: { StableOrd , ToStableHashKey } ;
1819use rustc_errors:: emitter:: HumanReadableErrorType ;
@@ -2700,7 +2701,12 @@ pub fn parse_crate_types_from_list(list_list: Vec<String>) -> Result<Vec<CrateTy
27002701 "cdylib" => CrateType :: Cdylib ,
27012702 "bin" => CrateType :: Executable ,
27022703 "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+ }
27042710 } ;
27052711 if !crate_types. contains ( & new_part) {
27062712 crate_types. push ( new_part)
You can’t perform that action at this time.
0 commit comments