summary refs log tree commit diff
path: root/src/test/ui/pub
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-02-23 03:42:32 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-02-26 20:24:02 +0300
commitfa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4 (patch)
tree1eb1a49b4750e2704d3d724fb4a12ea4e2237eff /src/test/ui/pub
parentcdbd8c2f2aa69c4b8fe6f004449440e87c4ab87e (diff)
downloadrust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.tar.gz
rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.zip
Update UI tests
Diffstat (limited to 'src/test/ui/pub')
-rw-r--r--src/test/ui/pub/pub-restricted-error-fn.stderr2
-rw-r--r--src/test/ui/pub/pub-restricted-error.stderr2
-rw-r--r--src/test/ui/pub/pub-restricted-non-path.stderr2
-rw-r--r--src/test/ui/pub/pub-restricted.stderr10
4 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/pub/pub-restricted-error-fn.stderr b/src/test/ui/pub/pub-restricted-error-fn.stderr
index 9cfc3968ab1..aa8b0eaf79f 100644
--- a/src/test/ui/pub/pub-restricted-error-fn.stderr
+++ b/src/test/ui/pub/pub-restricted-error-fn.stderr
@@ -1,7 +1,7 @@
 error: unmatched visibility `pub`
   --> $DIR/pub-restricted-error-fn.rs:13:10
    |
-13 | pub(crate) () fn foo() {} //~ unmatched visibility
+LL | pub(crate) () fn foo() {} //~ unmatched visibility
    |          ^
 
 error: aborting due to previous error
diff --git a/src/test/ui/pub/pub-restricted-error.stderr b/src/test/ui/pub/pub-restricted-error.stderr
index 1bdb47d97d2..e40cd58f87a 100644
--- a/src/test/ui/pub/pub-restricted-error.stderr
+++ b/src/test/ui/pub/pub-restricted-error.stderr
@@ -1,7 +1,7 @@
 error: expected identifier, found `(`
   --> $DIR/pub-restricted-error.rs:16:16
    |
-16 |     pub(crate) () foo: usize, //~ ERROR expected identifier
+LL |     pub(crate) () foo: usize, //~ ERROR expected identifier
    |                ^ expected identifier
 
 error: aborting due to previous error
diff --git a/src/test/ui/pub/pub-restricted-non-path.stderr b/src/test/ui/pub/pub-restricted-non-path.stderr
index e5b13218de1..fc3ca7e93df 100644
--- a/src/test/ui/pub/pub-restricted-non-path.stderr
+++ b/src/test/ui/pub/pub-restricted-non-path.stderr
@@ -1,7 +1,7 @@
 error: expected identifier, found `.`
   --> $DIR/pub-restricted-non-path.rs:13:6
    |
-13 | pub (.) fn afn() {} //~ ERROR expected identifier
+LL | pub (.) fn afn() {} //~ ERROR expected identifier
    |      ^ expected identifier
 
 error: aborting due to previous error
diff --git a/src/test/ui/pub/pub-restricted.stderr b/src/test/ui/pub/pub-restricted.stderr
index 0bedcddc0b4..7005088965d 100644
--- a/src/test/ui/pub/pub-restricted.stderr
+++ b/src/test/ui/pub/pub-restricted.stderr
@@ -1,7 +1,7 @@
 error: incorrect visibility restriction
   --> $DIR/pub-restricted.rs:15:6
    |
-15 | pub (a) fn afn() {} //~ incorrect visibility restriction
+LL | pub (a) fn afn() {} //~ incorrect visibility restriction
    |      ^ help: make this visible only to module `a` with `in`: `in a`
    |
    = help: some possible visibility restrictions are:
@@ -12,7 +12,7 @@ error: incorrect visibility restriction
 error: incorrect visibility restriction
   --> $DIR/pub-restricted.rs:16:6
    |
-16 | pub (b) fn bfn() {} //~ incorrect visibility restriction
+LL | pub (b) fn bfn() {} //~ incorrect visibility restriction
    |      ^ help: make this visible only to module `b` with `in`: `in b`
    |
    = help: some possible visibility restrictions are:
@@ -23,7 +23,7 @@ error: incorrect visibility restriction
 error: incorrect visibility restriction
   --> $DIR/pub-restricted.rs:32:14
    |
-32 |         pub (a) invalid: usize, //~ incorrect visibility restriction
+LL |         pub (a) invalid: usize, //~ incorrect visibility restriction
    |              ^ help: make this visible only to module `a` with `in`: `in a`
    |
    = help: some possible visibility restrictions are:
@@ -34,7 +34,7 @@ error: incorrect visibility restriction
 error: incorrect visibility restriction
   --> $DIR/pub-restricted.rs:41:6
    |
-41 | pub (xyz) fn xyz() {} //~ incorrect visibility restriction
+LL | pub (xyz) fn xyz() {} //~ incorrect visibility restriction
    |      ^^^ help: make this visible only to module `xyz` with `in`: `in xyz`
    |
    = help: some possible visibility restrictions are:
@@ -45,7 +45,7 @@ error: incorrect visibility restriction
 error: visibilities can only be restricted to ancestor modules
   --> $DIR/pub-restricted.rs:33:17
    |
-33 |         pub (in x) non_parent_invalid: usize, //~ ERROR visibilities can only be restricted
+LL |         pub (in x) non_parent_invalid: usize, //~ ERROR visibilities can only be restricted
    |                 ^
 
 error: aborting due to 5 previous errors