fix: support const generic static strs on nightly versions with conflicting feature names (closes #4300) (#4301)

This commit is contained in:
Greg Johnston
2025-09-18 09:09:36 -04:00
committed by GitHub
parent e9ee90c78f
commit 62977a68b0

View File

@@ -10,6 +10,9 @@
all(feature = "nightly", rustc_nightly),
feature(unsized_const_params)
)]
// support for const generic &'static str has now moved back and forth between
// these two features a couple times; we'll just enable both
#![cfg_attr(all(feature = "nightly", rustc_nightly), feature(adt_const_params))]
#![deny(missing_docs)]
/// Commonly-used traits.