1
Fork 0

Fix tests/ui/privacy/sysroot-private

This commit is contained in:
Alisa Sireneva 2025-01-28 19:07:12 +03:00
parent efaeedef59
commit 644e527c17
3 changed files with 9 additions and 8 deletions

View file

@ -1,11 +1,11 @@
error[E0405]: cannot find trait `Equivalent` in this scope error[E0405]: cannot find trait `Equivalent` in this scope
--> $DIR/sysroot-private.rs:26:18 --> $DIR/sysroot-private.rs:27:18
| |
LL | trait Trait2<K>: Equivalent<K> {} LL | trait Trait2<K>: Equivalent<K> {}
| ^^^^^^^^^^ not found in this scope | ^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `K` in this scope error[E0412]: cannot find type `K` in this scope
--> $DIR/sysroot-private.rs:31:35 --> $DIR/sysroot-private.rs:32:35
| |
LL | fn trait_member<T>(val: &T, key: &K) -> bool { LL | fn trait_member<T>(val: &T, key: &K) -> bool {
| - ^ | - ^
@ -22,13 +22,13 @@ LL | fn trait_member<T, K>(val: &T, key: &K) -> bool {
| +++ | +++
error[E0220]: associated type `ExpressionStack` not found for `Trait` error[E0220]: associated type `ExpressionStack` not found for `Trait`
--> $DIR/sysroot-private.rs:21:31 --> $DIR/sysroot-private.rs:22:31
| |
LL | type AssociatedTy = dyn Trait<ExpressionStack = i32, Bar = i32>; LL | type AssociatedTy = dyn Trait<ExpressionStack = i32, Bar = i32>;
| ^^^^^^^^^^^^^^^ help: `Trait` has the following associated type: `Bar` | ^^^^^^^^^^^^^^^ help: `Trait` has the following associated type: `Bar`
error[E0425]: cannot find function `memchr2` in this scope error[E0425]: cannot find function `memchr2` in this scope
--> $DIR/sysroot-private.rs:39:5 --> $DIR/sysroot-private.rs:40:5
| |
LL | memchr2(b'a', b'b', buf) LL | memchr2(b'a', b'b', buf)
| ^^^^^^^ not found in this scope | ^^^^^^^ not found in this scope

View file

@ -7,6 +7,7 @@
//! of `std`'s dependencies, but may not be robust against dependency upgrades/changes. //! of `std`'s dependencies, but may not be robust against dependency upgrades/changes.
//@ only-unix Windows sysroots seem to not expose this dependency //@ only-unix Windows sysroots seem to not expose this dependency
//@ ignore-emscripten neither does Emscripten
//@ revisions: default rustc_private_enabled //@ revisions: default rustc_private_enabled
// Enabling `rustc_private` should `std`'s dependencies accessible, so they should show up // Enabling `rustc_private` should `std`'s dependencies accessible, so they should show up

View file

@ -1,11 +1,11 @@
error[E0405]: cannot find trait `Equivalent` in this scope error[E0405]: cannot find trait `Equivalent` in this scope
--> $DIR/sysroot-private.rs:26:18 --> $DIR/sysroot-private.rs:27:18
| |
LL | trait Trait2<K>: Equivalent<K> {} LL | trait Trait2<K>: Equivalent<K> {}
| ^^^^^^^^^^ not found in this scope | ^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `K` in this scope error[E0412]: cannot find type `K` in this scope
--> $DIR/sysroot-private.rs:31:35 --> $DIR/sysroot-private.rs:32:35
| |
LL | fn trait_member<T>(val: &T, key: &K) -> bool { LL | fn trait_member<T>(val: &T, key: &K) -> bool {
| - ^ | - ^
@ -22,13 +22,13 @@ LL | fn trait_member<T, K>(val: &T, key: &K) -> bool {
| +++ | +++
error[E0220]: associated type `ExpressionStack` not found for `Trait` error[E0220]: associated type `ExpressionStack` not found for `Trait`
--> $DIR/sysroot-private.rs:21:31 --> $DIR/sysroot-private.rs:22:31
| |
LL | type AssociatedTy = dyn Trait<ExpressionStack = i32, Bar = i32>; LL | type AssociatedTy = dyn Trait<ExpressionStack = i32, Bar = i32>;
| ^^^^^^^^^^^^^^^ there is an associated type `ExpressionStack` in the trait `gimli::read::op::EvaluationStorage` | ^^^^^^^^^^^^^^^ there is an associated type `ExpressionStack` in the trait `gimli::read::op::EvaluationStorage`
error[E0425]: cannot find function `memchr2` in this scope error[E0425]: cannot find function `memchr2` in this scope
--> $DIR/sysroot-private.rs:39:5 --> $DIR/sysroot-private.rs:40:5
| |
LL | memchr2(b'a', b'b', buf) LL | memchr2(b'a', b'b', buf)
| ^^^^^^^ not found in this scope | ^^^^^^^ not found in this scope