Skip to content

Commit 05d95a9

Browse files
committed
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

-2
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)