mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Remove outdated proc macro ABIs
This commit is contained in:
parent
e2eaa99ca1
commit
5ad981ba67
54 changed files with 16 additions and 16176 deletions
|
@ -11,14 +11,14 @@ pub mod fixtures {
|
|||
}
|
||||
}
|
||||
|
||||
fn parse_string(code: &str) -> Option<crate::abis::abi_1_48::TokenStream> {
|
||||
fn parse_string(code: &str) -> Option<crate::abis::TestTokenStream> {
|
||||
// This is a bit strange. We need to parse a string into a token stream into
|
||||
// order to create a tt::SubTree from it in fixtures. `into_subtree` is
|
||||
// implemented by all the ABIs we have so we arbitrarily choose one ABI to
|
||||
// write a `parse_string` function for and use that. The tests don't really
|
||||
// care which ABI we're using as the `into_subtree` function isn't part of
|
||||
// the ABI and shouldn't change between ABI versions.
|
||||
crate::abis::abi_1_48::TokenStream::from_str(code).ok()
|
||||
crate::abis::TestTokenStream::from_str(code).ok()
|
||||
}
|
||||
|
||||
pub fn assert_expand(macro_name: &str, ra_fixture: &str, expect: Expect) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue