We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 090a38c commit 42ed30fCopy full SHA for 42ed30f
src/tools/rust-analyzer/crates/hir-ty/src/consteval.rs
@@ -287,7 +287,7 @@ pub(crate) fn const_eval_discriminant_variant(
287
}
288
289
let repr = db.enum_data(loc.parent).repr;
290
- let is_signed = repr.and_then(|repr| repr.int).is_none_or(|int| int.is_signed());
+ let is_signed = IsNoneOr::is_none_or(repr.and_then(|repr| repr.int), |int| int.is_signed());
291
292
let mir_body = db.monomorphized_mir_body(
293
def,
0 commit comments