Skip to content

Commit fa324a8

Browse files
Clarify note in rustc_ast_lowering still applies
Co-authored-by: Ralf Jung <[email protected]>
1 parent 18af91b commit fa324a8

File tree

1 file changed

+3
-2
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+3
-2
lines changed

compiler/rustc_hir_analysis/src/check/check.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ fn add_abi_diag_help<T: EmissionGuarantee>(abi: ExternAbi, diag: &mut Diag<'_, T
5252
}
5353

5454
pub fn check_abi(tcx: TyCtxt<'_>, hir_id: hir::HirId, span: Span, abi: ExternAbi) {
55-
// FIXME: this should be checked earlier, e.g. in `rustc_ast_lowering`, to fix
56-
// things like #86232.
55+
// FIXME: This should be checked earlier, e.g. in `rustc_ast_lowering`, as this
56+
// currently only guards function imports, function definitions, and function pointer types.
57+
// Functions in trait declarations can still use "deprecated" ABIs without any warning.
5758

5859
match AbiMap::from_target(&tcx.sess.target).canonize_abi(abi, false) {
5960
AbiMapping::Direct(..) => (),

0 commit comments

Comments
 (0)