Skip to content

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