add test to reproduce #137687 and add a hotfix by jdonszelmann · Pull Request #140584 · rust-lang/rust (original) (raw)

bors added a commit to rust-lang-ci/rust that referenced this pull request

May 9, 2025

@bors

…olated_BETA, r=nnethercote

[beta] [also fit for beta rollup] [HOTFIX] Don't delay a bug on malformed meta items involving interpolated tokens

Directly fixes rust-lang#140612.

Outdated Information

Directly fixes the 3 crater regressions reported in rust-lang#137687 (comment) (NB: The containing issue rust-lang#137687 is in fact not an instance of these regressions, see rust-lang#137687 (comment)).

Why is this a separate PR for beta? Well, the crater regressions were already fixed on master albeit unintentionally so, namely by PR rust-lang#124141 which we certainly don't want to backport! So this is simply a hotfix. PR rust-lang#140584 will then provide the regression test for master, too, so it doesn't get 'lost'.

[@]T-release, if/once accepted by T-compiler, this PR will be fit for beta rollup and can be cherry-picked.

Slightly Outdated & Irrelevant Information

FYI, we may also want to (separately) backport PR rust-lang#140584 to [fix] rust-lang#137687 (which, again, is not an instance of the crater regressions) but it's unclear if it's really necessary (since it's fuzzer-generated and I don't know of any real users who are impacted).

cc @jdonszelmann r? fmease