

Use an absolute path to the NUL device by ChrisDenton · Pull Request #118060 · r...
source link: https://github.com/rust-lang/rust/pull/118060
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation
Contributor
While a bare "NUL" should be redirected to the NUL device, especially in this simple case, let's be explicit that we aren't opening a file called "NUL" and instead open it directly.
This will also set a good example for people copying std code.
r? libs
added O-windows Operating system: Windows S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Member
@bors r+ rollup |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
-
10
Conversation Copy link Contributor ...
-
7
Copy link Contributor ChrisDenton...
-
7
Resolve `process::Command` program without using the current directory by ChrisDenton · Pull Request #87704 · rust-lang/rust · GitHub Copy link Contributor...
-
10
New issue Add fast path to is_descendant_of #91043
-
8
Copy link Contributor ChrisDenton
-
3
Copy link Contributor ChrisDenton
-
9
Copy link Contributor
-
5
Conversation Contributor...
-
3
Conversation Contributor
-
10
Start using windows sys for Windows FFI bindings in std #110152 ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK