Landing: 847d8287d372

Project / Subsystem

gcc / gccrs

Date

2026-06-28

Author

Lucas Ly Ba

Commit

847d8287d372b0f7b3e46272a051adab1bf85f55

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
commit_hash
847d8287d372b0f7b3e46272a051adab1bf85f55
source_type
github
headline
gccrs: add missing_abi lint
tldr
gccrs now warns about extern blocks without an explicit ABI string, promoting explicit ABI declarations.
author
Lucas Ly Ba
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • gccrs
  • rust
  • lint
  • abi
discussion_id_link
bugzilla_pr
date
2026-06-28T00:00:00.000Z

The gccrs compiler introduces a new lint to warn developers when an extern block is declared without an explicit ABI string, such as extern { ... }. This silenty defaults to the C ABI, which Rust deprecates in favor of explicit declarations like extern "C". The change ensures the AST’s has_abi flag is preserved through lowering to enable this new warning.