syntax: Remove AbiSet, use one Abi
This change removes the AbiSet from the AST, converting all usage to have just one Abi value. The current scheme selects a relevant ABI given a list of ABIs based on the target architecture and how relevant each ABI is to that architecture. Instead of this mildly complicated scheme, only one ABI will be allowed in abi strings, and pseudo-abis will be created for special cases as necessary. For example the "system" abi exists for stdcall on win32 and C on win64. Closes #10049
This commit is contained in:
parent
1a1c47b918
commit
57e0908af3
33 changed files with 205 additions and 460 deletions
|
@ -657,7 +657,7 @@ mod test {
|
|||
variadic: false
|
||||
}),
|
||||
ast::ImpureFn,
|
||||
abi::AbiSet::Rust(),
|
||||
abi::Rust,
|
||||
ast::Generics{ // no idea on either of these:
|
||||
lifetimes: Vec::new(),
|
||||
ty_params: OwnedSlice::empty(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue