From 05d95a98414949bebda824d29b240230d8661082 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Mon, 25 Nov 2024 22:20:23 +1100 Subject: [PATCH] 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). --- compiler/rustc_middle/src/mir/coverage.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/rustc_middle/src/mir/coverage.rs b/compiler/rustc_middle/src/mir/coverage.rs index 11a4e7f89a7c..b7410ca5f189 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 {} }