Skip to content

Commit 3305708

Browse files
committed
ast lowering stuff
1 parent e1f55b0 commit 3305708

File tree

1 file changed

+6
-0
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+6
-0
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,9 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
24132413
expr.id,
24142414
&se.qself,
24152415
&se.path,
2416+
// FIXME(mgca): we may want this to be `Optional` instead, but
2417+
// we would also need to make sure that HIR ty lowering errors
2418+
// when these paths wind up in signatures.
24162419
ParamMode::Explicit,
24172420
AllowReturnTypeNotation::No,
24182421
ImplTraitContext::Disallowed(ImplTraitPosition::Path),
@@ -2421,6 +2424,9 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
24212424

24222425
let fields = self.arena.alloc_from_iter(se.fields.iter().map(|f| {
24232426
let hir_id = self.lower_node_id(f.id);
2427+
// FIXME(mgca): This might result in lowering attributes that
2428+
// then go unused as the `Target::ExprField` is not actually
2429+
// corresponding to `Node::ExprField`.
24242430
self.lower_attrs(hir_id, &f.attrs, f.span, Target::ExprField);
24252431

24262432
let expr = if let ExprKind::ConstBlock(anon_const) = &f.expr.kind {

0 commit comments

Comments
 (0)