Skip to content

Commit 4d619d9

Browse files
committed
Require panic and panic_bounds_check to be non-generic
1 parent 94e940d commit 4d619d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_hir/src/lang_items.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,12 @@ language_item_table! {
281281
// in the sense that a crate is not required to have it defined to use it, but a final product
282282
// is required to define it somewhere. Additionally, there are restrictions on crates that use
283283
// a weak lang item, but do not have it defined.
284-
Panic, sym::panic, panic_fn, Target::Fn, GenericRequirement::None;
284+
Panic, sym::panic, panic_fn, Target::Fn, GenericRequirement::Exact(0);
285285
PanicFmt, sym::panic_fmt, panic_fmt, Target::Fn, GenericRequirement::None;
286286
PanicDisplay, sym::panic_display, panic_display, Target::Fn, GenericRequirement::None;
287287
PanicStr, sym::panic_str, panic_str, Target::Fn, GenericRequirement::None;
288288
ConstPanicFmt, sym::const_panic_fmt, const_panic_fmt, Target::Fn, GenericRequirement::None;
289-
PanicBoundsCheck, sym::panic_bounds_check, panic_bounds_check_fn, Target::Fn, GenericRequirement::None;
289+
PanicBoundsCheck, sym::panic_bounds_check, panic_bounds_check_fn, Target::Fn, GenericRequirement::Exact(0);
290290
PanicInfo, sym::panic_info, panic_info, Target::Struct, GenericRequirement::None;
291291
PanicLocation, sym::panic_location, panic_location, Target::Struct, GenericRequirement::None;
292292
PanicImpl, sym::panic_impl, panic_impl, Target::Fn, GenericRequirement::None;

0 commit comments

Comments
 (0)