diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2026-03-14 10:06:14 +0900 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-03-17 20:04:11 +0100 |
| commit | 7836ec76ec5cd8d45759a6a360b1fda4829d2734 (patch) | |
| tree | c87b6b5e17a19d5ce6979ec8fafcfa308576103f /arch/v850/kernel/git@git.tavy.me:linux.git | |
| parent | 164f8634bfd8eef7b90c429156c59706635cfb88 (diff) | |
rust: num: make Bounded::get const
There is a need to access the inner value of a `Bounded` in const
context, notably for bitfields and registers. Remove the invariant check
of `Bounded::get`, which allows us to make it const.
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260314-register-v9-4-86805b2f7e9d@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'arch/v850/kernel/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
