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

Don't name the output of the const block #47

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

akonradi-signal
Copy link
Contributor

Don't name the output of the const block in which traits are implemented. This doesn't play well with Rust RFC 3373, and isn't necessary for correctness.

Fixes #46

@akonradi-signal
Copy link
Contributor Author

@yaahc can you take a look at this? As noted in #46 (comment) recent nightly Rust versions are seeing a bunch of warnings from code generated by displaydoc.

@mversic
Copy link

mversic commented May 14, 2024

@yaahc can we get some feedback on this issue?

Copy link

@workingjubilee workingjubilee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be correct.

robertbastian pushed a commit to unicode-org/icu4x that referenced this pull request Jun 19, 2024
The displaydoc warnings need
yaahc/displaydoc#47, but I don't think they
break non-clippy CI for us, and I'm working on getting that published.
@Manishearth Manishearth reopened this Jun 20, 2024
Don't name the output of the const block in which traits are
implemented. This doesn't play well with Rust RFC 3373, and isn't
necessary for correctness.

Fixes yaahc#46
@Manishearth Manishearth merged commit 899662c into yaahc:master Jun 20, 2024
8 checks passed
robertbastian pushed a commit to unicode-org/icu4x that referenced this pull request Jun 20, 2024
Should fix the nonlocal impl warnings on nightly/beta.

Pulls in yaahc/displaydoc#47
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.

Future incompatibility with Rust RFC 3373: Avoid non-local definitions in functions
5 participants