Skip to content

fix(format): recognize combined Rust function modifiers - #1062

Merged
LunaStev merged 3 commits into
wavefnd:masterfrom
hiyouwhatsapp:fix/rust-function-modifiers-890
Nov 1, 2026
Merged

LunaStev merged 3 commits into
wavefnd:masterfrom
hiyouwhatsapp:fix/rust-function-modifiers-890

Conversation

@hiyouwhatsapp

Copy link
Copy Markdown
Contributor

Fixes #890

pub(crate) const fn and other combined modifiers were being missed by the spacing helper, while extern blocks could be picked up as functions

This checks the visibility and modifiers before fn, including restricted pub(in ...) paths and ABI forms

Added regressions for combined qualifiers, bodyless declarations and extern blocks

Testing: isolated modifier checks passed, full repository suite not run locally

@LunaStev LunaStev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes and regression coverage. All 50 checks passed on the reviewed head.

@LunaStev
LunaStev merged commit fa4eea1 into wavefnd:master Nov 1, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recognize Rust function modifier combinations in the spacing helper

2 participants