-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 9 pull requests #67352
Rollup of 9 pull requests #67352
Commits on Nov 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e8c53a6 - Browse repository at this point
Copy the full SHA e8c53a6View commit details
Commits on Dec 11, 2019
-
Improve
str
prefix/suffix comparisonThe comparison can be performed on the raw bytes, as the chars can only match if their UTF8 encoding matches. This avoids the `is_char_boundary` checks and translates to a straight `u8` slice comparison which is optimized to a memcmp or inline comparison where appropriate.
Configuration menu - View commit details
-
Copy full SHA for cc863f0 - Browse repository at this point
Copy the full SHA cc863f0View commit details
Commits on Dec 12, 2019
-
Prefer encoding the char when checking for string prefix/suffix
This enables constant folding when matching a literal char. Fixes rust-lang#41993.
Configuration menu - View commit details
-
Copy full SHA for 1f6d023 - Browse repository at this point
Copy the full SHA 1f6d023View commit details -
Configuration menu - View commit details
-
Copy full SHA for de7fefa - Browse repository at this point
Copy the full SHA de7fefaView commit details
Commits on Dec 15, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 2514cd5 - Browse repository at this point
Copy the full SHA 2514cd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2d6413 - Browse repository at this point
Copy the full SHA f2d6413View commit details -
Configuration menu - View commit details
-
Copy full SHA for d848ce0 - Browse repository at this point
Copy the full SHA d848ce0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66bb978 - Browse repository at this point
Copy the full SHA 66bb978View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bf55f4 - Browse repository at this point
Copy the full SHA 7bf55f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d73af2 - Browse repository at this point
Copy the full SHA 5d73af2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f68732 - Browse repository at this point
Copy the full SHA 5f68732View commit details
Commits on Dec 16, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d9d1f23 - Browse repository at this point
Copy the full SHA d9d1f23View commit details -
.gitignore: Don't ignore a file that exists in the repository
.gitignore should not ignore files that exist in the repository. The ignore of .cargo applies to the committed .cargo directory used in an example: $ git ls-files --exclude-standard --ignored src/test/run-make/thumb-none-qemu/example/.cargo/config Explicitly un-ignore that file.
Configuration menu - View commit details
-
Copy full SHA for 00e7ff4 - Browse repository at this point
Copy the full SHA 00e7ff4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d16b088 - Browse repository at this point
Copy the full SHA d16b088View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3de1923 - Browse repository at this point
Copy the full SHA 3de1923View commit details -
Rollup merge of rust-lang#66254 - CAD97:patch-1, r=KodrAus
Make Layout::new const This seems like a reasonable change to make. If we don't provide `Layout::new::<T>` as `const`, then users can just instead do the more error prone `Layout::from_size_align_unchecked(mem::size_of::<T>(), mem::align_of::<T>())` for the same effect and an extra `unsafe { }` incantation.
Configuration menu - View commit details
-
Copy full SHA for 94cb34e - Browse repository at this point
Copy the full SHA 94cb34eView commit details -
Rollup merge of rust-lang#67249 - ranma42:improve-starts-with-literal…
…-char, r=BurntSushi Improve code generated for `starts_with(<literal char>)` This PR includes two minor improvements to the code generated when checking for string prefix/suffix. The first commit simplifies the str/str operation, by taking advantage of the raw UTF-8 representation. The second commit replaces the current str/char matching logic with a char->str encoding and then the previous method. The resulting code should be equivalent in the generic case (one char is being encoded versus one char being decoded), but it becomes easy to optimize in the case of a literal char, which in most cases a developer might expect to be at least as simple as that of a literal string. This PR should fix rust-lang#41993
Configuration menu - View commit details
-
Copy full SHA for 62ff55c - Browse repository at this point
Copy the full SHA 62ff55cView commit details -
Rollup merge of rust-lang#67308 - dtolnay:fast_rebind, r=alexcrichton
Delete flaky test net::tcp::tests::fast_rebind This test is unreliable for at least 3 users on two platforms: see rust-lang#57509 and rust-lang#51006. It was added 5 years ago in rust-lang#22015. Do we know whether this is testing something important that would indicate a bug in our implementation, or if it's fine to remove? r? @sfackler @alexcrichton because this somewhat resembles rust-lang#59018 Closes rust-lang#57509. Closes rust-lang#51006.
Configuration menu - View commit details
-
Copy full SHA for f9e1d3b - Browse repository at this point
Copy the full SHA f9e1d3bView commit details -
Rollup merge of rust-lang#67318 - Centril:spdocs, r=matthewjasper
Improve typeck & lowering docs for slice patterns cc rust-lang#62254 r? @matthewjasper
Configuration menu - View commit details
-
Copy full SHA for eb14f91 - Browse repository at this point
Copy the full SHA eb14f91View commit details -
Rollup merge of rust-lang#67322 - lzutao:nonzero-use-self, r=joshtrip…
…lett use Self alias in place of macros
Configuration menu - View commit details
-
Copy full SHA for c2f0498 - Browse repository at this point
Copy the full SHA c2f0498View commit details -
Rollup merge of rust-lang#67323 - Centril:tes, r=davidtwco
make transparent enums more ordinary By recognizing that structs & unions have one variant, we can make the treatment of transparent enums less ad-hoc. cc rust-lang#60405 r? @davidtwco
Configuration menu - View commit details
-
Copy full SHA for 6c0dd82 - Browse repository at this point
Copy the full SHA 6c0dd82View commit details -
Rollup merge of rust-lang#67336 - GuillaumeGomez:fix-js-error, r=Dyla…
…n-DPC Fix JS error when loading page with search For example when you load this page: https://doc.rust-lang.org/nightly/std/num/struct.NonZeroI8.html?search=foo, you get a nice JS error: ``` TypeError: ev is undefined ``` r? @kinnison
Configuration menu - View commit details
-
Copy full SHA for 13b7399 - Browse repository at this point
Copy the full SHA 13b7399View commit details -
Rollup merge of rust-lang#67344 - joshtriplett:no-gitignore-of-commit…
…ted-files, r=Dylan-DPC .gitignore: Don't ignore a file that exists in the repository .gitignore should not ignore files that exist in the repository. The ignore of .cargo applies to the committed .cargo directory used in an example: $ git ls-files --exclude-standard --ignored src/test/run-make/thumb-none-qemu/example/.cargo/config Explicitly un-ignore that file.
Configuration menu - View commit details
-
Copy full SHA for aa84f61 - Browse repository at this point
Copy the full SHA aa84f61View commit details -
Rollup merge of rust-lang#67349 - petertodd:2019-unsize-docs, r=Centril
Minor: update Unsize docs for dyn syntax
Configuration menu - View commit details
-
Copy full SHA for 175118f - Browse repository at this point
Copy the full SHA 175118fView commit details