Skip to content

Implement Div and DivAssign for PathBuf #62989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Implement Div and DivAssign for PathBuf #62989

wants to merge 5 commits into from

Conversation

1011X
Copy link
Contributor

@1011X 1011X commented Jul 25, 2019

This change implements the / and /= operators for concatenating paths to a PathBuf, similar to how + and += currently concatenate strings for String.

This would make it easier to build longer path values inline while improving readability. These operators have precedence in Python 3 and C++17, and in this implementation they can take either a Path, str, or OsStr.

Examples:

let home = PathBuf::from("/home");
let user = Path::new("user");
assert_eq!(Path::new("/home/user/documents"), home / user / "documents");
let mut base = PathBuf::from("/");
base /= "usr";
base /= OsStr::new("local");
assert_eq!(Path::from("/usr/local"), base);

I chose to submit a PR since that was the easier thing to do here, but if an RFC is preferred beforehand, I can do that too.

@rust-highfive
Copy link
Contributor

r? @dtolnay

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 25, 2019
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! The implementation looks good.

@sfackler sfackler added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label Jul 25, 2019
@sfackler

This comment has been minimized.

@dtolnay
Copy link
Member

dtolnay commented Jul 25, 2019

@rfcbot fcp close

I am not a fan of these. :(

Does someone else from @rust-lang/libs want to make a case that we should have division operator on paths?

let home = PathBuf::from("/home");
let user = Path::new("user");
assert_eq!(Path::new("/home/user/documents"), home / user / "documents");

@rfcbot
Copy link
Collaborator

rfcbot commented Jul 25, 2019

Team member @dtolnay has proposed to close this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-close This PR / issue is in PFCP or FCP with a disposition to close it. labels Jul 25, 2019
@dtolnay
Copy link
Member

dtolnay commented Jul 25, 2019

FWIW, in trybuild I use a macro for this.
https://github.com/dtolnay/trybuild/blob/1.0.9/src/path.rs#L42

let p = path!(project.dir / ".cargo" / "config");

I think that's more acceptable to me because the macro call puts it in the realm of domain-specific language rather than division.

@rust-highfive
Copy link
Contributor

The job x86_64-gnu-llvm-6.0 of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-07-25T21:05:12.6667657Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-07-25T21:05:12.6893009Z ##[command]git config gc.auto 0
2019-07-25T21:05:12.6956108Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-07-25T21:05:12.7036320Z ##[command]git config --get-all http.proxy
2019-07-25T21:05:13.5080362Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/62989/merge:refs/remotes/pull/62989/merge
---
2019-07-25T21:05:48.8059152Z do so (now or later) by using -b with the checkout command again. Example:
2019-07-25T21:05:48.8059440Z 
2019-07-25T21:05:48.8059788Z   git checkout -b <new-branch-name>
2019-07-25T21:05:48.8059822Z 
2019-07-25T21:05:48.8059876Z HEAD is now at d993f5488 Merge 806a718f10f21de00c966ea328e4ddc173d4d7c6 into eedf6ce4ef54bb03818ab21d714f1b9f13a6b31c
2019-07-25T21:05:48.8189898Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-07-25T21:05:48.8192700Z ==============================================================================
2019-07-25T21:05:48.8192757Z Task         : Bash
2019-07-25T21:05:48.8192825Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-07-25T22:06:50.4803188Z .................................................................................................... 200/5856
2019-07-25T22:06:54.8893544Z .................................................................................................... 300/5856
2019-07-25T22:06:58.8517614Z .................................................................................................... 400/5856
2019-07-25T22:07:02.7698049Z .................................................................................................... 500/5856
2019-07-25T22:07:06.7258348Z ........................................................................i........................... 600/5856
2019-07-25T22:07:16.1401161Z .................................................................................................... 800/5856
2019-07-25T22:07:21.9922376Z .................................................................................................... 900/5856
2019-07-25T22:07:27.2068310Z ...................................................................................................i 1000/5856
2019-07-25T22:07:27.2068310Z ...................................................................................................i 1000/5856
2019-07-25T22:07:32.9925203Z ...........i........................................................................................ 1100/5856
2019-07-25T22:07:37.1629600Z .............................iiiii.................................................................. 1200/5856
2019-07-25T22:07:43.4756158Z .................................................................................................... 1400/5856
2019-07-25T22:07:46.3423538Z .................................................................................................... 1500/5856
2019-07-25T22:07:50.3595088Z .................................................................................................... 1600/5856
2019-07-25T22:07:53.1779875Z .................................................................................................... 1700/5856
2019-07-25T22:07:53.1779875Z .................................................................................................... 1700/5856
2019-07-25T22:07:56.7531831Z .....................................................................i.............................. 1800/5856
2019-07-25T22:08:05.7923983Z .................................................................................................... 2000/5856
2019-07-25T22:08:10.2222006Z .................................................................................................... 2100/5856
2019-07-25T22:08:14.1482550Z .................................................................................................... 2200/5856
2019-07-25T22:08:14.1482550Z .................................................................................................... 2200/5856
2019-07-25T22:08:18.1055056Z .....................................................i.............................................. 2300/5856
2019-07-25T22:08:28.2931846Z .................................................................................................... 2500/5856
2019-07-25T22:08:32.5688358Z .................................................................................................... 2600/5856
2019-07-25T22:08:37.9493241Z .................................................................................................... 2700/5856
2019-07-25T22:08:42.0209910Z .................................................................................................... 2800/5856
2019-07-25T22:08:42.0209910Z .................................................................................................... 2800/5856
2019-07-25T22:08:46.6917392Z .................................................................................................... 2900/5856
2019-07-25T22:08:52.1176428Z .................................................................................................... 3000/5856
2019-07-25T22:08:56.7329870Z .................................................................................................... 3100/5856
2019-07-25T22:09:02.2604553Z .................................................................................................... 3200/5856
2019-07-25T22:09:06.3295338Z .................................................................................................... 3300/5856
2019-07-25T22:09:10.4048401Z .................................................................................................... 3400/5856
2019-07-25T22:09:15.8075659Z .................................................................................................... 3500/5856
2019-07-25T22:09:19.8168907Z ....................i............................................................................... 3600/5856
2019-07-25T22:09:24.1890185Z ..............................................................................................ii...i 3700/5856
2019-07-25T22:09:28.2228823Z ..ii................................................................................................ 3800/5856
2019-07-25T22:09:37.3541918Z .................................................................................................... 4000/5856
2019-07-25T22:09:37.3541918Z .................................................................................................... 4000/5856
2019-07-25T22:09:41.4908671Z .............ii..................................................................................... 4100/5856
2019-07-25T22:09:43.6490109Z ..................................i................................................................. 4200/5856
2019-07-25T22:09:45.8493348Z .................................................................................................... 4300/5856
2019-07-25T22:09:48.2635421Z .i.................................................................................................. 4400/5856
2019-07-25T22:10:10.9771515Z .................................................................................................... 4600/5856
2019-07-25T22:10:14.9031650Z .................................................................................................... 4700/5856
2019-07-25T22:10:18.6912886Z .................................................................................................... 4800/5856
2019-07-25T22:10:23.6278874Z .................................................................................................... 4900/5856
---
2019-07-25T22:11:11.8839114Z Check compiletest suite=run-pass mode=run-pass (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:11:12.1268245Z 
2019-07-25T22:11:12.1268843Z running 2905 tests
2019-07-25T22:11:27.6056900Z .................................................................................................... 100/2905
2019-07-25T22:11:43.8741563Z ............................................................................i....................... 200/2905
2019-07-25T22:12:09.3383127Z .................................................................................................... 400/2905
2019-07-25T22:12:21.5555472Z .................................................................................................... 500/2905
2019-07-25T22:12:36.7108465Z .................................................................................................... 600/2905
2019-07-25T22:12:59.3412006Z .................................................................................................... 700/2905
2019-07-25T22:12:59.3412006Z .................................................................................................... 700/2905
2019-07-25T22:13:14.0659802Z .................................................................................................... 800/2905
2019-07-25T22:13:25.8938293Z .................................................................................................... 900/2905
2019-07-25T22:13:44.5997961Z .................................................................................................... 1000/2905
2019-07-25T22:13:59.2707261Z .................................................................................................... 1100/2905
2019-07-25T22:14:11.0154703Z .................................................................................................... 1200/2905
2019-07-25T22:14:24.0743927Z .................................................................................................... 1300/2905
2019-07-25T22:14:40.8354290Z .......ii........................................................................................... 1400/2905
2019-07-25T22:14:53.8847632Z .................................................................................................... 1500/2905
2019-07-25T22:15:06.8197877Z ...........................................................i.......i................................ 1600/2905
2019-07-25T22:15:40.8076051Z .................................................................................................... 1800/2905
2019-07-25T22:15:40.8076051Z .................................................................................................... 1800/2905
2019-07-25T22:15:56.8365992Z ...........................................................................................i........ 1900/2905
2019-07-25T22:16:25.8578928Z ...............................................................i.................................... 2000/2905
2019-07-25T22:17:11.3179654Z .................................................................................................... 2200/2905
2019-07-25T22:17:26.2834881Z ..................................................................................................ii 2300/2905
2019-07-25T22:17:46.4893863Z .................................................................................................... 2400/2905
2019-07-25T22:18:01.1356736Z .................................................................................................... 2500/2905
---
2019-07-25T22:20:25.5968283Z  finished in 34.837
2019-07-25T22:20:25.6173955Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:20:25.7955256Z 
2019-07-25T22:20:25.7956395Z running 146 tests
2019-07-25T22:20:29.2059409Z i....iii......iii..iiii....i............................i..i................i....i.........ii.i.i..i 100/146
2019-07-25T22:20:31.1039722Z iii..............i.........iii.i......ii......
2019-07-25T22:20:31.1041621Z 
2019-07-25T22:20:31.1045235Z  finished in 5.486
2019-07-25T22:20:31.1240616Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:20:31.2856220Z 
2019-07-25T22:20:31.2856220Z 
2019-07-25T22:20:31.2862705Z running 39 tests
2019-07-25T22:20:33.4186574Z i.........i......................i.....
2019-07-25T22:20:33.4188329Z 
2019-07-25T22:20:33.4189604Z  finished in 2.295
2019-07-25T22:20:33.4399814Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:20:33.5967572Z 
2019-07-25T22:20:33.5967572Z 
2019-07-25T22:20:33.5968808Z running 9 tests
2019-07-25T22:20:33.5969749Z iiiiiiiii
2019-07-25T22:20:33.5970221Z 
2019-07-25T22:20:33.5975840Z  finished in 0.157
2019-07-25T22:20:33.6187044Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:20:33.7841955Z 
---
2019-07-25T22:20:52.4954057Z  finished in 18.877
2019-07-25T22:20:52.5172128Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:20:52.6798927Z 
2019-07-25T22:20:52.6800323Z running 122 tests
2019-07-25T22:21:17.6645160Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....i..........iiii..........i...ii...i.......ii.i 100/122
2019-07-25T22:21:22.6473627Z .i.i......iii.i.....ii
2019-07-25T22:21:22.6477246Z 
2019-07-25T22:21:22.6477430Z  finished in 30.130
2019-07-25T22:21:22.6490284Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:21:22.6490797Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-07-25T22:25:15.8017194Z     Finished release [optimized] target(s) in 2m 51s
2019-07-25T22:25:15.8305343Z Check compiletest suite=rustdoc mode=rustdoc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-25T22:25:16.0179351Z 
2019-07-25T22:25:16.0180405Z running 315 tests
2019-07-25T22:26:37.5911540Z ....................................i............................................................... 100/315
2019-07-25T22:27:50.6415611Z ....................................................i............................................... 200/315
2019-07-25T22:29:11.0163716Z ...............
2019-07-25T22:29:11.0165578Z test result: ok. 313 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out
2019-07-25T22:29:11.0165681Z 
2019-07-25T22:29:11.0165813Z  finished in 235.186
---
2019-07-25T22:33:26.8897218Z 
2019-07-25T22:33:26.9007243Z 
2019-07-25T22:33:26.9007549Z running 444 tests
2019-07-25T22:33:47.8688590Z .................................................................................................... 100/444
2019-07-25T22:34:05.7437639Z ...................................................................................i................ 200/444
2019-07-25T22:34:36.6281394Z .................................................................................................... 400/444
2019-07-25T22:34:43.7346514Z ............................................
2019-07-25T22:34:43.7346684Z test result: ok. 443 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out
2019-07-25T22:34:43.7346780Z 
---
2019-07-25T22:36:06.4407240Z running 961 tests
2019-07-25T22:36:06.4566798Z .................................................................................................... 100/961
2019-07-25T22:36:06.4708140Z .................................................................................................... 200/961
2019-07-25T22:36:06.4811843Z .................................................................................................... 300/961
2019-07-25T22:36:06.5852306Z ............................................................................................ii...... 400/961
2019-07-25T22:36:06.7100326Z .................................................................................................... 600/961
2019-07-25T22:36:06.7197340Z .................................................................................................... 700/961
2019-07-25T22:36:06.7482325Z .................................................................................................... 800/961
2019-07-25T22:36:07.3126333Z .................................................................................................... 900/961
2019-07-25T22:36:07.3126333Z .................................................................................................... 900/961
2019-07-25T22:36:08.4363004Z .............................................................
2019-07-25T22:36:08.4363413Z test result: ok. 959 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out
2019-07-25T22:36:08.4365378Z 
2019-07-25T22:36:08.4368668Z    Doc-tests core
2019-07-25T22:36:12.7801670Z 
2019-07-25T22:36:12.7802175Z running 2379 tests
2019-07-25T22:36:26.1230161Z ......iiiii......................................................................................... 100/2379
2019-07-25T22:36:38.7520488Z .........................................................................ii......................... 200/2379
2019-07-25T22:36:53.4161371Z ...............................................................................................i.... 300/2379
2019-07-25T22:37:09.7542628Z .................................................................................................... 400/2379
2019-07-25T22:37:21.5554553Z ..............................i..i.................iiii............................................. 500/2379
2019-07-25T22:37:46.0761657Z .................................................................................................... 700/2379
2019-07-25T22:37:58.2784500Z .................................................................................................... 800/2379
2019-07-25T22:38:10.8956684Z .................................................................................................... 900/2379
2019-07-25T22:38:23.3038002Z .................................................................................................... 1000/2379
---
2019-07-25T22:40:17.1998310Z .................................................................................................... 1900/2379
2019-07-25T22:40:31.7113461Z .................................................................................................... 2000/2379
2019-07-25T22:40:44.9195639Z .................................................................................................... 2100/2379
2019-07-25T22:41:00.9765149Z .................................................................................................... 2200/2379
2019-07-25T22:41:18.2255375Z ........................................................................................i........... 2300/2379
2019-07-25T22:41:28.9709753Z test result: ok. 2364 passed; 0 failed; 15 ignored; 0 measured; 0 filtered out
2019-07-25T22:41:28.9710058Z 
2019-07-25T22:41:29.0034586Z  finished in 405.254
2019-07-25T22:41:29.0035491Z Testing panic_abort stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---
2019-07-25T22:43:36.9048606Z ............................................... 300/756
2019-07-25T22:43:36.9072451Z thread '<unnamed>' panicked at 'explicit panic', src/libstd/io/stdio.rs:854:13
2019-07-25T22:43:36.9648324Z .................................................................................................... 400/756
2019-07-25T22:43:39.0506023Z .................................................................................................... 500/756
2019-07-25T22:43:39.0795036Z .............thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-25T22:43:39.0809717Z ....thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1051:5
2019-07-25T22:43:39.0826890Z thread '<unnamed>.' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-25T22:43:39.0847078Z ......thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-25T22:43:39.3503550Z ..........................................thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-25T22:43:39.3557227Z ...........thread '.<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-25T22:43:39.3571945Z .thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-25T22:43:41.4037157Z ...............thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/mutex.rs:629:13
2019-07-25T22:43:41.4037673Z ......thread '<unnamed>' panicked at 'test panic in inner thread to poison mutex', src/libstd/sync/mutex.rs:584:13
2019-07-25T22:43:41.4038413Z thread '<unnamed>' panicked at 'test panic in inner thread to poison mutex', src/libstd/sync/mutex.rs:561:13
2019-07-25T22:43:41.4038810Z thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/mutex.rs:689:13
---
2019-07-25T22:43:50.9275840Z 
2019-07-25T22:43:50.9276750Z running 1012 tests
2019-07-25T22:44:15.9752752Z i................................................................................................... 100/1012
2019-07-25T22:44:29.7107985Z .................................................................................................... 200/1012
2019-07-25T22:44:39.0104109Z .................iii......i......i...i......i....................................................... 300/1012
2019-07-25T22:44:44.1487116Z .................................................................................................... 400/1012
2019-07-25T22:44:52.1960624Z ................................i..i..........................................iiii.......ii......... 500/1012
2019-07-25T22:45:07.3789681Z .................................................................................................... 700/1012
2019-07-25T22:45:07.3789681Z .................................................................................................... 700/1012
2019-07-25T22:45:15.9280539Z .......FFF............................iiii.......................................................... 800/1012
2019-07-25T22:45:33.1419013Z .................................................................................................... 900/1012
2019-07-25T22:45:41.6249856Z ............................................................iiii.................................... 1000/1012
2019-07-25T22:45:42.1481904Z failures:
2019-07-25T22:45:42.1482338Z 
2019-07-25T22:45:42.1483342Z ---- path.rs - path::PathBuf (line 1725) stdout ----
2019-07-25T22:45:42.1483631Z error[E0433]: failed to resolve: use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1483631Z error[E0433]: failed to resolve: use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1484124Z  --> path.rs:1726:9
2019-07-25T22:45:42.1484334Z   |
2019-07-25T22:45:42.1484901Z 4 | let a = PathBuf::from("hello");
2019-07-25T22:45:42.1485142Z   |         ^^^^^^^ use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1485442Z error[E0433]: failed to resolve: use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1485951Z  --> path.rs:1727:9
2019-07-25T22:45:42.1486162Z   |
2019-07-25T22:45:42.1486162Z   |
2019-07-25T22:45:42.1486342Z 5 | let b = PathBuf::from("world");
2019-07-25T22:45:42.1486523Z   |         ^^^^^^^ use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1486810Z error: aborting due to 2 previous errors
2019-07-25T22:45:42.1486964Z 
2019-07-25T22:45:42.1487427Z For more information about this error, try `rustc --explain E0433`.
2019-07-25T22:45:42.1487956Z Couldn't compile the test.
2019-07-25T22:45:42.1487956Z Couldn't compile the test.
2019-07-25T22:45:42.1488456Z ---- path.rs - path::PathBuf (line 1734) stdout ----
2019-07-25T22:45:42.1488969Z error[E0433]: failed to resolve: use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1489449Z  --> path.rs:1735:9
2019-07-25T22:45:42.1489693Z   |
2019-07-25T22:45:42.1489857Z 4 | let a = PathBuf::from("hello");
2019-07-25T22:45:42.1490055Z   |         ^^^^^^^ use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1490376Z error[E0433]: failed to resolve: use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1490835Z  --> path.rs:1736:9
2019-07-25T22:45:42.1491042Z   |
2019-07-25T22:45:42.1491042Z   |
2019-07-25T22:45:42.1491203Z 5 | let b = PathBuf::from("world");
2019-07-25T22:45:42.1491389Z   |         ^^^^^^^ use of undeclared type or module `PathBuf`
2019-07-25T22:45:42.1491689Z error: aborting due to 2 previous errors
2019-07-25T22:45:42.1491829Z 
2019-07-25T22:45:42.1492333Z For more information about this error, try `rustc --explain E0433`.
2019-07-25T22:45:42.1492800Z Couldn't compile the test.
2019-07-25T22:45:42.1492800Z Couldn't compile the test.
2019-07-25T22:45:42.1493373Z ---- path.rs - path::PathBuf (line 1743) stdout ----
2019-07-25T22:45:42.1493618Z error[E0433]: failed to resolve: use of undeclared type or module `Path`
2019-07-25T22:45:42.1494110Z  --> path.rs:1744:9
2019-07-25T22:45:42.1494334Z   |
2019-07-25T22:45:42.1494836Z 4 | let a = Path::new("hello");
2019-07-25T22:45:42.1495030Z   |         ^^^^ use of undeclared type or module `Path`
2019-07-25T22:45:42.1495353Z error[E0433]: failed to resolve: use of undeclared type or module `Path`
2019-07-25T22:45:42.1495825Z  --> path.rs:1745:9
2019-07-25T22:45:42.1496051Z   |
2019-07-25T22:45:42.1496051Z   |
2019-07-25T22:45:42.1496213Z 5 | let b = Path::new("world");
2019-07-25T22:45:42.1496371Z   |         ^^^^ use of undeclared type or module `Path`
2019-07-25T22:45:42.1496681Z error: aborting due to 2 previous errors
2019-07-25T22:45:42.1496813Z 
2019-07-25T22:45:42.1497268Z For more information about this error, try `rustc --explain E0433`.
2019-07-25T22:45:42.1497754Z Couldn't compile the test.
---
2019-07-25T22:45:42.1500137Z 
2019-07-25T22:45:42.1685073Z error: test failed, to rerun pass '--doc'
2019-07-25T22:45:42.1707247Z 
2019-07-25T22:45:42.1707360Z 
2019-07-25T22:45:42.1708233Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-j" "2" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/checkout/src/libstd/Cargo.toml" "-p" "std" "--" "--quiet"
2019-07-25T22:45:42.1708406Z 
2019-07-25T22:45:42.1708437Z 
2019-07-25T22:45:42.1718457Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-07-25T22:45:42.1718542Z Build completed unsuccessfully in 1:33:16
2019-07-25T22:45:42.1718542Z Build completed unsuccessfully in 1:33:16
2019-07-25T22:45:42.7033537Z ##[error]Bash exited with code '1'.
2019-07-25T22:45:42.7070505Z ##[section]Starting: Checkout
2019-07-25T22:45:42.7072409Z ==============================================================================
2019-07-25T22:45:42.7072463Z Task         : Get sources
2019-07-25T22:45:42.7072510Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@nagisa
Copy link
Member

nagisa commented Jul 25, 2019

Note that PathBuf implements FromIterator which allows for ["a", "b", "c", ...].iter().collect::<PathBuf>() to be written, which should be appropriate in a large majority of scenarios where this sugar is desirable.

@rust-highfive
Copy link
Contributor

The job x86_64-gnu-llvm-6.0 of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-07-26T00:39:05.8467508Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-07-26T00:39:05.8670089Z ##[command]git config gc.auto 0
2019-07-26T00:39:05.8734309Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-07-26T00:39:05.8791103Z ##[command]git config --get-all http.proxy
2019-07-26T00:39:05.8920977Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/62989/merge:refs/remotes/pull/62989/merge
---
2019-07-26T00:39:40.4195837Z do so (now or later) by using -b with the checkout command again. Example:
2019-07-26T00:39:40.4195864Z 
2019-07-26T00:39:40.4196047Z   git checkout -b <new-branch-name>
2019-07-26T00:39:40.4196240Z 
2019-07-26T00:39:40.4196283Z HEAD is now at ec3456e96 Merge b1e35efbb1a15e85dbdfb85aaf2f8bbd8b40ee78 into 890881f8f4c77e8670d4b32104c0325fcfefc90f
2019-07-26T00:39:40.4353680Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-07-26T00:39:40.4356449Z ==============================================================================
2019-07-26T00:39:40.4356501Z Task         : Bash
2019-07-26T00:39:40.4356541Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-07-26T01:38:19.8042715Z .................................................................................................... 200/5856
2019-07-26T01:38:24.1139115Z .................................................................................................... 300/5856
2019-07-26T01:38:27.8788379Z .................................................................................................... 400/5856
2019-07-26T01:38:31.6713776Z .................................................................................................... 500/5856
2019-07-26T01:38:35.4757202Z ........................................................................i........................... 600/5856
2019-07-26T01:38:44.4105811Z .................................................................................................... 800/5856
2019-07-26T01:38:50.0311560Z .................................................................................................... 900/5856
2019-07-26T01:38:55.0035421Z ...................................................................................................i 1000/5856
2019-07-26T01:38:55.0035421Z ...................................................................................................i 1000/5856
2019-07-26T01:39:00.5509739Z ...........i........................................................................................ 1100/5856
2019-07-26T01:39:04.4878578Z .............................iiiii.................................................................. 1200/5856
2019-07-26T01:39:10.5148058Z .................................................................................................... 1400/5856
2019-07-26T01:39:13.2158633Z .................................................................................................... 1500/5856
2019-07-26T01:39:16.9956358Z .................................................................................................... 1600/5856
2019-07-26T01:39:19.7091983Z .................................................................................................... 1700/5856
2019-07-26T01:39:19.7091983Z .................................................................................................... 1700/5856
2019-07-26T01:39:23.6269002Z .....................................................................i.............................. 1800/5856
2019-07-26T01:39:32.1046195Z .................................................................................................... 2000/5856
2019-07-26T01:39:36.3983340Z .................................................................................................... 2100/5856
2019-07-26T01:39:40.0938827Z .................................................................................................... 2200/5856
2019-07-26T01:39:40.0938827Z .................................................................................................... 2200/5856
2019-07-26T01:39:43.9406647Z .....................................................i.............................................. 2300/5856
2019-07-26T01:39:53.8151237Z .................................................................................................... 2500/5856
2019-07-26T01:39:57.9745802Z .................................................................................................... 2600/5856
2019-07-26T01:40:03.1223891Z .................................................................................................... 2700/5856
2019-07-26T01:40:06.9464820Z .................................................................................................... 2800/5856
2019-07-26T01:40:06.9464820Z .................................................................................................... 2800/5856
2019-07-26T01:40:11.3644718Z .................................................................................................... 2900/5856
2019-07-26T01:40:16.5346813Z .................................................................................................... 3000/5856
2019-07-26T01:40:20.9854841Z .................................................................................................... 3100/5856
2019-07-26T01:40:26.2320671Z .................................................................................................... 3200/5856
2019-07-26T01:40:29.7512969Z .................................................................................................... 3300/5856
2019-07-26T01:40:33.3858108Z .................................................................................................... 3400/5856
2019-07-26T01:40:38.5298953Z .................................................................................................... 3500/5856
2019-07-26T01:40:42.1545294Z .....................i.............................................................................. 3600/5856
2019-07-26T01:40:46.2464317Z ..............................................................................................ii...i 3700/5856
2019-07-26T01:40:50.0003082Z ..ii................................................................................................ 3800/5856
2019-07-26T01:40:58.7003444Z .................................................................................................... 4000/5856
2019-07-26T01:40:58.7003444Z .................................................................................................... 4000/5856
2019-07-26T01:41:02.5252656Z .............ii..................................................................................... 4100/5856
2019-07-26T01:41:04.5580635Z ..................................i................................................................. 4200/5856
2019-07-26T01:41:06.6958423Z .................................................................................................... 4300/5856
2019-07-26T01:41:08.9488969Z .i.................................................................................................. 4400/5856
2019-07-26T01:41:31.1512031Z .................................................................................................... 4600/5856
2019-07-26T01:41:34.7886711Z .................................................................................................... 4700/5856
2019-07-26T01:41:38.4243000Z .................................................................................................... 4800/5856
2019-07-26T01:41:43.1180316Z .................................................................................................... 4900/5856
---
2019-07-26T01:42:28.0196594Z Check compiletest suite=run-pass mode=run-pass (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:42:28.2420730Z 
2019-07-26T01:42:28.2421546Z running 2905 tests
2019-07-26T01:42:43.0761110Z .................................................................................................... 100/2905
2019-07-26T01:42:58.6412815Z ............................................................................i....................... 200/2905
2019-07-26T01:43:22.9687989Z .................................................................................................... 400/2905
2019-07-26T01:43:34.8262452Z .................................................................................................... 500/2905
2019-07-26T01:43:49.2543926Z .................................................................................................... 600/2905
2019-07-26T01:44:10.9891901Z .................................................................................................... 700/2905
2019-07-26T01:44:10.9891901Z .................................................................................................... 700/2905
2019-07-26T01:44:24.9534265Z .................................................................................................... 800/2905
2019-07-26T01:44:36.1523173Z .................................................................................................... 900/2905
2019-07-26T01:44:54.0775288Z .................................................................................................... 1000/2905
2019-07-26T01:45:08.1881084Z .................................................................................................... 1100/2905
2019-07-26T01:45:19.2986106Z .................................................................................................... 1200/2905
2019-07-26T01:45:31.6752432Z .................................................................................................... 1300/2905
2019-07-26T01:45:47.7809385Z .......ii........................................................................................... 1400/2905
2019-07-26T01:46:00.2480721Z .................................................................................................... 1500/2905
2019-07-26T01:46:12.6518012Z ...........................................................i.......i................................ 1600/2905
2019-07-26T01:46:44.7726280Z .................................................................................................... 1800/2905
2019-07-26T01:46:44.7726280Z .................................................................................................... 1800/2905
2019-07-26T01:46:59.8504584Z ...........................................................................................i........ 1900/2905
2019-07-26T01:47:28.3871853Z ...............................................................i.................................... 2000/2905
2019-07-26T01:48:11.6812969Z .................................................................................................... 2200/2905
2019-07-26T01:48:25.9289277Z ..................................................................................................ii 2300/2905
2019-07-26T01:48:45.1363271Z .................................................................................................... 2400/2905
2019-07-26T01:48:59.5849428Z .................................................................................................... 2500/2905
---
2019-07-26T01:51:19.7792585Z  finished in 34.303
2019-07-26T01:51:19.7965747Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:51:19.9556564Z 
2019-07-26T01:51:19.9557143Z running 146 tests
2019-07-26T01:51:23.2917648Z i....iii......iii..iiii....i............................i..i................i....i.........ii.i.i..i 100/146
2019-07-26T01:51:25.2034171Z iii..............i.........iii.i......ii......
2019-07-26T01:51:25.2038054Z 
2019-07-26T01:51:25.2040719Z  finished in 5.407
2019-07-26T01:51:25.2302516Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:51:25.3995879Z 
2019-07-26T01:51:25.3995879Z 
2019-07-26T01:51:25.3997438Z running 39 tests
2019-07-26T01:51:27.4638643Z i.........i......................i.....
2019-07-26T01:51:27.4639204Z 
2019-07-26T01:51:27.4642021Z  finished in 2.233
2019-07-26T01:51:27.4832436Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:51:27.6487206Z 
2019-07-26T01:51:27.6487206Z 
2019-07-26T01:51:27.6487975Z running 9 tests
2019-07-26T01:51:27.6488746Z iiiiiiiii
2019-07-26T01:51:27.6489160Z 
2019-07-26T01:51:27.6489206Z  finished in 0.165
2019-07-26T01:51:27.6683280Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:51:27.8401867Z 
---
2019-07-26T01:51:46.0585364Z  finished in 18.390
2019-07-26T01:51:46.0775650Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:51:46.2396595Z 
2019-07-26T01:51:46.2396824Z running 122 tests
2019-07-26T01:52:09.9998971Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....i..........iiii..........i...ii...i.......ii.i 100/122
2019-07-26T01:52:14.5971115Z .i.i......iii.i.....ii
2019-07-26T01:52:14.5973419Z 
2019-07-26T01:52:14.5976994Z  finished in 28.520
2019-07-26T01:52:14.5983613Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:52:14.5984322Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-07-26T01:55:58.7174583Z     Finished release [optimized] target(s) in 2m 44s
2019-07-26T01:55:58.7428209Z Check compiletest suite=rustdoc mode=rustdoc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-26T01:55:58.9107428Z 
2019-07-26T01:55:58.9108045Z running 315 tests
2019-07-26T01:57:16.0836470Z ....................................i............................................................... 100/315
2019-07-26T01:58:25.2889372Z ....................................................i............................................... 200/315
2019-07-26T01:59:41.4917820Z ...............
2019-07-26T01:59:41.4918939Z test result: ok. 313 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out
2019-07-26T01:59:41.4919052Z 
2019-07-26T01:59:41.4924278Z  finished in 222.749
---
2019-07-26T02:03:48.8860673Z 
2019-07-26T02:03:48.8955489Z 
2019-07-26T02:03:48.8955838Z running 444 tests
2019-07-26T02:04:08.7876361Z .................................................................................................... 100/444
2019-07-26T02:04:25.7412314Z ...................................................................................i................ 200/444
2019-07-26T02:04:54.9025587Z .................................................................................................... 400/444
2019-07-26T02:05:01.6736234Z ............................................
2019-07-26T02:05:01.6736790Z test result: ok. 443 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out
2019-07-26T02:05:01.6736972Z 
---
2019-07-26T02:06:20.2229111Z running 961 tests
2019-07-26T02:06:20.2369285Z .................................................................................................... 100/961
2019-07-26T02:06:20.2502280Z .................................................................................................... 200/961
2019-07-26T02:06:20.2609171Z .................................................................................................... 300/961
2019-07-26T02:06:20.3462719Z ............................................................................................ii...... 400/961
2019-07-26T02:06:20.4597610Z .................................................................................................... 600/961
2019-07-26T02:06:20.4649224Z .................................................................................................... 700/961
2019-07-26T02:06:20.4826415Z .................................................................................................... 800/961
2019-07-26T02:06:20.9900591Z .................................................................................................... 900/961
2019-07-26T02:06:20.9900591Z .................................................................................................... 900/961
2019-07-26T02:06:22.1483381Z .............................................................
2019-07-26T02:06:22.1483513Z test result: ok. 959 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out
2019-07-26T02:06:22.1483553Z 
2019-07-26T02:06:22.1485069Z    Doc-tests core
2019-07-26T02:06:26.0889495Z 
2019-07-26T02:06:26.0889814Z running 2379 tests
2019-07-26T02:06:38.3931543Z ......iiiii......................................................................................... 100/2379
2019-07-26T02:06:50.7302572Z .........................................................................ii......................... 200/2379
2019-07-26T02:07:04.4315700Z ...............................................................................................i.... 300/2379
2019-07-26T02:07:19.7956039Z .................................................................................................... 400/2379
2019-07-26T02:07:31.0496956Z ..............................i..i.................iiii............................................. 500/2379
2019-07-26T02:07:53.8832466Z .................................................................................................... 700/2379
2019-07-26T02:08:05.5458757Z .................................................................................................... 800/2379
2019-07-26T02:08:17.2321443Z .................................................................................................... 900/2379
2019-07-26T02:08:28.7986239Z .................................................................................................... 1000/2379
---
2019-07-26T02:10:16.2019064Z .................................................................................................... 1900/2379
2019-07-26T02:10:29.8473018Z .................................................................................................... 2000/2379
2019-07-26T02:10:42.5094760Z .................................................................................................... 2100/2379
2019-07-26T02:10:57.4213036Z .................................................................................................... 2200/2379
2019-07-26T02:11:13.8989342Z ........................................................................................i........... 2300/2379
2019-07-26T02:11:24.3019785Z test result: ok. 2364 passed; 0 failed; 15 ignored; 0 measured; 0 filtered out
2019-07-26T02:11:24.3019832Z 
2019-07-26T02:11:24.3283232Z  finished in 382.641
2019-07-26T02:11:24.3299813Z Testing panic_abort stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---
2019-07-26T02:13:27.5104666Z ........................................... 300/756
2019-07-26T02:13:27.5105291Z thread '<unnamed>' panicked at 'explicit panic', src/libstd/io/stdio.rs:854:13
2019-07-26T02:13:27.5105745Z .................................................................................................... 400/756
2019-07-26T02:13:28.9797904Z .................................................................................................... 500/756
2019-07-26T02:13:28.9997476Z .............thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-26T02:13:29.0028373Z ....thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1051:5
2019-07-26T02:13:29.0048046Z thread '<unnamed>..' panicked at '.called `Result::unwrap()` on an `Err` value: RecvError', .src/libcore/result.rs:1051:5
2019-07-26T02:13:29.0064120Z .....thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-26T02:13:29.2174833Z ........................................thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-26T02:13:29.2191238Z ....thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-26T02:13:29.2213195Z .......thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libcore/result.rs:1051:5
2019-07-26T02:13:31.2934787Z ...............thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/mutex.rs:629:13
2019-07-26T02:13:31.2943734Z ..thread '<unnamed>' panicked at 'test panic in inner thread to poison mutex', src/libstd/sync/mutex.rs:584:13
2019-07-26T02:13:31.2953516Z ...thread '<unnamed>' panicked at 'test panic in inner thread to poison mutex', src/libstd/sync/mutex.rs:561:13
2019-07-26T02:13:31.2959971Z .thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/mutex.rs:689:13
---
2019-07-26T02:13:40.6978774Z 
2019-07-26T02:13:40.6979395Z running 1012 tests
2019-07-26T02:14:04.6068490Z i................................................................................................... 100/1012
2019-07-26T02:14:17.8339658Z .................................................................................................... 200/1012
2019-07-26T02:14:26.5953524Z .................iii......i......i...i......i....................................................... 300/1012
2019-07-26T02:14:31.4427373Z .................................................................................................... 400/1012
2019-07-26T02:14:39.0113357Z ................................i..i..........................................iiii.......ii......... 500/1012
2019-07-26T02:14:53.4005926Z .................................................................................................... 700/1012
2019-07-26T02:14:53.4005926Z .................................................................................................... 700/1012
2019-07-26T02:15:01.5592136Z .......FFF............................iiii.......................................................... 800/1012
2019-07-26T02:15:19.0383049Z .................................................................................................... 900/1012
2019-07-26T02:15:26.2163405Z ............................................................iiii.................................... 1000/1012
2019-07-26T02:15:26.6996149Z failures:
2019-07-26T02:15:26.6996271Z 
2019-07-26T02:15:26.6997007Z ---- path.rs - path::PathBuf (line 1725) stdout ----
2019-07-26T02:15:26.6997007Z ---- path.rs - path::PathBuf (line 1725) stdout ----
2019-07-26T02:15:26.6997265Z error[E0369]: binary operation `+` cannot be applied to type `std::path::PathBuf`
2019-07-26T02:15:26.6997636Z  --> path.rs:1729:11
2019-07-26T02:15:26.6997689Z   |
2019-07-26T02:15:26.6997890Z 7 | let c = a + &b;
2019-07-26T02:15:26.6998817Z   |         - ^ -- &std::path::PathBuf
2019-07-26T02:15:26.6998920Z   |         std::path::PathBuf
2019-07-26T02:15:26.6999164Z   |
2019-07-26T02:15:26.6999164Z   |
2019-07-26T02:15:26.6999325Z   = note: an implementation of `std::ops::Add` might be missing for `std::path::PathBuf`
2019-07-26T02:15:26.6999500Z error: aborting due to previous error
2019-07-26T02:15:26.6999531Z 
2019-07-26T02:15:26.6999855Z For more information about this error, try `rustc --explain E0369`.
2019-07-26T02:15:26.7000101Z Couldn't compile the test.
2019-07-26T02:15:26.7000101Z Couldn't compile the test.
2019-07-26T02:15:26.7000328Z ---- path.rs - path::PathBuf (line 1735) stdout ----
2019-07-26T02:15:26.7000396Z error[E0369]: binary operation `+` cannot be applied to type `std::path::PathBuf`
2019-07-26T02:15:26.7000622Z  --> path.rs:1739:19
2019-07-26T02:15:26.7000686Z   |
2019-07-26T02:15:26.7000731Z 7 | let c = a.clone() + &b;
2019-07-26T02:15:26.7000970Z   |         --------- ^ -- &std::path::PathBuf
2019-07-26T02:15:26.7001080Z   |         std::path::PathBuf
2019-07-26T02:15:26.7001123Z   |
2019-07-26T02:15:26.7001123Z   |
2019-07-26T02:15:26.7001191Z   = note: an implementation of `std::ops::Add` might be missing for `std::path::PathBuf`
2019-07-26T02:15:26.7001272Z error: aborting due to previous error
2019-07-26T02:15:26.7001304Z 
2019-07-26T02:15:26.7001577Z For more information about this error, try `rustc --explain E0369`.
2019-07-26T02:15:26.7001797Z Couldn't compile the test.
2019-07-26T02:15:26.7001797Z Couldn't compile the test.
2019-07-26T02:15:26.7002345Z ---- path.rs - path::PathBuf (line 1745) stdout ----
2019-07-26T02:15:26.7002430Z error[E0369]: binary operation `+` cannot be applied to type `std::path::PathBuf`
2019-07-26T02:15:26.7003050Z  --> path.rs:1749:25
2019-07-26T02:15:26.7003290Z   |
2019-07-26T02:15:26.7003449Z 7 | let c = a.to_path_buf() + b;
2019-07-26T02:15:26.7003848Z   |         --------------- ^ - &std::path::Path
2019-07-26T02:15:26.7003963Z   |         std::path::PathBuf
2019-07-26T02:15:26.7004004Z   |
2019-07-26T02:15:26.7004004Z   |
2019-07-26T02:15:26.7004057Z   = note: an implementation of `std::ops::Add` might be missing for `std::path::PathBuf`
2019-07-26T02:15:26.7004153Z error: aborting due to previous error
2019-07-26T02:15:26.7004184Z 
2019-07-26T02:15:26.7004443Z For more information about this error, try `rustc --explain E0369`.
2019-07-26T02:15:26.7004675Z Couldn't compile the test.
---
2019-07-26T02:15:26.7005859Z 
2019-07-26T02:15:26.7192858Z error: test failed, to rerun pass '--doc'
2019-07-26T02:15:26.7209271Z 
2019-07-26T02:15:26.7209491Z 
2019-07-26T02:15:26.7210170Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-j" "2" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/checkout/src/libstd/Cargo.toml" "-p" "std" "--" "--quiet"
2019-07-26T02:15:26.7210310Z 
2019-07-26T02:15:26.7210342Z 
2019-07-26T02:15:26.7222600Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-07-26T02:15:26.7222744Z Build completed unsuccessfully in 1:29:23
2019-07-26T02:15:26.7222744Z Build completed unsuccessfully in 1:29:23
2019-07-26T02:15:27.2048351Z ##[error]Bash exited with code '1'.
2019-07-26T02:15:27.2085650Z ##[section]Starting: Checkout
2019-07-26T02:15:27.2087340Z ==============================================================================
2019-07-26T02:15:27.2087413Z Task         : Get sources
2019-07-26T02:15:27.2087461Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@dtolnay
Copy link
Member

dtolnay commented Jul 27, 2019

I'll go ahead and close this. Thanks anyway, @1011X!

I would still be interested in seeing something like path!(...) on crates.io.

@dtolnay dtolnay closed this Jul 27, 2019
@rfcbot rfcbot removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-close This PR / issue is in PFCP or FCP with a disposition to close it. labels Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants