about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-03-06 19:14:03 +0100
committerUrgau <urgau@numericable.fr>2024-03-06 19:14:03 +0100
commitcc38c1e9cb75d12f41cfda3317867759ab895b20 (patch)
tree327a54d9f1248f14f85245452d92c30bf513952e
parent1547c076bfec8abb819d6a81e1e4095d267bd5b4 (diff)
downloadrust-cc38c1e9cb75d12f41cfda3317867759ab895b20.tar.gz
rust-cc38c1e9cb75d12f41cfda3317867759ab895b20.zip
Add #[inline] to BTreeMap::new constructor
-rw-r--r--library/alloc/src/collections/btree/map.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs
index 58ffa9710d3..e99c6220e20 100644
--- a/library/alloc/src/collections/btree/map.rs
+++ b/library/alloc/src/collections/btree/map.rs
@@ -624,6 +624,7 @@ impl<K, V> BTreeMap<K, V> {
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
     #[rustc_const_stable(feature = "const_btree_new", since = "1.66.0")]
+    #[inline]
     #[must_use]
     pub const fn new() -> BTreeMap<K, V> {
         BTreeMap { root: None, length: 0, alloc: ManuallyDrop::new(Global), _marker: PhantomData }