diff options
| author | Ralf Jung <post@ralfj.de> | 2024-04-18 08:38:37 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-04-19 13:51:52 +0200 |
| commit | 42220f0930a0fb187a75edeeee91d525c326f56d (patch) | |
| tree | 953397255137ac721cf746f09973008efd68db1f /compiler/rustc_const_eval/src/interpret/operand.rs | |
| parent | 5e6184cdb7685cbfceb2cfe80357715d0d04ec53 (diff) | |
| download | rust-42220f0930a0fb187a75edeeee91d525c326f56d.tar.gz rust-42220f0930a0fb187a75edeeee91d525c326f56d.zip | |
ScalarInt: add methods to assert being a (u)int of given size
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/operand.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/operand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index 8283c29207f..604b78358b3 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -249,7 +249,7 @@ impl<'tcx, Prov: Provenance> ImmTy<'tcx, Prov> { } /// Return the immediate as a `ScalarInt`. Ensures that it has the size that the layout of the - /// immediate indcates. + /// immediate indicates. #[inline] pub fn to_scalar_int(&self) -> InterpResult<'tcx, ScalarInt> { let s = self.to_scalar().to_scalar_int()?; |
