Skip to content

Commit b728064

Browse files
committed
Add a helpful comment to DeriveResolution::exts.
1 parent 8ece939 commit b728064

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_expand/src/base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,9 @@ pub struct Indeterminate;
10991099
pub struct DeriveResolution {
11001100
pub path: ast::Path,
11011101
pub item: Annotatable,
1102+
// FIXME: currently this field is only used in `is_none`/`is_some` conditions. However, the
1103+
// `Arc<SyntaxExtension>` will be used if the FIXME in `MacroExpander::fully_expand_fragment`
1104+
// is completed.
11021105
pub exts: Option<Arc<SyntaxExtension>>,
11031106
pub is_const: bool,
11041107
}

0 commit comments

Comments
 (0)