Skip to content
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

Make compatible with -Dwarnings #292

Merged
merged 1 commit into from Mar 12, 2024
Merged

Make compatible with -Dwarnings #292

merged 1 commit into from Mar 12, 2024

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Mar 12, 2024

Since rust-lang/rust#121752 in nightly-2024-03-12, rustc reports the following pair of dead_code warnings in build/probe.rs, which makes it look as though error_generic_member_access is not available when using RUSTFLAGS=-Dwarnings (such as in CI).

warning: struct `MyError` is never constructed
  --> build/probe.rs:10:8
   |
10 | struct MyError(Thing);
   |        ^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: struct `Thing` is never constructed
  --> build/probe.rs:11:8
   |
11 | struct Thing;
   |        ^^^^^

@dtolnay dtolnay merged commit 14be209 into master Mar 12, 2024
17 checks passed
@dtolnay dtolnay deleted the deadcode branch March 12, 2024 02:55
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.

None yet

1 participant