diff options
Diffstat (limited to 'src/test/ui/pub')
| -rw-r--r-- | src/test/ui/pub/pub-restricted-error.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/pub/pub-restricted-error.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/pub/pub-restricted.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/pub/pub-restricted.stderr | 12 |
4 files changed, 7 insertions, 11 deletions
diff --git a/src/test/ui/pub/pub-restricted-error.rs b/src/test/ui/pub/pub-restricted-error.rs index 30a112d2271..60fce3f51b8 100644 --- a/src/test/ui/pub/pub-restricted-error.rs +++ b/src/test/ui/pub/pub-restricted-error.rs @@ -1,5 +1,3 @@ -#![feature(pub_restricted)] - struct Bar(pub(())); struct Foo { diff --git a/src/test/ui/pub/pub-restricted-error.stderr b/src/test/ui/pub/pub-restricted-error.stderr index d856833d04f..95bf498c7f7 100644 --- a/src/test/ui/pub/pub-restricted-error.stderr +++ b/src/test/ui/pub/pub-restricted-error.stderr @@ -1,5 +1,5 @@ error: expected identifier, found `(` - --> $DIR/pub-restricted-error.rs:6:16 + --> $DIR/pub-restricted-error.rs:4:16 | LL | pub(crate) () foo: usize, | ^ expected identifier diff --git a/src/test/ui/pub/pub-restricted.rs b/src/test/ui/pub/pub-restricted.rs index b4bc4a08c7b..bcd21082f75 100644 --- a/src/test/ui/pub/pub-restricted.rs +++ b/src/test/ui/pub/pub-restricted.rs @@ -1,5 +1,3 @@ -#![feature(pub_restricted)] - mod a {} pub (a) fn afn() {} //~ incorrect visibility restriction diff --git a/src/test/ui/pub/pub-restricted.stderr b/src/test/ui/pub/pub-restricted.stderr index 56ff104b4fe..4694530e548 100644 --- a/src/test/ui/pub/pub-restricted.stderr +++ b/src/test/ui/pub/pub-restricted.stderr @@ -1,5 +1,5 @@ error[E0704]: incorrect visibility restriction - --> $DIR/pub-restricted.rs:5:6 + --> $DIR/pub-restricted.rs:3:6 | LL | pub (a) fn afn() {} | ^ help: make this visible only to module `a` with `in`: `in a` @@ -10,7 +10,7 @@ LL | pub (a) fn afn() {} `pub(in path::to::module)`: visible only on the specified path error[E0704]: incorrect visibility restriction - --> $DIR/pub-restricted.rs:6:6 + --> $DIR/pub-restricted.rs:4:6 | LL | pub (b) fn bfn() {} | ^ help: make this visible only to module `b` with `in`: `in b` @@ -21,7 +21,7 @@ LL | pub (b) fn bfn() {} `pub(in path::to::module)`: visible only on the specified path error[E0704]: incorrect visibility restriction - --> $DIR/pub-restricted.rs:7:6 + --> $DIR/pub-restricted.rs:5:6 | LL | pub (crate::a) fn cfn() {} | ^^^^^^^^ help: make this visible only to module `crate::a` with `in`: `in crate::a` @@ -32,7 +32,7 @@ LL | pub (crate::a) fn cfn() {} `pub(in path::to::module)`: visible only on the specified path error[E0704]: incorrect visibility restriction - --> $DIR/pub-restricted.rs:24:14 + --> $DIR/pub-restricted.rs:22:14 | LL | pub (a) invalid: usize, | ^ help: make this visible only to module `a` with `in`: `in a` @@ -43,7 +43,7 @@ LL | pub (a) invalid: usize, `pub(in path::to::module)`: visible only on the specified path error[E0704]: incorrect visibility restriction - --> $DIR/pub-restricted.rs:33:6 + --> $DIR/pub-restricted.rs:31:6 | LL | pub (xyz) fn xyz() {} | ^^^ help: make this visible only to module `xyz` with `in`: `in xyz` @@ -54,7 +54,7 @@ LL | pub (xyz) fn xyz() {} `pub(in path::to::module)`: visible only on the specified path error[E0742]: visibilities can only be restricted to ancestor modules - --> $DIR/pub-restricted.rs:25:17 + --> $DIR/pub-restricted.rs:23:17 | LL | pub (in x) non_parent_invalid: usize, | ^ |
