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 #65804

Merged
merged 26 commits into from
Oct 25, 2019
Merged

Rollup of 9 pull requests #65804

merged 26 commits into from
Oct 25, 2019

Commits on Oct 21, 2019

  1. Configuration menu
    Copy the full SHA
    ff1860a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b5ee56 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2705412 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2019

  1. Fix check of statx

    oxalica committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    c787fe3 View commit details
    Browse the repository at this point in the history
  2. Pattern match over PlaceRef rather than Place

    This prepares the code base for when projection is interned. Place's
    projection field is going to be `&List<PlaceElem<'tcx>>` so we won't be
    able to pattern match against it.
    spastorino committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    190802c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a19aed2 View commit details
    Browse the repository at this point in the history
  4. Intern place projection

    spastorino committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    d32c286 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    180fc41 View commit details
    Browse the repository at this point in the history
  6. Add ignore-tidy-filelength on ty/context

    This is so we avoid a massive break of other people's code. Gonna run
    rustfmt and split the file on a different PR.
    spastorino committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    5f5903d View commit details
    Browse the repository at this point in the history
  7. Some tweaks

    oxalica committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    10f1bc7 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2019

  1. Prevent unnecessary allocation in PathBuf::set_extension.

    It was allocating a new OsString that was immediately dropped after
    using it with set_file_name. Now it directly changes the extension in
    the original buffer, without touching the rest of the file name or
    allocating a temporary string.
    m-ou-se committed Oct 23, 2019
    Configuration menu
    Copy the full SHA
    18ae175 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01a1bcb View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2019

  1. Configuration menu
    Copy the full SHA
    d7f6ba8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a5b38f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5ff7349 View commit details
    Browse the repository at this point in the history
  4. RFC 2008: Stabilization

    This commit stabilizes RFC 2008 (rust-lang#44109) by removing the feature gate.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    e0590ea View commit details
    Browse the repository at this point in the history
  5. with_desugared_doc: correctly refer to attr instead of self

    Co-Authored-By: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co>
    Centril and David Wood committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    9e3e3a4 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#64639 - davidtwco:rfc-2008-stabilization, r…

    …=Centril
    
    Stabilize `#[non_exhaustive]` (RFC 2008)
    
    Fixes rust-lang#44109.
    
    This pull request stabilizes the `#[non_exhaustive]` attribute, which is used to indicate that a type will have more fields / variants added in the future. It can be applied to `struct`s, `enum`s and `enum` variants. See rust-lang#44109 (comment) for the stabilization report.
    
    r? @Centril
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    959b6e3 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#65074 - Rantanen:json-byte-pos, r=matklad

    Fix the start/end byte positions in the compiler JSON output
    
    Track the changes made during normalization in the `SourceFile` and use this information to correct the `start_byte` and `end_byte` fields in the JSON output.
    
    This should ensure the start/end byte fields can be used to index the original file, even if Rust normalized the source code for parsing purposes. Both CRLF to LF and BOM removal are handled with this one.
    
    The rough plan was discussed with @matklad in rust-lang/rustfix#176 - although I ended up going with `u32` offset tracking so I wouldn't need to deal with `u32 + i32` arithmetics when applying the offset to the span byte positions.
    
    Fixes rust-lang#65029
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    1f93be1 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#65315 - spastorino:intern-place-projection,…

    … r=oli-obk
    
    Intern place projection
    
    This should sit on top of rust-lang#65197. After that one merged, I'm gonna rebase on top of it.
    
    The important commits are the last three and there's a bunch of code repetition that I'm going to remove but for that I need to refactor some things that probably need to be added before this PR.
    
    Anyway this work helps as is because we can run perf tests :).
    
    r? @oli-obk /cc @nikomatsakis
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    8bb039f View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#65685 - oxalica:statx-eperm, r=alexcrichton

    Fix check of `statx` and handle EPERM
    
    Should fix rust-lang#65662
    
    rust-lang#65662 (comment)
    > I think a reasonable solution might be to do something like try to stat AT_CWD initially and if that fails with EPERM or ENOSYS we disable the syscall entirely, otherwise it's cached as always good to use.
    
    r? @alexcrichton
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    f1d747a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#65731 - fusion-engineering-forks:set-extens…

    …ion, r=dtolnay
    
    Prevent unnecessary allocation in PathBuf::set_extension.
    
    It was allocating a new `OsString` that was immediately dropped after using it with `set_file_name`. Now it directly changes the extension in the original buffer, without touching the rest of the file name or allocating a temporary string.
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    3e3f21c View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#65740 - GuillaumeGomez:fix-disable-shortcut…

    …-feature, r=Dylan-DPC
    
    Fix default "disable-shortcuts" feature value
    
    Follow-up of rust-lang#65656
    
    It fixes the bad handling of the default value of the feature (which would disable shortcut by default, which is bad!).
    
    r? @Dylan-DPC
    cc @kinnison
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    07b5c2a View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#65787 - Centril:panictry, r=davidtwco

    move panictry! to where it is used.
    
    From rust-lang#65324
    
    r? @davidtwco
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    0bfe483 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#65789 - Centril:with-desugared-doc, r=david…

    …twco
    
    move Attribute::with_desugared_doc to librustdoc
    
    From rust-lang#65324.
    
    r? @varkor
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    cbcbba2 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#65790 - Centril:move-report-invalid, r=davi…

    …dtwco
    
    move report_invalid_macro_expansion_item to item.rs
    
    From rust-lang#65324.
    
    r? @Mark-Simulacrum
    Centril committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    c0bbb4b View commit details
    Browse the repository at this point in the history