rust/compiler/rustc_hir_analysis/src
Matthias Krüger fe54c3a5eb
Rollup merge of #142464 - RalfJung:variadic-fn-abi-error, r=workingjubilee
variadic functions: remove list of supported ABIs from error

I think this list is problematic for multiple reasons:
- It is bound to go out-of-date as it is in a very different place from where we actually define which functions support varagrs (`fn supports_varargs`).
- Many of the ABIs we list only work on some targets; it makes no sense to mention "aapcs" as a possible ABI when building for x86_64. (This led to a lot of confusion in https://github.com/rust-lang/rust/issues/110505 where the author thought they should use "cdecl" and then were promptly told that "cdecl" is not a legal ABI on their target.)
- Typically, when the programmer wrote `extern "foobar"`, it is because they need the "foobar" ABI. It is of little use to tell them that there are other ABIs with which varargs would work.

Cc ``@workingjubilee``
2025-06-14 11:27:11 +02:00
..
check Rollup merge of #140593 - m-ou-se:some-temp, r=Nadrieril 2025-06-14 11:27:09 +02:00
coherence Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
collect Reorder fields in hir::ItemKind variants. 2025-05-30 02:23:20 +10:00
errors Don't compute name of associated item if it's an RPITIT 2025-04-20 16:08:39 +00:00
hir_ty_lowering TypeVisiting binders no longer requires TypeFolding its interior 2025-06-13 17:54:45 +00:00
impl_wf_check convert some GenericArg to Term 2025-04-26 02:05:31 +00:00
outlives Fix some var names 2025-05-27 11:14:47 +00:00
variance Fix some var names 2025-05-27 11:14:47 +00:00
autoderef.rs FIXME(-Znext-solver) triage 2025-06-03 14:23:56 +02:00
check_unused.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
collect.rs Remove lower_arg_ty as all callers were passing None 2025-06-12 15:04:09 +00:00
constrained_generic_params.rs Remove weak alias terminology 2025-04-24 11:59:20 +01:00
delegation.rs Stop relying on rustc_type_ir in non-type-system crates 2025-03-15 06:42:48 +00:00
errors.rs Rollup merge of #142464 - RalfJung:variadic-fn-abi-error, r=workingjubilee 2025-06-14 11:27:11 +02:00
hir_wf_check.rs Reorder fields in hir::ItemKind variants. 2025-05-30 02:23:20 +10:00
impl_wf_check.rs Move name field from AssocItem to AssocKind variants. 2025-04-15 08:07:15 +10:00
lib.rs variadic functions: remove list of supported ABIs from error 2025-06-13 18:10:06 +02:00