mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Provide more complete AST accessors to support usage in rustc
This commit is contained in:
parent
8595693287
commit
60f4d7bd8c
18 changed files with 433 additions and 211 deletions
|
@ -271,7 +271,7 @@ where
|
|||
let pred = predicates.next().unwrap();
|
||||
let mut bounds = pred.type_bound_list().unwrap().bounds();
|
||||
|
||||
assert_eq!("'a", pred.lifetime_token().unwrap().text());
|
||||
assert_eq!("'a", pred.lifetime().unwrap().text());
|
||||
|
||||
assert_bound("'b", bounds.next());
|
||||
assert_bound("'c", bounds.next());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue