Uh oh!
There was an error while loading. Please reload this page.
Rename fs::read_string to read_to_string and stabilize - #49522
Conversation
mbrubeck
commented
Mar 30, 2018
Set the stabilization attribute to 1.26.0 because it hasn't branched to beta yet. It will need to be updated if the branch happens before this lands. |
| let field = 1; | ||
| let contents = fs::read_string("/proc/self/statm").ok()?; | ||
| let contents = fs::read("/proc/self/statm").ok()?; | ||
| let contents = String::from_utf8(contents).ok()?; |
There was a problem hiding this comment.
Why this change? Other than this r=me
There was a problem hiding this comment.
Using the new read_to_string function here would break bootstrapping from the previous release, where that name didn't exist. This seemed simpler than doing some sort of conditional import based on cfg(stage0).
SimonSapin
commented
Mar 30, 2018
@bors: r+ |
bors
commented
Mar 30, 2018
📌 Commit 6b7627f has been approved by |
bors
commented
Mar 31, 2018
Rename fs::read_string to read_to_string and stabilize As approved in #46588 (comment)Closes#46588.
bors
commented
Mar 31, 2018
💔 Test failed - status-appveyor |
mbrubeck
commented
Apr 1, 2018
Hit the three hour limit. |
SimonSapin
commented
Apr 1, 2018
@bors: retry |
bors
commented
Apr 1, 2018
Rename fs::read_string to read_to_string and stabilize As approved in #46588 (comment)Closes#46588.
bors
commented
Apr 1, 2018
☀️ Test successful - status-appveyor, status-travis |
As approved in #46588 (comment)
Closes#46588.