-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
regression: inline, used attr no longer accepted in more places #82668
Labels
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
relnotes
Marks issues that should be documented in the release notes of the next release.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone
Comments
Closed
That's surprising, iirc the crater runs we did during the PRs didn't notice any regressions 🤔 |
inline PR is #77015 |
(removing |
austin-ray
added a commit
to austin-ray/weechat-matrix-rs
that referenced
this issue
Apr 4, 2021
Rust 1.51 has a regression restricting the `#[used]` attribute[0] to static fields. As such, it's not possible to build `weechat-matrix-rs` on stable or nightly Rust. According to the `#[used]` RFC[1], the attribute is for static variables so it's unclear if the new behavior is the correct one. [0] rust-lang/rust#82668 [1] https://rust-lang.github.io/rfcs/2386-used.html
austin-ray
added a commit
to austin-ray/weechat-matrix-rs
that referenced
this issue
Apr 4, 2021
Rust 1.51 has a regression restricting the `#[used]` attribute[0] to static fields. As such, it's not possible to build `weechat-matrix-rs` on stable or nightly Rust. According to the `#[used]` RFC[1], the attribute is for static variables so it's unclear if the new behavior is the correct one. However, to prevent clippy from complaining during CI, replace with `#[allow(dead_code)]` [0] rust-lang/rust#82668 [1] https://rust-lang.github.io/rfcs/2386-used.html
austin-ray
added a commit
to austin-ray/weechat-matrix-rs
that referenced
this issue
Apr 7, 2021
Rust 1.51 has a regression restricting the `#[used]` attribute[0] to static fields. As such, it's not possible to build `weechat-matrix-rs` on stable or nightly Rust. According to the `#[used]` RFC[1], the attribute is for static variables so it's unclear if the new behavior is the correct one. However, to prevent clippy from complaining during CI, replace with `#[allow(dead_code)]` [0] rust-lang/rust#82668 [1] https://rust-lang.github.io/rfcs/2386-used.html
Moved this to regression-from-stable-to-stable as it affects 1.51. Feel free to close the issue if appropriate. |
Closing - this was expected/accepted breakage. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
relnotes
Marks issues that should be documented in the release notes of the next release.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
inline:
used:
Filing primarily so that we can get this documented in release notes as a compatibility note (if it isn't already); cc @XAMPPRocky
The text was updated successfully, but these errors were encountered: