mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Drop support for non-syroot proc macro ABIs
This commit is contained in:
parent
8ea1afce28
commit
7498ec730e
28 changed files with 140 additions and 4617 deletions
|
@ -5,14 +5,14 @@ use std::str::FromStr;
|
|||
|
||||
use crate::{dylib, proc_macro_test_dylib_path, ProcMacroSrv};
|
||||
|
||||
fn parse_string(code: &str) -> Option<crate::abis::TestTokenStream> {
|
||||
fn parse_string(code: &str) -> Option<crate::server::TokenStream> {
|
||||
// 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::TestTokenStream::from_str(code).ok()
|
||||
crate::server::TokenStream::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