-
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
Rollup of 6 pull requests #42644
Rollup of 6 pull requests #42644
Commits on Jun 4, 2017
-
Delegate str:Index(Mut) to SliceIndex<str>
Move any extra logic that the former had into the latter, so they're consistent.
Configuration menu - View commit details
-
Copy full SHA for 18612b2 - Browse repository at this point
Copy the full SHA 18612b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 808a08a - Browse repository at this point
Copy the full SHA 808a08aView commit details
Commits on Jun 7, 2017
-
Add max and min default fns to Ord trait
Pursuant to issue rust-lang#25663, this commit adds the max and min functions to the Ord trait, enabling items that implement Ord to use UFCS (ex. 1.max(2)) instead of the longer std::cmp::max(1,2) format.
Configuration menu - View commit details
-
Copy full SHA for 2cadc32 - Browse repository at this point
Copy the full SHA 2cadc32View commit details -
Configuration menu - View commit details
-
Copy full SHA for a32ffc6 - Browse repository at this point
Copy the full SHA a32ffc6View commit details
Commits on Jun 12, 2017
-
Capture elapsed duration in Thread::park_timeout example
Mark Buer authored and Mark Buer committedJun 12, 2017 Configuration menu - View commit details
-
Copy full SHA for 0389d40 - Browse repository at this point
Copy the full SHA 0389d40View commit details
Commits on Jun 13, 2017
-
Configuration menu - View commit details
-
Copy full SHA for e759370 - Browse repository at this point
Copy the full SHA e759370View commit details -
changed upper bound digit in octal rule to 7
Arthur Arnold committedJun 13, 2017 Configuration menu - View commit details
-
Copy full SHA for c291e87 - Browse repository at this point
Copy the full SHA c291e87View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5dc963 - Browse repository at this point
Copy the full SHA a5dc963View commit details -
Rollup merge of rust-lang#42408 - bjorn3:patch-2, r=michaelwoerister
Add docs to librustc/hir/check_attr.rs Also moved `check_attribute` up to ease reading.
Configuration menu - View commit details
-
Copy full SHA for 02179bd - Browse repository at this point
Copy the full SHA 02179bdView commit details -
Rollup merge of rust-lang#42428 - scottmcm:str-get-overflow, r=sfackler
Add overflow checking for `str::get` with inclusive ranges Fixes rust-lang#42401 Two commits here: 1. The first makes `str::index` just call `SliceIndex<str>::index`. It's intended to have no behavior change, except where the two methods were inconsistent. 2. The second actually adds the overflow checking to `get(_mut)` (and tests for it)
Configuration menu - View commit details
-
Copy full SHA for 78d5d37 - Browse repository at this point
Copy the full SHA 78d5d37View commit details -
Rollup merge of rust-lang#42496 - Razaekel:feature/integer_max-min, r…
…=BurntSushi Add max and min to Ord Pursuant to issue rust-lang#25663, this PR adds max and min methods with default implementations to std::cmp::Ord. It also modifies std::cmp::max|min to internally alias to Ord::max|min, so that any overrides of the default implementations are automatically used by std::cmp::max|min. Closes rust-lang#25663
Configuration menu - View commit details
-
Copy full SHA for 7463cf5 - Browse repository at this point
Copy the full SHA 7463cf5View commit details -
Rollup merge of rust-lang#42597 - mark-buer:park_timeout_example_fix,…
… r=alexcrichton Capture elapsed duration in Thread::park_timeout example `beginning_park.elapsed()` might return a larger value within the loop as compared to that checked in the loop conditional. Since `Duration` arithmetic is checked, hitting such an edge case will cause a panic.
Configuration menu - View commit details
-
Copy full SHA for 664ab45 - Browse repository at this point
Copy the full SHA 664ab45View commit details -
Rollup merge of rust-lang#42636 - GuillaumeGomez:new-error-codes-next…
…2, r=eddyb Add E0617 Part of rust-lang#42229. cc @Susurrus @frewsxcv @QuietMisdreavus
Configuration menu - View commit details
-
Copy full SHA for d60b291 - Browse repository at this point
Copy the full SHA d60b291View commit details -
Rollup merge of rust-lang#42638 - arthurpaimarnold:lexer_rule_for_oct…
…al, r=petrochenkov Possible mistake in lexer rule for octal integer Original rule allowed for digits 0-8, but octal is 0-7. The compiler correctly prevents you from placing an 8 in an octal, so I'm assuming this is caught on a later stage. Still, shouldn't the lexer already catch this?
Configuration menu - View commit details
-
Copy full SHA for 9242f22 - Browse repository at this point
Copy the full SHA 9242f22View commit details