Skip to content

Commit 644e527

Browse files
committed
Fix tests/ui/privacy/sysroot-private
1 parent efaeede commit 644e527

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Diff for: tests/ui/privacy/sysroot-private.default.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0405]: cannot find trait `Equivalent` in this scope
2-
--> $DIR/sysroot-private.rs:26:18
2+
--> $DIR/sysroot-private.rs:27:18
33
|
44
LL | trait Trait2<K>: Equivalent<K> {}
55
| ^^^^^^^^^^ not found in this scope
66

77
error[E0412]: cannot find type `K` in this scope
8-
--> $DIR/sysroot-private.rs:31:35
8+
--> $DIR/sysroot-private.rs:32:35
99
|
1010
LL | fn trait_member<T>(val: &T, key: &K) -> bool {
1111
| - ^
@@ -22,13 +22,13 @@ LL | fn trait_member<T, K>(val: &T, key: &K) -> bool {
2222
| +++
2323

2424
error[E0220]: associated type `ExpressionStack` not found for `Trait`
25-
--> $DIR/sysroot-private.rs:21:31
25+
--> $DIR/sysroot-private.rs:22:31
2626
|
2727
LL | type AssociatedTy = dyn Trait<ExpressionStack = i32, Bar = i32>;
2828
| ^^^^^^^^^^^^^^^ help: `Trait` has the following associated type: `Bar`
2929

3030
error[E0425]: cannot find function `memchr2` in this scope
31-
--> $DIR/sysroot-private.rs:39:5
31+
--> $DIR/sysroot-private.rs:40:5
3232
|
3333
LL | memchr2(b'a', b'b', buf)
3434
| ^^^^^^^ not found in this scope

Diff for: tests/ui/privacy/sysroot-private.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//! of `std`'s dependencies, but may not be robust against dependency upgrades/changes.
88
99
//@ only-unix Windows sysroots seem to not expose this dependency
10+
//@ ignore-emscripten neither does Emscripten
1011
//@ revisions: default rustc_private_enabled
1112

1213
// Enabling `rustc_private` should `std`'s dependencies accessible, so they should show up

Diff for: tests/ui/privacy/sysroot-private.rustc_private_enabled.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0405]: cannot find trait `Equivalent` in this scope
2-
--> $DIR/sysroot-private.rs:26:18
2+
--> $DIR/sysroot-private.rs:27:18
33
|
44
LL | trait Trait2<K>: Equivalent<K> {}
55
| ^^^^^^^^^^ not found in this scope
66

77
error[E0412]: cannot find type `K` in this scope
8-
--> $DIR/sysroot-private.rs:31:35
8+
--> $DIR/sysroot-private.rs:32:35
99
|
1010
LL | fn trait_member<T>(val: &T, key: &K) -> bool {
1111
| - ^
@@ -22,13 +22,13 @@ LL | fn trait_member<T, K>(val: &T, key: &K) -> bool {
2222
| +++
2323

2424
error[E0220]: associated type `ExpressionStack` not found for `Trait`
25-
--> $DIR/sysroot-private.rs:21:31
25+
--> $DIR/sysroot-private.rs:22:31
2626
|
2727
LL | type AssociatedTy = dyn Trait<ExpressionStack = i32, Bar = i32>;
2828
| ^^^^^^^^^^^^^^^ there is an associated type `ExpressionStack` in the trait `gimli::read::op::EvaluationStorage`
2929

3030
error[E0425]: cannot find function `memchr2` in this scope
31-
--> $DIR/sysroot-private.rs:39:5
31+
--> $DIR/sysroot-private.rs:40:5
3232
|
3333
LL | memchr2(b'a', b'b', buf)
3434
| ^^^^^^^ not found in this scope

0 commit comments

Comments
 (0)