mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Turn a bug!() into a span_delay_bug()
No reason why this needs to be a `bug!()`.
This commit is contained in:
parent
ba860344e1
commit
8f546aa495
@ -315,7 +315,10 @@ pub(super) fn generics_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Generics {
|
|||||||
|
|
||||||
if is_host_effect {
|
if is_host_effect {
|
||||||
if let Some(idx) = host_effect_index {
|
if let Some(idx) = host_effect_index {
|
||||||
bug!("parent also has host effect param? index: {idx}, def: {def_id:?}");
|
tcx.dcx().span_delayed_bug(
|
||||||
|
param.span,
|
||||||
|
format!("parent also has host effect param? index: {idx}, def: {def_id:?}"),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
host_effect_index = Some(index as usize);
|
host_effect_index = Some(index as usize);
|
||||||
|
Loading…
Reference in New Issue
Block a user