document what the span of UseTreeKind::Nested is
This commit is contained in:
parent
6579ed89f0
commit
3ce9b2f95b
@ -2733,6 +2733,13 @@ pub enum UseTreeKind {
|
||||
/// `use prefix` or `use prefix as rename`
|
||||
Simple(Option<Ident>),
|
||||
/// `use prefix::{...}`
|
||||
///
|
||||
/// The span represents the braces of the nested group and all elements within:
|
||||
///
|
||||
/// ```text
|
||||
/// use foo::{bar, baz};
|
||||
/// ^^^^^^^^^^
|
||||
/// ```
|
||||
Nested { items: ThinVec<(UseTree, NodeId)>, span: Span },
|
||||
/// `use prefix::*`
|
||||
Glob,
|
||||
|
Loading…
Reference in New Issue
Block a user