Skip to content

Commit 4028c67

Browse files
committed
use span_bug instead of bug
1 parent 898d905 commit 4028c67

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+3
-3
lines changed

compiler/rustc_codegen_ssa/src/mir/block.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,9 +1046,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
10461046
let mut lifetime_ends_after_call: Vec<(Bx::Value, Size)> = Vec::new();
10471047
'make_args: for (i, arg) in first_args.iter().enumerate() {
10481048
if tail && matches!(fn_abi.args[i].mode, PassMode::Indirect { .. }) {
1049-
bug!(
1050-
r"Arguments using PassMode::Indirect are currently not supported for tail calls.
1051-
See https://github.com/rust-lang/rust/pull/144232#discussion_r2218543841 for more information."
1049+
span_bug!(
1050+
fn_span,
1051+
"arguments using PassMode::Indirect are currently not supported for tail calls"
10521052
);
10531053
}
10541054

0 commit comments

Comments
 (0)