fix ZST handling for Windows ABIs on MSVC target

This commit is contained in:
Ralf Jung 2025-01-07 15:50:04 +01:00
parent 67951d946a
commit d760bb6603
10 changed files with 130 additions and 275 deletions

View file

@ -192,6 +192,10 @@ pub fn is_enabled(
s
}
/// Returns whether the ABI is stable to use.
///
/// Note that there is a separate check determining whether the ABI is even supported
/// on the current target; see `fn is_abi_supported` in `rustc_target::spec`.
pub fn is_stable(name: &str) -> Result<(), AbiDisabled> {
match name {
// Stable