mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Carify on a semicolon in macro call
This commit is contained in:
parent
a1dc28f236
commit
33f240960d
2 changed files with 13 additions and 3 deletions
|
@ -1830,7 +1830,12 @@ impl NameRef {}
|
|||
/// }
|
||||
/// ❱
|
||||
///
|
||||
/// ❰ foo!() ❱
|
||||
/// // semicolon is a part of `MacroCall` when it is used in item positions
|
||||
/// ❰ foo!(); ❱
|
||||
///
|
||||
/// fn main() {
|
||||
/// ❰ foo!() ❱; // macro call expression position doesn't include the semi
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// [Reference](https://doc.rust-lang.org/reference/macros.html)
|
||||
|
|
|
@ -1554,12 +1554,17 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
/// }
|
||||
/// ❱
|
||||
///
|
||||
/// ❰ foo!() ❱
|
||||
/// // semicolon is a part of `MacroCall` when it is used in item positions
|
||||
/// ❰ foo!(); ❱
|
||||
///
|
||||
/// fn main() {
|
||||
/// ❰ foo!() ❱; // macro call expression position doesn't include the semi
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// [Reference](https://doc.rust-lang.org/reference/macros.html)
|
||||
struct MacroCall: NameOwner, AttrsOwner, DocCommentsOwner {
|
||||
Path, T![!], TokenTree, T![;] // TODO: what is the meaning of the semicolon here?
|
||||
Path, T![!], TokenTree, T![;]
|
||||
}
|
||||
|
||||
/// Attribute.
|
||||
|
|
Loading…
Reference in a new issue