only check for mixed deref/normal constructors when needed

This commit is contained in:
dianne
2025-07-04 21:53:03 -07:00
parent 50061f3b11
commit bb64315978
5 changed files with 26 additions and 1 deletions

View File

@@ -927,6 +927,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
scrut_span: rustc_span::Span::default(),
refutable: true,
known_valid_scrutinee: true,
internal_state: Default::default(),
};
let valtree = match self.eval_unevaluated_mir_constant_to_valtree(constant) {