-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Rollup of 11 pull requests #27658
Rollup of 11 pull requests #27658
Conversation
The previous wording was confusing. While would we need to go through the whole list just to find the first code point? `chars()` being an iterator, we only need to walk from the beginning of the list.
The "nth" element can be confusing. In an array context, we know indexes start from 0 but one may believe this is not the case with "nth". For example, would `.nth(1)` return the first (1th/1st) or the second element? Rephrase a bit to be less confusing.
This is in line with other targets. Closes rust-lang#27646
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ p=1000 |
📌 Commit d5ac535 has been approved by |
⌛ Testing commit d5ac535 with merge 30af427... |
💔 Test failed - auto-mac-64-opt |
This failure was caused due to a 'race condition', after I removed '--crate-type=lib` from pretty test and fixed the resulting failures, a new pretty test was added which broke the build. I'll fix that now. cc #27571 |
I updated my original pr to account for the added test, it should build now. |
…sagew, r=alexcrichton `FormatMessageW` always inserts trailing `\r\n` to system messages which is a minor annoyance when they're fed to `Debug` but can break formatting with `Display`. ```rust fn main() { use std::env; if let Err(err) = env::set_current_dir("???") { println!("{:#?}\n{}", err, err); } } ``` ```_ Error { repr: Os { code: 2, message: "The system cannot find the file specified.\r\n" } } The system cannot find the file specified. (os error 2) ```
…r, r=steveklabnik The previous wording was confusing. While would we need to go through the whole list just to find the first code point? `chars()` being an iterator, we only need to walk from the beginning of the list. Note that I am not a native English speaker and I have still difficulties to spot if a "the" is needed somewhere. Feel free to take this PR as a mere suggestion. r? @steveklabnik
…teveklabnik The "nth" element can be confusing. In an array context, we know indexes start from 0 but one may believe this is not the case with "nth". For example, would `.nth(1)` return the first (1th/1st) or the second element? Rephrase a bit to be less confusing. r? @steveklabnik
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
This is in line with other targets. Closes rust-lang#27646
@bors r+ p=100 force |
📌 Commit aebd6d5 has been approved by |
chars().nth()
work #27611, doc/core: fix description ofnth
function #27612, add diagnostics for E0193 #27617, doc: add missing symbol #27633, Use pentium4 for base CPU on i686-pc-windows-msvc #27647, doc: successful deletion should be implied #27648, doc: remove an unneeded distinction #27651