diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-25 22:20:23 +1100 | 
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-30 00:54:53 +1100 | 
| commit | 05d95a98414949bebda824d29b240230d8661082 (patch) | |
| tree | fb1cf2d32b9b5b471016223da99f794fdd975df8 /compiler/rustc_middle/src/mir/coverage.rs | |
| parent | 58e122fef8f430888a3d91b67b7eede4bbd67dd0 (diff) | |
| download | rust-05d95a98414949bebda824d29b240230d8661082.tar.gz rust-05d95a98414949bebda824d29b240230d8661082.zip | |
coverage: Allow niches in counter/expression IDs
There is unlikely to be any practical difference between a counter limit of 2^32 and a counter limit of (2^32 - 256).
Diffstat (limited to 'compiler/rustc_middle/src/mir/coverage.rs')
| -rw-r--r-- | compiler/rustc_middle/src/mir/coverage.rs | 2 | 
1 files changed, 0 insertions, 2 deletions
| diff --git a/compiler/rustc_middle/src/mir/coverage.rs b/compiler/rustc_middle/src/mir/coverage.rs index 11a4e7f89a7..b7410ca5f18 100644 --- a/compiler/rustc_middle/src/mir/coverage.rs +++ b/compiler/rustc_middle/src/mir/coverage.rs @@ -28,7 +28,6 @@ rustc_index::newtype_index! { #[derive(HashStable)] #[encodable] #[orderable] - #[max = 0xFFFF_FFFF] #[debug_format = "CounterId({})"] pub struct CounterId {} } @@ -46,7 +45,6 @@ rustc_index::newtype_index! { #[derive(HashStable)] #[encodable] #[orderable] - #[max = 0xFFFF_FFFF] #[debug_format = "ExpressionId({})"] pub struct ExpressionId {} } | 
