-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
std: Deprecate std::old_io::fs #22873
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
4d41a82
to
44af1b3
Compare
Travis is failing. |
49ad452
to
6b9ad41
Compare
Ah oops, should be taken care of now |
☔ The latest upstream changes (presumably #22895) made this pull request unmergeable. Please resolve the merge conflicts. |
6b9ad41
to
a389a66
Compare
☔ The latest upstream changes (presumably #22880) made this pull request unmergeable. Please resolve the merge conflicts. |
a16abfc
to
b10b656
Compare
@@ -273,11 +273,13 @@ compiler-docs: $(COMPILER_DOC_TARGETS) | |||
trpl: doc/book/index.html | |||
|
|||
doc/book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/trpl/*.md) | doc/ | |||
@$(call E, rustbook: $@) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intended? Seems unrelated to the goal of the PR...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes I figured I'd just clean up the output here to be a little more consistent with the rest of the build (now that it doesn't print the chapters to stdout by default)
LGTM |
@bors: r+ b10b656c8a802cd6260ddacb0edfb1dfc9bdbc1b p=1 |
@bors: r=aturon b10b656c8a802cd6260ddacb0edfb1dfc9bdbc1b |
⌛ Testing commit b10b656 with merge 25ad046... |
💔 Test failed - auto-win-32-nopt-t |
b10b656
to
b30b276
Compare
@bors: r=aturon b30b276 |
⌛ Testing commit b30b276 with merge a8aa138... |
⌛ Testing commit 0daf8ca with merge b3b8ce3... |
💔 Test failed - auto-mac-32-opt |
|
☔ The latest upstream changes (presumably #22235) made this pull request unmergeable. Please resolve the merge conflicts. |
0daf8ca
to
cbb2ea1
Compare
@bors: r=aturon cbb2ea1 p=1 |
⌛ Testing commit cbb2ea1 with merge 0ccc0b8... |
💔 Test failed - auto-mac-32-opt |
|
cbb2ea1
to
4419219
Compare
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change. [breaking-change]
💔 Test failed - auto-mac-32-opt |
Bunch of lldb debuginfo failures
|
4419219
to
95d9046
Compare
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change.
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change. [breaking-change]
I see no explanation for the changes in pretty-printing, i.e. writing to a buffer and then saving that buffer to disk (or printing it out). |
@eddyb oh sorry about that, I initially didn't want to migrate the pretty printer just yet to the new I/O traits so it was easiest to just throw it all into a |
This commit deprecates the majority of std::old_io::fs in favor of std::fs and
its new functionality. Some functions remain non-deprecated but are now behind a
feature gate called
old_fs
. These functions will be deprecated oncesuitable replacements have been implemented.
The compiler has been migrated to new
std::fs
andstd::path
APIs whereappropriate as part of this change.
[breaking-change]