mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
use try_from_target_usize instead of try_from_uint
This commit is contained in:
@@ -807,7 +807,7 @@ fn make_mirror_unadjusted(&mut self, expr: &'tcx hir::Expr<'tcx>) -> Expr<'tcx>
|
||||
user_ty: None,
|
||||
};
|
||||
let mk_usize_kind = |val: u64| ExprKind::NonHirLiteral {
|
||||
lit: ScalarInt::try_from_uint(val, tcx.data_layout.pointer_size()).unwrap(),
|
||||
lit: ScalarInt::try_from_target_usize(val, tcx).unwrap(),
|
||||
user_ty: None,
|
||||
};
|
||||
let mk_call =
|
||||
|
||||
Reference in New Issue
Block a user