about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/dlist.rs1
-rw-r--r--tests/ui/dlist.stderr12
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/ui/dlist.rs b/tests/ui/dlist.rs
index a8fc06af1d9..5af79f9c58e 100644
--- a/tests/ui/dlist.rs
+++ b/tests/ui/dlist.rs
@@ -1,4 +1,3 @@
-#![feature(alloc)]
 #![feature(associated_type_defaults)]
 #![warn(clippy::linkedlist)]
 #![allow(dead_code, clippy::needless_pass_by_value)]
diff --git a/tests/ui/dlist.stderr b/tests/ui/dlist.stderr
index cc4b8e7a3b4..e4712e5d07f 100644
--- a/tests/ui/dlist.stderr
+++ b/tests/ui/dlist.stderr
@@ -1,5 +1,5 @@
 error: I see you're using a LinkedList! Perhaps you meant some other data structure?
-  --> $DIR/dlist.rs:10:16
+  --> $DIR/dlist.rs:9:16
    |
 LL |     type Baz = LinkedList<u8>;
    |                ^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL |     type Baz = LinkedList<u8>;
    = help: a VecDeque might work
 
 error: I see you're using a LinkedList! Perhaps you meant some other data structure?
-  --> $DIR/dlist.rs:11:12
+  --> $DIR/dlist.rs:10:12
    |
 LL |     fn foo(LinkedList<u8>);
    |            ^^^^^^^^^^^^^^
@@ -16,7 +16,7 @@ LL |     fn foo(LinkedList<u8>);
    = help: a VecDeque might work
 
 error: I see you're using a LinkedList! Perhaps you meant some other data structure?
-  --> $DIR/dlist.rs:12:23
+  --> $DIR/dlist.rs:11:23
    |
 LL |     const BAR: Option<LinkedList<u8>>;
    |                       ^^^^^^^^^^^^^^
@@ -24,7 +24,7 @@ LL |     const BAR: Option<LinkedList<u8>>;
    = help: a VecDeque might work
 
 error: I see you're using a LinkedList! Perhaps you meant some other data structure?
-  --> $DIR/dlist.rs:23:15
+  --> $DIR/dlist.rs:22:15
    |
 LL |     fn foo(_: LinkedList<u8>) {}
    |               ^^^^^^^^^^^^^^
@@ -32,7 +32,7 @@ LL |     fn foo(_: LinkedList<u8>) {}
    = help: a VecDeque might work
 
 error: I see you're using a LinkedList! Perhaps you meant some other data structure?
-  --> $DIR/dlist.rs:26:39
+  --> $DIR/dlist.rs:25:39
    |
 LL | pub fn test(my_favourite_linked_list: LinkedList<u8>) {
    |                                       ^^^^^^^^^^^^^^
@@ -40,7 +40,7 @@ LL | pub fn test(my_favourite_linked_list: LinkedList<u8>) {
    = help: a VecDeque might work
 
 error: I see you're using a LinkedList! Perhaps you meant some other data structure?
-  --> $DIR/dlist.rs:30:29
+  --> $DIR/dlist.rs:29:29
    |
 LL | pub fn test_ret() -> Option<LinkedList<u8>> {
    |                             ^^^^^^^^^^^^^^