about summary refs log tree commit diff
path: root/tests/ui/stability-attribute
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2024-03-31 15:38:22 +0200
committerjoboet <jonasboettiger@icloud.com>2024-03-31 15:38:22 +0200
commit41434ff4a3592f5ae9edcb057dca4ae09824eac7 (patch)
tree26f1f000eb1de5bc57af218c3ad84312d5fcb830 /tests/ui/stability-attribute
parent76684181018640df1769604cd92ed6beb30a27d6 (diff)
downloadrust-41434ff4a3592f5ae9edcb057dca4ae09824eac7.tar.gz
rust-41434ff4a3592f5ae9edcb057dca4ae09824eac7.zip
refer to a different module in UI test
Diffstat (limited to 'tests/ui/stability-attribute')
-rw-r--r--tests/ui/stability-attribute/stability-in-private-module.rs4
-rw-r--r--tests/ui/stability-attribute/stability-in-private-module.stderr16
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/ui/stability-attribute/stability-in-private-module.rs b/tests/ui/stability-attribute/stability-in-private-module.rs
index f12e9198b0d..df94931690b 100644
--- a/tests/ui/stability-attribute/stability-in-private-module.rs
+++ b/tests/ui/stability-attribute/stability-in-private-module.rs
@@ -1,4 +1,4 @@
 fn main() {
-    let _ = std::thread::thread_info::current_thread();
-    //~^ERROR module `thread_info` is private
+    let _ = std::sys::os::errno();
+    //~^ERROR module `sys` is private
 }
diff --git a/tests/ui/stability-attribute/stability-in-private-module.stderr b/tests/ui/stability-attribute/stability-in-private-module.stderr
index 9eb4d3efc8b..e65f8aa9b1f 100644
--- a/tests/ui/stability-attribute/stability-in-private-module.stderr
+++ b/tests/ui/stability-attribute/stability-in-private-module.stderr
@@ -1,13 +1,13 @@
-error[E0603]: module `thread_info` is private
-  --> $DIR/stability-in-private-module.rs:2:26
+error[E0603]: module `sys` is private
+  --> $DIR/stability-in-private-module.rs:2:18
    |
-LL |     let _ = std::thread::thread_info::current_thread();
-   |                          ^^^^^^^^^^^  -------------- function `current_thread` is not publicly re-exported
-   |                          |
-   |                          private module
+LL |     let _ = std::sys::os::errno();
+   |                  ^^^      ----- function `errno` is not publicly re-exported
+   |                  |
+   |                  private module
    |
-note: the module `thread_info` is defined here
-  --> $SRC_DIR/std/src/thread/mod.rs:LL:COL
+note: the module `sys` is defined here
+  --> $SRC_DIR/std/src/lib.rs:LL:COL
 
 error: aborting due to 1 previous error