Skip to content

Backport delayed external-macro checks - #10

Closed
charliermarsh wants to merge 1 commit into
charlie/backport-clippy-17226from
charlie/clippy-macro-span-shortcuts
Closed

charliermarsh wants to merge 1 commit into
charlie/backport-clippy-17226from
charlie/clippy-macro-span-shortcuts

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Aug 1, 2026 •

Copy link
Copy Markdown
Collaborator

Clippy 1.97 checks external-macro hygiene before cheaper structural conditions have ruled out a diagnostic across many lint passes.

Backport rust-lang/rust-clippy#17294 and move in_external_macro behind those cheaper checks across 33 compatible lint sites. The port is adapted to Rust 1.97.1's older source-text APIs and leaves the incompatible useless_attribute site unchanged. Existing external-macro suppression remains in place for every ported lint.

The complete Clippy UI, configuration, and Cargo diagnostic suites pass with this port in the integrated Ohm stack, without snapshot updates.

changelog: none

@charliermarsh charliermarsh changed the title Backport macro and source-span query shortcuts Backport delayed external-macro checks Aug 2, 2026
@charliermarsh
charliermarsh changed the base branch from charlie/clippy-cheap-lint-guards to charlie/backport-clippy-17226 August 2, 2026 12:45
@charliermarsh
charliermarsh force-pushed the charlie/clippy-macro-span-shortcuts branch from 9c8812f to 4c7ca9d Compare August 2, 2026 19:25
@charliermarsh
charliermarsh marked this pull request as ready for review August 2, 2026 20:24
@charliermarsh
charliermarsh force-pushed the charlie/clippy-macro-span-shortcuts branch from 4c7ca9d to 03255c7 Compare August 2, 2026 21:26
@charliermarsh
charliermarsh force-pushed the charlie/clippy-macro-span-shortcuts branch from 03255c7 to 8453f75 Compare August 12, 2026 14:25
@charliermarsh
charliermarsh force-pushed the charlie/clippy-macro-span-shortcuts branch from 8453f75 to 99cd3b8 Compare August 15, 2026 11:54
@charliermarsh

Copy link
Copy Markdown
Collaborator Author

Superseded by the fresh Rust 1.98 stack in #43.

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.

2 participants