Overzealous unconditional_panic (denied) warning #78803
Labels
A-const-fn
Area: const fn foo(..) {..}. Pure functions which can be applied at compile time.
A-control-flow
Area: Control flow
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
To try and workaround the lack of
const
Result::unwrap
on 1.47 I implemented a basic variant of it manually, but this fails to compile without suppressing theunconditional_panic
warning:This code panicking is conditional on the input
success
value.@rustbot modify labels: +A-const-fn, +A-lint
The text was updated successfully, but these errors were encountered: