Skip to content

Fixes #14185 (regex! is generating unused code warnings) #14647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2014

Conversation

BurntSushi
Copy link
Member

This fix suppresses dead_code warnings from code generated by regex! when
the result of regex! is unused. Correct behavior should be a single
unused variable warning.

Regression tests are included for both let and static bound regex!
values.

see #14185

This fix suppresses dead_code warnings from code generated by regex! when
the result of regex! is unused. Correct behavior should be a single
unused variable warning.

Regression tests are included for both `let` and `static` bound regex!
values.
bors added a commit that referenced this pull request Jun 5, 2014
This fix suppresses dead_code warnings from code generated by regex! when
the result of regex! is unused. Correct behavior should be a single
unused variable warning.

Regression tests are included for both `let` and `static` bound regex!
values.

see #14185
@bors bors closed this Jun 5, 2014
@bors bors merged commit 0f73bf3 into rust-lang:master Jun 5, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
fix: remove extra argument "rustc"

Two extra "rustc"s were accidentally introduced [here](rust-lang/rust-analyzer@33591cd#diff-53e4b6b2c1ff2465d8abd50db160753199426fd788ddcad925752e0838e28de2R156-R169). (I guess because `cmd` is sometimes initialized with a `cargo` under the hood, sometimes `rustc`, thus error-prone?)

One of them has been fixed [here](rust-lang/rust-analyzer@384fa4b#diff-35c78d76dfccbcece2c917b1e5b9a8e0951d5e340cf579e5ce4951142e2077d3R32). This patch fixes the other.
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Apr 22, 2025
r? @ghost

changelog: none
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.

3 participants