mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
collapsible_match
This commit is contained in:
parent
657376858f
commit
4184c6af0d
6 changed files with 50 additions and 65 deletions
|
@ -1387,10 +1387,7 @@ impl Evaluator<'_> {
|
|||
| CastKind::PointerFromExposedAddress => {
|
||||
let current_ty = self.operand_ty(operand, locals)?;
|
||||
let is_signed = match current_ty.kind(Interner) {
|
||||
TyKind::Scalar(s) => match s {
|
||||
chalk_ir::Scalar::Int(_) => true,
|
||||
_ => false,
|
||||
},
|
||||
TyKind::Scalar(chalk_ir::Scalar::Int(_)) => true,
|
||||
_ => false,
|
||||
};
|
||||
let current = pad16(self.eval_operand(operand, locals)?.get(self)?, is_signed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue