Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 05d95a9

Browse files
committedNov 29, 2024
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).
1 parent 58e122f commit 05d95a9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎compiler/rustc_middle/src/mir/coverage.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ rustc_index::newtype_index! {
2828
#[derive(HashStable)]
2929
#[encodable]
3030
#[orderable]
31-
#[max = 0xFFFF_FFFF]
3231
#[debug_format = "CounterId({})"]
3332
pub struct CounterId {}
3433
}
@@ -46,7 +45,6 @@ rustc_index::newtype_index! {
4645
#[derive(HashStable)]
4746
#[encodable]
4847
#[orderable]
49-
#[max = 0xFFFF_FFFF]
5048
#[debug_format = "ExpressionId({})"]
5149
pub struct ExpressionId {}
5250
}

0 commit comments

Comments
 (0)
Please sign in to comment.