revert accidental change
This commit is contained in:
parent
8bf32513ed
commit
dea3e131d5
3 changed files with 5 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ pub fn report_error<'tcx>(
|
|||
helps.push(note_span!(span, "{:?} was deallocated here:", alloc_id));
|
||||
}
|
||||
}
|
||||
AbiMismatchArgument { .. } => {
|
||||
AbiMismatchArgument { .. } | AbiMismatchReturn { .. } => {
|
||||
helps.push(note!("this means these two types are not *guaranteed* to be ABI-compatible across all targets"));
|
||||
helps.push(note!("if you think this code should be accepted anyway, please report an issue with Miri"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ LL | g()
|
|||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
= help: this means these two types are not *guaranteed* to be ABI-compatible across all targets
|
||||
= help: if you think this code should be accepted anyway, please report an issue with Miri
|
||||
= note: BACKTRACE:
|
||||
= note: inside `main` at tests/fail/function_pointers/abi_mismatch_return_type.rs:LL:CC
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ LL | close(fd);
|
|||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
= help: this means these two types are not *guaranteed* to be ABI-compatible across all targets
|
||||
= help: if you think this code should be accepted anyway, please report an issue with Miri
|
||||
= note: BACKTRACE:
|
||||
= note: inside `main` at tests/fail/shims/return_type_mismatch.rs:LL:CC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue