Skip to content

Commit aba23fd

Browse files
Don't mark privacy test as needing GCE
1 parent 251455b commit aba23fd

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

tests/ui/privacy/where-pub-type-impls-priv-trait.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// priv-in-pub lint tests where the private trait bounds a public type
44

55
#![crate_type = "lib"]
6-
#![feature(generic_const_exprs)]
76
#![allow(incomplete_features)]
87

98
struct PrivTy;

tests/ui/privacy/where-pub-type-impls-priv-trait.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
warning: trait `PrivTr` is more private than the item `S`
2-
--> $DIR/where-pub-type-impls-priv-trait.rs:20:1
2+
--> $DIR/where-pub-type-impls-priv-trait.rs:19:1
33
|
44
LL | pub struct S
55
| ^^^^^^^^^^^^ struct `S` is reachable at visibility `pub`
66
|
77
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
8-
--> $DIR/where-pub-type-impls-priv-trait.rs:10:1
8+
--> $DIR/where-pub-type-impls-priv-trait.rs:9:1
99
|
1010
LL | trait PrivTr {}
1111
| ^^^^^^^^^^^^
1212
= note: `#[warn(private_bounds)]` on by default
1313

1414
warning: trait `PrivTr` is more private than the item `E`
15-
--> $DIR/where-pub-type-impls-priv-trait.rs:27:1
15+
--> $DIR/where-pub-type-impls-priv-trait.rs:26:1
1616
|
1717
LL | pub enum E
1818
| ^^^^^^^^^^ enum `E` is reachable at visibility `pub`
1919
|
2020
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
21-
--> $DIR/where-pub-type-impls-priv-trait.rs:10:1
21+
--> $DIR/where-pub-type-impls-priv-trait.rs:9:1
2222
|
2323
LL | trait PrivTr {}
2424
| ^^^^^^^^^^^^
2525

2626
warning: trait `PrivTr` is more private than the item `f`
27-
--> $DIR/where-pub-type-impls-priv-trait.rs:34:1
27+
--> $DIR/where-pub-type-impls-priv-trait.rs:33:1
2828
|
2929
LL | / pub fn f()
3030
LL | |
@@ -33,13 +33,13 @@ LL | | PubTy: PrivTr
3333
| |_________________^ function `f` is reachable at visibility `pub`
3434
|
3535
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
36-
--> $DIR/where-pub-type-impls-priv-trait.rs:10:1
36+
--> $DIR/where-pub-type-impls-priv-trait.rs:9:1
3737
|
3838
LL | trait PrivTr {}
3939
| ^^^^^^^^^^^^
4040

4141
warning: trait `PrivTr` is more private than the item `S`
42-
--> $DIR/where-pub-type-impls-priv-trait.rs:41:1
42+
--> $DIR/where-pub-type-impls-priv-trait.rs:40:1
4343
|
4444
LL | / impl S
4545
LL | |
@@ -48,13 +48,13 @@ LL | | PubTy: PrivTr
4848
| |_________________^ implementation `S` is reachable at visibility `pub`
4949
|
5050
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
51-
--> $DIR/where-pub-type-impls-priv-trait.rs:10:1
51+
--> $DIR/where-pub-type-impls-priv-trait.rs:9:1
5252
|
5353
LL | trait PrivTr {}
5454
| ^^^^^^^^^^^^
5555

5656
warning: trait `PrivTr` is more private than the item `S::f`
57-
--> $DIR/where-pub-type-impls-priv-trait.rs:46:5
57+
--> $DIR/where-pub-type-impls-priv-trait.rs:45:5
5858
|
5959
LL | / pub fn f()
6060
LL | |
@@ -63,7 +63,7 @@ LL | | PubTy: PrivTr
6363
| |_____________________^ associated function `S::f` is reachable at visibility `pub`
6464
|
6565
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
66-
--> $DIR/where-pub-type-impls-priv-trait.rs:10:1
66+
--> $DIR/where-pub-type-impls-priv-trait.rs:9:1
6767
|
6868
LL | trait PrivTr {}
6969
| ^^^^^^^^^^^^

0 commit comments

Comments
 (0)