mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
move mbe to the new API
This commit is contained in:
parent
0efbcdf435
commit
2e3f5af9d4
3 changed files with 72 additions and 72 deletions
|
@ -175,7 +175,7 @@ mod tests {
|
|||
}
|
||||
|
||||
fn create_rules(macro_definition: &str) -> Result<crate::MacroRules, ParseError> {
|
||||
let source_file = ast::SourceFile::parse(macro_definition);
|
||||
let source_file = ast::SourceFile::parse(macro_definition).ok().unwrap();
|
||||
let macro_definition =
|
||||
source_file.syntax().descendants().find_map(ast::MacroCall::cast).unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue