mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-08 19:40:46 +00:00
Correctly parse inner attributes of impl blocks
This commit is contained in:
parent
964086e0d4
commit
73b075c556
3 changed files with 50 additions and 0 deletions
|
@ -78,6 +78,13 @@ pub(crate) fn impl_item_list(p: &mut Parser) {
|
|||
assert!(p.at(L_CURLY));
|
||||
let m = p.start();
|
||||
p.bump();
|
||||
// test impl_inner_attributes
|
||||
// enum F{}
|
||||
// impl F {
|
||||
// //! This is a doc comment
|
||||
// #![doc("This is also a doc comment")]
|
||||
// }
|
||||
attributes::inner_attributes(p);
|
||||
|
||||
while !p.at(EOF) && !p.at(R_CURLY) {
|
||||
if p.at(L_CURLY) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue