]> git.lizzy.rs Git - rust.git/commitdiff
Fix fallout in tests.
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Mon, 21 Aug 2017 21:54:03 +0000 (14:54 -0700)
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Tue, 22 Aug 2017 22:50:21 +0000 (15:50 -0700)
src/test/ui/span/import-ty-params.rs
src/test/ui/span/import-ty-params.stderr
src/test/ui/span/macro-ty-params.rs
src/test/ui/span/macro-ty-params.stderr
src/test/ui/span/visibility-ty-params.rs
src/test/ui/span/visibility-ty-params.stderr

index d1e3d20f4ba1e99a7b20488f3cf351c9fe27342e..793ea68beba139e9defe8eaad0d055e4aae25b9b 100644 (file)
@@ -21,10 +21,10 @@ macro_rules! import {
 }
 
 fn f1() {
-    import! { a::b::c::S<u8> } //~ ERROR generic arguments in import path
+    import! { a::b::c::S<u8> } //~ ERROR unexpected generic arguments in path
 }
 fn f2() {
-    import! { a::b::c::S<> } //~ ERROR generic arguments in import path
+    import! { a::b::c::S<> } //~ ERROR unexpected generic arguments in path
 }
 
 fn main() {}
index de959a14cc5bbea72575b61b5ce2f4bcd4ed4ae9..e2c3e34c47160c100779d2c4b316ce4a557d5ede 100644 (file)
@@ -1,14 +1,14 @@
-error: generic arguments in import path
-  --> $DIR/import-ty-params.rs:24:25
+error: unexpected generic arguments in path
+  --> $DIR/import-ty-params.rs:24:15
    |
-24 |     import! { a::b::c::S<u8> } //~ ERROR generic arguments in import path
-   |                         ^^^^
+24 |     import! { a::b::c::S<u8> } //~ ERROR unexpected generic arguments in path
+   |               ^^^^^^^^^^^^^^
 
-error: generic arguments in import path
-  --> $DIR/import-ty-params.rs:27:25
+error: unexpected generic arguments in path
+  --> $DIR/import-ty-params.rs:27:15
    |
-27 |     import! { a::b::c::S<> } //~ ERROR generic arguments in import path
-   |                         ^^
+27 |     import! { a::b::c::S<> } //~ ERROR unexpected generic arguments in path
+   |               ^^^^^^^^^^^^
 
 error: aborting due to 2 previous errors
 
index 08a7518dff9d740e6fff644b209af5062ed83b0a..c2443b024ceb22899c214e0ab16cf376edd6aaf5 100644 (file)
@@ -16,16 +16,6 @@ macro_rules! m {
 
 fn main() {
     foo::<T>!();
-    //~^ ERROR generic arguments in macro path
-    //~| ERROR generic arguments in macro path
-    //~| ERROR generic arguments in macro path
     foo::<>!();
-    //~^ ERROR generic arguments in macro path
-    //~| ERROR generic arguments in macro path
-    //~| ERROR generic arguments in macro path
     m!(MyTrait<>);
-    //~^ ERROR generic arguments in macro path
-    //~| ERROR generic arguments in macro path
-    //~| ERROR generic arguments in macro path
-    //~| ERROR generic arguments in macro path
 }
index f7115a0482666084017bddb1e35a422e49df569a..1d2f7bb2f07e9777feb72826d7af48ceb8d78f15 100644 (file)
@@ -1,3 +1,15 @@
+error: unexpected generic arguments in path
+  --> $DIR/macro-ty-params.rs:20:8
+   |
+20 |     m!(MyTrait<>);
+   |        ^^^^^^^^^
+
+error: unexpected generic arguments in path
+  --> $DIR/macro-ty-params.rs:20:8
+   |
+20 |     m!(MyTrait<>);
+   |        ^^^^^^^^^
+
 error: generic arguments in macro path
   --> $DIR/macro-ty-params.rs:18:8
    |
@@ -5,16 +17,16 @@ error: generic arguments in macro path
    |        ^^^^^
 
 error: generic arguments in macro path
-  --> $DIR/macro-ty-params.rs:22:8
+  --> $DIR/macro-ty-params.rs:19:8
    |
-22 |     foo::<>!();
+19 |     foo::<>!();
    |        ^^^^
 
 error: generic arguments in macro path
-  --> $DIR/macro-ty-params.rs:26:15
+  --> $DIR/macro-ty-params.rs:20:15
    |
-26 |     m!(MyTrait<>);
+20 |     m!(MyTrait<>);
    |               ^^
 
-error: aborting due to 3 previous errors
+error: aborting due to 5 previous errors
 
index 8d4817e80b95c1d3a35ef01628f6cd032cdd886d..2a4a5edd04c0849d1c0a898ecc961cf85b8177ec 100644 (file)
@@ -13,11 +13,11 @@ macro_rules! m {
 }
 
 struct S<T>(T);
-m!{ S<u8> } //~ ERROR generic arguments in visibility path
+m!{ S<u8> } //~ ERROR unexpected generic arguments in path
 //~^ ERROR expected module, found struct `S`
 
 mod m {
-    m!{ m<> } //~ ERROR generic arguments in visibility path
+    m!{ m<> } //~ ERROR unexpected generic arguments in path
 }
 
 fn main() {}
index 344cf69748eccf9f3ac688be384b1eb786b9bb96..673b9a38e035f3cdf19ed59eba19ade5dc311401 100644 (file)
@@ -1,22 +1,14 @@
-error: generic arguments in visibility path
-  --> $DIR/visibility-ty-params.rs:16:6
-   |
-16 | m!{ S<u8> } //~ ERROR generic arguments in visibility path
-   |      ^^^^
-
-error: generic arguments in visibility path
-  --> $DIR/visibility-ty-params.rs:20:10
+error: unexpected generic arguments in path
+  --> $DIR/visibility-ty-params.rs:16:5
    |
-20 |     m!{ m<> } //~ ERROR generic arguments in visibility path
-   |          ^^
+16 | m!{ S<u8> } //~ ERROR unexpected generic arguments in path
+   |     ^^^^^
 
-error[E0577]: expected module, found struct `S`
-  --> $DIR/visibility-ty-params.rs:16:5
+error: unexpected generic arguments in path
+  --> $DIR/visibility-ty-params.rs:20:9
    |
-16 | m!{ S<u8> } //~ ERROR generic arguments in visibility path
-   |     -^^^^
-   |     |
-   |     did you mean `m`?
+20 |     m!{ m<> } //~ ERROR unexpected generic arguments in path
+   |         ^^^
 
-error: aborting due to 3 previous errors
+error: aborting due to 2 previous errors