mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
feat: allow attributes on all expressions
Attrs are syntactically valid on any expression, even if they are not allowed semantically everywhere yet.
This commit is contained in:
parent
7dc331faef
commit
56964c9bd3
20 changed files with 303 additions and 335 deletions
|
@ -63,7 +63,7 @@ pub(crate) mod entry_points {
|
|||
pub(crate) use types::type_;
|
||||
|
||||
pub(crate) fn expr(p: &mut Parser) {
|
||||
let _ = expressions::expr_with_attrs(p);
|
||||
let _ = expressions::expr(p);
|
||||
}
|
||||
|
||||
pub(crate) fn stmt(p: &mut Parser) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue