2024-08-21 11:56:03 -05:00
|
|
|
//@ revisions: with-remap without-remap
|
|
|
|
//@ compile-flags: -g -Ztranslate-remapped-path-to-local-path=yes
|
|
|
|
//@ [with-remap]compile-flags: --remap-path-prefix={{rust-src-base}}=remapped
|
2024-09-28 14:50:23 -05:00
|
|
|
//@ [with-remap]compile-flags: --remap-path-prefix={{src-base}}=remapped-tests-ui
|
2024-08-21 11:56:03 -05:00
|
|
|
//@ [without-remap]compile-flags:
|
|
|
|
//@ error-pattern: E0507
|
|
|
|
|
|
|
|
// The $SRC_DIR*.rs:LL:COL normalisation doesn't kick in automatically
|
|
|
|
// as the remapped revision will not begin with $SRC_DIR_REAL,
|
|
|
|
// so we have to do it ourselves.
|
|
|
|
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:COL"
|
|
|
|
|
|
|
|
use std::thread;
|
|
|
|
struct Worker {
|
|
|
|
thread: thread::JoinHandle<()>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Drop for Worker {
|
|
|
|
fn drop(&mut self) {
|
|
|
|
self.thread.join().unwrap();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main(){}
|