File tree 3 files changed +8
-5
lines changed
src/tools/compiletest/src
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2332,6 +2332,11 @@ impl<'test> TestCx<'test> {
2332
2332
// eg. /home/user/rust/build
2333
2333
normalize_path ( parent_build_dir, "$BUILD_DIR" ) ;
2334
2334
2335
+ // e.g. /home/user/.cargo
2336
+ if let Ok ( cargo_home) = home:: cargo_home ( ) {
2337
+ normalize_path ( & cargo_home, "$CARGO_HOME" ) ;
2338
+ }
2339
+
2335
2340
if json {
2336
2341
// escaped newlines in json strings should be readable
2337
2342
// in the stderr files. There's no point int being correct,
Original file line number Diff line number Diff line change 1
1
// Regression test for HashMap only impl'ing Send/Sync if its contents do
2
2
3
- //@ normalize-stderr-test: "\S+[\\/]hashbrown\S+" -> "$$HASHBROWN_SRC_LOCATION"
4
-
5
3
use std:: collections:: HashMap ;
6
4
use std:: rc:: Rc ;
7
5
Original file line number Diff line number Diff line change 1
1
error[E0277]: `Rc<()>` cannot be sent between threads safely
2
- --> $DIR/issue-21763.rs:11 :11
2
+ --> $DIR/issue-21763.rs:9 :11
3
3
|
4
4
LL | foo::<HashMap<Rc<()>, Rc<()>>>();
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely
@@ -8,11 +8,11 @@ LL | foo::<HashMap<Rc<()>, Rc<()>>>();
8
8
= note: required because it appears within the type `(Rc<()>, Rc<()>)`
9
9
= note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send`
10
10
note: required because it appears within the type `hashbrown::map::HashMap<Rc<()>, Rc<()>, RandomState>`
11
- --> $HASHBROWN_SRC_LOCATION
11
+ --> $CARGO_HOME/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/map.rs:185:12
12
12
note: required because it appears within the type `HashMap<Rc<()>, Rc<()>>`
13
13
--> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
14
14
note: required by a bound in `foo`
15
- --> $DIR/issue-21763.rs:8 :11
15
+ --> $DIR/issue-21763.rs:6 :11
16
16
|
17
17
LL | fn foo<T: Send>() {}
18
18
| ^^^^ required by this bound in `foo`
You can’t perform that action at this time.
0 commit comments