Skip to content
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

Closed
wants to merge 24 commits into from
Closed

Commits on Nov 9, 2019

  1. Make Layout::new const

    CAD97 committed Nov 9, 2019
    Configuration menu
    Copy the full SHA
    e8c53a6 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2019

  1. Improve str prefix/suffix comparison

    The 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.
    ranma42 committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    cc863f0 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2019

  1. Prefer encoding the char when checking for string prefix/suffix

    This enables constant folding when matching a literal char.
    
    Fixes rust-lang#41993.
    ranma42 committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    1f6d023 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de7fefa View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2019

  1. Configuration menu
    Copy the full SHA
    2514cd5 View commit details
    Browse the repository at this point in the history
  2. comment -> doc comment

    Centril committed Dec 15, 2019
    Configuration menu
    Copy the full SHA
    f2d6413 View commit details
    Browse the repository at this point in the history
  3. document check_pat_slice

    Centril committed Dec 15, 2019
    Configuration menu
    Copy the full SHA
    d848ce0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    66bb978 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7bf55f4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5d73af2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5f68732 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2019

  1. Configuration menu
    Copy the full SHA
    d9d1f23 View commit details
    Browse the repository at this point in the history
  2. .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.
    joshtriplett committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    00e7ff4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d16b088 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3de1923 View commit details
    Browse the repository at this point in the history
  5. 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.
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    94cb34e View commit details
    Browse the repository at this point in the history
  6. 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
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    62ff55c View commit details
    Browse the repository at this point in the history
  7. 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.
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    f9e1d3b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#67318 - Centril:spdocs, r=matthewjasper

    Improve typeck & lowering docs for slice patterns
    
    cc rust-lang#62254
    
    r? @matthewjasper
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    eb14f91 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#67322 - lzutao:nonzero-use-self, r=joshtrip…

    …lett
    
    use Self alias in place of macros
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    c2f0498 View commit details
    Browse the repository at this point in the history
  10. 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
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    6c0dd82 View commit details
    Browse the repository at this point in the history
  11. 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
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    13b7399 View commit details
    Browse the repository at this point in the history
  12. 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.
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    aa84f61 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#67349 - petertodd:2019-unsize-docs, r=Centril

    Minor: update Unsize docs for dyn syntax
    Centril committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    175118f View commit details
    Browse the repository at this point in the history