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 12 pull requests #63120

Closed
wants to merge 42 commits into from
Closed

Commits on Jun 19, 2019

  1. Configuration menu
    Copy the full SHA
    fed12fa View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2019

  1. Refer to add method instead of offset

    The `align_offset` method returns an `usize`, so using `add` makes more sense than using `offset`, which takes an `isize`.
    phil-opp committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    c9c73f5 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2019

  1. Configuration menu
    Copy the full SHA
    60de9e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f0b2e5 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2019

  1. Configuration menu
    Copy the full SHA
    b6c472a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5a039d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    194282b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b95b8cc View commit details
    Browse the repository at this point in the history
  5. Disallow duplicate lifetime parameters with legacy hygiene

    They were resolved with modern hygiene, making this just a strange way
    to shadow lifetimes.
    matthewjasper committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    3dca17e View commit details
    Browse the repository at this point in the history
  6. Resolve const parameters with modern hygiene

    Declarations were already modernized, resulting in cases where a macro
    couldn't resolve it's own identifier.
    matthewjasper committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    8876b3b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dfad725 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1b11860 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    56b39fb View commit details
    Browse the repository at this point in the history
  10. Remove redundant check.

    Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    cd79609 View commit details
    Browse the repository at this point in the history
  11. Properly check the defining scope of existential types

    Fixes rust-lang#52632
    
    Existential types (soon to be 'impl trait' aliases) can either be
    delcared at a top-level crate/module scope, or within another item such
    as an fn. Previously, we were handling the second case incorrectly when
    recursively searching for defining usages - we would check children of
    the item, but not the item itself. This lead to us missing closures
    that consituted a defining use of the existential type, as their opaque
    type instantiations are stored in the TypeckTables of their parent
    function.
    
    This commit ensures that we explicitly visit the defining item itself,
    not just its children.
    Aaron1011 committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    18bf9dd View commit details
    Browse the repository at this point in the history
  12. Fix formatting

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    Aaron1011 and Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    8811b9c View commit details
    Browse the repository at this point in the history
  13. Rename test and add comment

    Aaron1011 committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    3e98c3a View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2019

  1. Configuration menu
    Copy the full SHA
    e2ee2a3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2a5d99 View commit details
    Browse the repository at this point in the history
  3. Add test for rust-lang#53678.

    Centril committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    b779f45 View commit details
    Browse the repository at this point in the history
  4. Add test for rust-lang#60407.

    Centril committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    1e927d8 View commit details
    Browse the repository at this point in the history
  5. Add test for rust-lang#60564.

    Centril committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    a54dd23 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0cdd693 View commit details
    Browse the repository at this point in the history
  7. ci: Skip installing SWIG/xz on OSX

    I'm relatively certain that SWIG was only needed for LLDB which is no
    longer built, and I'm hoping we can remove the xz install to remove the
    reliance on `brew` for our build (which is another point of failure for
    flaky networks).
    alexcrichton committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    60680d4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c56d8a8 View commit details
    Browse the repository at this point in the history
  9. impl Debug for Chars

    max-sixty committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    624c5da View commit details
    Browse the repository at this point in the history
  10. comments from @lzutao

    max-sixty committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    3325ff6 View commit details
    Browse the repository at this point in the history
  11. std: Fix a failing fs test on Windows

    In testing 4-core machines on Azure the `realpath_works_tricky` test in
    the standard library is failing with "The directory name is invalid". In
    attempting to debug this test I was able to reproduce the failure
    locally on my machine, and after inspecing the test it I believe is
    exploiting Unix-specific behavior that seems to only sometimes work on
    Windows. Specifically the test basically executes:
    
        mkdir -p a/b
        mkdir -p a/d
        touch a/f
        ln -s a/b/c ../d/e
        ln -s a/d/e ../f
    
    and then asserts that `canonicalize("a/b/c")` and
    `canonicalize("a/d/e")` are equivalent to `a/f`. On Windows however the
    first symlink is a "directory symlink" and the second is a file symlink.
    In both cases, though, they're pointing to files. This means that for
    whatever reason locally and on the 4-core environment the call to
    `canonicalize` is failing. On Azure today it seems to be passing, and
    I'm not entirely sure why. I'm sort of presuming that there's some sort
    of internals going on here where there's some global Windows setting
    which makes symlinks behavior more unix-like and ignore the directory
    hint.
    
    In any case this should keep the test working and also fixes the test
    locally for me.
    alexcrichton committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    8d7fb87 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    870efe3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0fb9295 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2019

  1. Rollup merge of rust-lang#61965 - phil-opp:patch-4, r=scottmcm

    Remove mentions of removed `offset_to` method from `align_offset` docs
    
    The `offset_to` method was deleted in rust-lang#52814.
    
    The replacement for the removed method is `wrapping_offset_from`. However, neither method takes an `usize` as argument, so I don't think that it makes sense to mention them.
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    d436b66 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#62928 - Centril:recover-parens-around-for-h…

    …ead, r=estebank
    
    Syntax: Recover on `for ( $pat in $expr ) $block`
    
    Fixes rust-lang#62724 by adding some recovery:
    
    ```
    error: unexpected closing `)`
      --> $DIR/recover-for-loop-parens-around-head.rs:10:23
       |
    LL |     for ( elem in vec ) {
       |         --------------^
       |         |
       |         opening `(`
       |         help: remove parenthesis in `for` loop: `elem in vec`
    ```
    
    The last 2 commits are drive-by cleanups.
    
    r? @estebank
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    022f7a7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#63000 - max-sixty:chars-display, r=alexcric…

    …hton
    
    Impl Debug for Chars
    
    Closes rust-lang#62947, making `Debug` more consistent with the struct's output and purpose
    
    Let me know any feedback!
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    4838953 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#63059 - Centril:sound-bind-by-move, r=matth…

    …ewjasper
    
    Make `#![feature(bind_by_move_pattern_guards)]` sound without `#[feature(nll)]`
    
    Implements rust-lang#15287 (comment).
    
    Fixes rust-lang#31287
    Fixes rust-lang#27282
    
    r? @matthewjasper
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    11a913c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#63083 - matthewjasper:parameter-hygiene, r=…

    …petrochenkov
    
    Make generic parameters always use modern hygiene
    
    * E0263 (lifetime parameter declared twice in the same scope) now compares modernized identifiers.
    * Const parameters are now resolved with modern hygiene.
    
    Closes rust-lang#58307
    Closes rust-lang#60746
    Closes rust-lang#61574
    Closes rust-lang#62433
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    cbce93c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#63087 - crlf0710:tidy_2018, r=Mark-Simulacrum

    Add very simple edition check to tidy.
    
    Fixes rust-lang#58099.
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    b62ddfe View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#63093 - Aaron1011:fix/existential-closure, …

    …r=cramertj
    
    Properly check the defining scope of existential types
    
    Fixes rust-lang#52632
    
    Existential types (soon to be 'impl trait' aliases) can either be
    delcared at a top-level crate/module scope, or within another item such
    as an fn. Previously, we were handling the second case incorrectly when
    recursively searching for defining usages - we would check children of
    the item, but not the item itself. This lead to us missing closures
    that consituted a defining use of the existential type, as their opaque
    type instantiations are stored in the TypeckTables of their parent
    function.
    
    This commit ensures that we explicitly visit the defining item itself,
    not just its children.
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    e464c9d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#63096 - Centril:existential-type-add-tests,…

    … r=varkor
    
    Add tests for some `existential_type` ICEs
    
    Fix rust-lang#53678
    Fix rust-lang#60407
    Fix rust-lang#60564
    
    rust-lang#54899 will need some minimization before it can be added.
    
    r? @varkor
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    94db68e View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#63099 - josephlr:vxworks, r=alexcrichton

    vxworks: Remove Linux-specific comments.
    
    It looks like the VxWorks fork inadvertently left in some Linux-specific workaround comments in `libstd`, these can be removed. Came up when looking into rust-lang#62516
    
    CC:  @BaoshanPang
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    bccaf45 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#63106 - alexcrichton:remove-swig-osx, r=pie…

    …troalbini
    
    ci: Skip installing SWIG/xz on OSX
    
    I'm relatively certain that SWIG was only needed for LLDB which is no
    longer built, and I'm hoping we can remove the xz install to remove the
    reliance on `brew` for our build (which is another point of failure for
    flaky networks).
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    4282391 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#63108 - lzutao:option-xor-typo, r=jonas-sch…

    …ievink
    
    Add links to None in Option doc
    
    r? @jonas-schievink
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    4edc326 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#63109 - alexcrichton:disable-windows-fs-tes…

    …t, r=sfackler
    
    std: Fix a failing `fs` test on Windows
    
    In testing 4-core machines on Azure the `realpath_works_tricky` test in
    the standard library is failing with "The directory name is invalid". In
    attempting to debug this test I was able to reproduce the failure
    locally on my machine, and after inspecing the test it I believe is
    exploiting Unix-specific behavior that seems to only sometimes work on
    Windows. Specifically the test basically executes:
    
        mkdir -p a/b
        mkdir -p a/d
        touch a/f
        ln -s a/b/c ../d/e
        ln -s a/d/e ../f
    
    and then asserts that `canonicalize("a/b/c")` and
    `canonicalize("a/d/e")` are equivalent to `a/f`. On Windows however the
    first symlink is a "directory symlink" and the second is a file symlink.
    In both cases, though, they're pointing to files. This means that for
    whatever reason locally and on the 4-core environment the call to
    `canonicalize` is failing. On Azure today it seems to be passing, and
    I'm not entirely sure why. I'm sort of presuming that there's some sort
    of internals going on here where there's some global Windows setting
    which makes symlinks behavior more unix-like and ignore the directory
    hint.
    
    In any case this should keep the test working and also fixes the test
    locally for me. It's also worth pointing out that this test was made Windows compatible in rust-lang#31360, a pretty ancient PR at this point.
    Centril committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    b093fa9 View commit details
    Browse the repository at this point in the history