Track whether module declarations are inline (fixes #12590)
This commit is contained in:
parent
b8d45da274
commit
c3afb16e16
9 changed files with 114 additions and 10 deletions
|
@ -1841,6 +1841,8 @@ pub struct Mod {
|
|||
/// to the last token in the external file.
|
||||
pub inner: Span,
|
||||
pub items: Vec<P<Item>>,
|
||||
/// For `mod foo;` inline is false, for `mod foo { .. }` it is true.
|
||||
pub inline: bool,
|
||||
}
|
||||
|
||||
/// Foreign module declaration.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue