Skip to content

Commit f36d716

Browse files
ast_lowering: Explain why we double-error for unstable arch-specific ABIs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 97b74a8 commit f36d716

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+2
-1
lines changed

compiler/rustc_ast_lowering/src/item.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
16371637
}
16381638
err.emit();
16391639
}
1640-
// stability gate even things that are already errored on
1640+
// Show required feature gate even if we already errored, as the user is likely to build the code
1641+
// for the actually intended target next and then they will need the feature gate.
16411642
gate_unstable_abi(tcx.sess, tcx.features(), span, extern_abi);
16421643
extern_abi
16431644
}

0 commit comments

Comments
 (0)