]> git.lizzy.rs Git - rust.git/commitdiff
Update use_suggestion_placement.rs test, removing the FIXME that this PR fixes.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 4 Mar 2022 22:14:34 +0000 (17:14 -0500)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 4 Mar 2022 22:14:34 +0000 (17:14 -0500)
(There is another issue, in that the fixed output is not ideally indented, but
that is a pre-existing issue and should not block this PR.)

src/test/ui/resolve/use_suggestion_placement.fixed
src/test/ui/resolve/use_suggestion_placement.rs
src/test/ui/resolve/use_suggestion_placement.stderr

index 63676327aa041992e249f219cb639294e0b4f222..d1686f7fd2b9cc55a92613411420939c6b44ccac 100644 (file)
@@ -14,13 +14,9 @@ mod m {
 }
 
 mod foo {
-    // FIXME: UsePlacementFinder is broken because active attributes are
-    // removed, and thus the `derive` attribute here is not in the AST.
-    // An inert attribute should work, though.
-    // #[derive(Debug)]
     use std::path::Path;
 
-#[allow(warnings)]
+#[derive(Debug)]
     pub struct Foo;
 
     // test whether the use suggestion isn't
index ecc74d781679d5702ae193fb39b96d3bf274f678..5be91f27092fa1f3c5040473d32b4c69084898e6 100644 (file)
@@ -10,11 +10,7 @@ mod m {
 }
 
 mod foo {
-    // FIXME: UsePlacementFinder is broken because active attributes are
-    // removed, and thus the `derive` attribute here is not in the AST.
-    // An inert attribute should work, though.
-    // #[derive(Debug)]
-    #[allow(warnings)]
+    #[derive(Debug)]
     pub struct Foo;
 
     // test whether the use suggestion isn't
index 217c08a560b77f7b1f754bef703097233e96beba..0aadd82f6c29253cd290b5f39c864af59b91f9a2 100644 (file)
@@ -1,5 +1,5 @@
 error[E0412]: cannot find type `Path` in this scope
-  --> $DIR/use_suggestion_placement.rs:22:16
+  --> $DIR/use_suggestion_placement.rs:18:16
    |
 LL |     type Bar = Path;
    |                ^^^^ not found in this scope
@@ -10,7 +10,7 @@ LL |     use std::path::Path;
    |
 
 error[E0425]: cannot find value `A` in this scope
-  --> $DIR/use_suggestion_placement.rs:27:13
+  --> $DIR/use_suggestion_placement.rs:23:13
    |
 LL |     let _ = A;
    |             ^ not found in this scope
@@ -21,7 +21,7 @@ LL | use m::A;
    |
 
 error[E0412]: cannot find type `HashMap` in this scope
-  --> $DIR/use_suggestion_placement.rs:32:23
+  --> $DIR/use_suggestion_placement.rs:28:23
    |
 LL |     type Dict<K, V> = HashMap<K, V>;
    |                       ^^^^^^^ not found in this scope