@@ -234,24 +234,14 @@ impl Profiles {
234
234
unit_for : UnitFor ,
235
235
kind : CompileKind ,
236
236
) -> Profile {
237
- let ( profile_name, inherits) = ( self . requested_profile , None ) ;
238
- let maker = self . get_profile_maker ( profile_name) . unwrap ( ) ;
237
+ let maker = self . get_profile_maker ( self . requested_profile ) . unwrap ( ) ;
239
238
let mut profile = maker. get_profile ( Some ( pkg_id) , is_member, unit_for. is_for_host ( ) ) ;
240
239
241
240
// Dealing with `panic=abort` and `panic=unwind` requires some special
242
241
// treatment. Be sure to process all the various options here.
243
242
match unit_for. panic_setting ( ) {
244
243
PanicSetting :: AlwaysUnwind => profile. panic = PanicStrategy :: Unwind ,
245
244
PanicSetting :: ReadProfile => { }
246
- PanicSetting :: Inherit => {
247
- if let Some ( inherits) = inherits {
248
- // TODO: Fixme, broken with named profiles.
249
- let maker = self . get_profile_maker ( inherits) . unwrap ( ) ;
250
- profile. panic = maker
251
- . get_profile ( Some ( pkg_id) , is_member, unit_for. is_for_host ( ) )
252
- . panic ;
253
- }
254
- }
255
245
}
256
246
257
247
// Default macOS debug information to being stored in the "unpacked"
@@ -285,7 +275,7 @@ impl Profiles {
285
275
if !is_local {
286
276
profile. incremental = false ;
287
277
}
288
- profile. name = profile_name ;
278
+ profile. name = self . requested_profile ;
289
279
profile
290
280
}
291
281
@@ -840,10 +830,6 @@ enum PanicSetting {
840
830
/// Indicates that this unit will read its `profile` setting and use
841
831
/// whatever is configured there.
842
832
ReadProfile ,
843
-
844
- /// This unit will ignore its `panic` setting in its profile and will
845
- /// instead inherit it from the `dev` or `release` profile, as appropriate.
846
- Inherit ,
847
833
}
848
834
849
835
impl UnitFor {
@@ -909,7 +895,7 @@ impl UnitFor {
909
895
// (basically avoid recompiles) but historical defaults required
910
896
// that we always unwound.
911
897
panic_setting : if config. cli_unstable ( ) . panic_abort_tests {
912
- PanicSetting :: Inherit
898
+ PanicSetting :: ReadProfile
913
899
} else {
914
900
PanicSetting :: AlwaysUnwind
915
901
} ,
0 commit comments