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

std cleanup #14200

Closed
wants to merge 3 commits into from
Closed

std cleanup #14200

wants to merge 3 commits into from

Conversation

brson
Copy link
Contributor

@brson brson commented May 14, 2014

Commits are self-explanatory.

@alexcrichton
Copy link
Member

r=me with fix from travis

flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 20, 2025
…-lang#14200)

By default, do not lint `.unwrap()` and `.expect(…)` in always const
contexts, as a failure would be detected at compile time anyway.

New options `allow_expect_in_consts` and `allow_unwrap_in_consts`,
defaulting to `true`, can be turned unset to still lint in always const
contexts.

Close rust-lang#14198

changelog: [`unwrap_used`, `expect_used`]: add new option to lint in
always constant contexts
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.

2 participants