Skip to content

rust/RELEASES.md doesn't mention that 1.42 allows custom attributes on modules #77098

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

Closed
Emoun opened this issue Sep 23, 2020 · 2 comments · Fixed by #86427
Closed

rust/RELEASES.md doesn't mention that 1.42 allows custom attributes on modules #77098

Emoun opened this issue Sep 23, 2020 · 2 comments · Fixed by #86427
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-release Relevant to the release subteam, which will review and decide on the PR/issue.

Comments

@Emoun
Copy link

Emoun commented Sep 23, 2020

Pre-1.42, applying an attribute procedural macro to a module was disallowed with the following message:

error[E0658]: custom attributes cannot be applied to modules
...
 = note: for more information, see https://github.com/rust-lang/rust/issues/54727

As an example, see this build using rust 1.34 that exhibits this.

From rust 1.42 and onward this error does not occur, however, this is not detailed in the release notes.

@jonas-schievink jonas-schievink added the E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. label Sep 23, 2020
@jyn514 jyn514 added the T-release Relevant to the release subteam, which will review and decide on the PR/issue. label Sep 23, 2020
@bsikar
Copy link

bsikar commented Apr 29, 2021

Does this still need to be done?

@Emoun
Copy link
Author

Emoun commented Apr 29, 2021

I tried looking for update to the release notes that #78690 did but I cannot seem to find it on current master.
Was that PR not merged?

JohnTitor added a commit to JohnTitor/rust that referenced this issue Jun 21, 2021
@bors bors closed this as completed in 13b0f1a Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-release Relevant to the release subteam, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants