about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/indexed_vec.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_data_structures/indexed_vec.rs b/src/librustc_data_structures/indexed_vec.rs
index ce2468fb9f1..4b7f55eba06 100644
--- a/src/librustc_data_structures/indexed_vec.rs
+++ b/src/librustc_data_structures/indexed_vec.rs
@@ -51,7 +51,8 @@ macro_rules! newtype_index {
 
         impl $name {
             // HACK use for constants
-            pub const fn const_new(x: u32) -> Self {
+            #[allow(unused)]
+            const fn const_new(x: u32) -> Self {
                 $name(x)
             }
         }