about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorGrayJack <gr41.j4ck@gmail.com>2019-08-18 07:13:33 -0300
committerGrayJack <gr41.j4ck@gmail.com>2019-08-18 07:13:33 -0300
commite0f73052a93eee54400b7d4f788181b28bb54b4d (patch)
tree6be4feb086abf96d22b5fce84afeb06353a723ed /src/liballoc
parentef1ecbefb8719e408150738664d443a73f757ffd (diff)
downloadrust-e0f73052a93eee54400b7d4f788181b28bb54b4d.tar.gz
rust-e0f73052a93eee54400b7d4f788181b28bb54b4d.zip
Constify LinkedList new function
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/collections/linked_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs
index a14a3fe9994..816a71f2557 100644
--- a/src/liballoc/collections/linked_list.rs
+++ b/src/liballoc/collections/linked_list.rs
@@ -276,7 +276,7 @@ impl<T> LinkedList<T> {
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
-    pub fn new() -> Self {
+    pub const fn new() -> Self {
         LinkedList {
             head: None,
             tail: None,