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 11 pull requests #80064

Closed
wants to merge 33 commits into from

Commits on Nov 7, 2020

  1. Refactor parse_prefix on Windows

    Refactor `get_first_two_components` to `get_next_component`.
    
    Fixes the following behaviour of `parse_prefix`:
     - series of separator bytes in a prefix are correctly parsed as a single separator
     - device namespace prefixes correctly recognize both `\\` and `/` as separators
    CDirkx committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    94d73d4 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2020

  1. make MIR graphviz generation use gsgdt

    gsgdt [https://crates.io/crates/gsgdt] is a crate which provides an
    interface for stringly typed graphs. It also provides generation of
    graphviz dot format from said graph.
    vn-ki committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    ea14607 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b049e1 View commit details
    Browse the repository at this point in the history
  3. update gsgdt

    vn-ki committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    a4e94ec View commit details
    Browse the repository at this point in the history
  4. formatting

    vn-ki committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    86a7831 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

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

Commits on Dec 5, 2020

  1. fix clippy test

    vn-ki committed Dec 5, 2020
    Configuration menu
    Copy the full SHA
    6fe31e7 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2020

  1. Remove memoization leftovers

    Tunahan Karlibas committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    7cb74ed View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2020

  1. Extra assertions in eval_body_using_ecx to disallow queries for

    functions that does allocations
    Tunahan Karlibas committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    de1cd4b View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2020

  1. Remove unnecessary check and fix local_def_id parameter

    Tunahan Karlibas committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    b6f7eef View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2020

  1. add missing constraints

    Tunahan Karlibas committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    a03feaa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed80815 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2020

  1. Configuration menu
    Copy the full SHA
    0f30b7d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d75618e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94fd1d3 View commit details
    Browse the repository at this point in the history
  4. fix typo

    Stupremee committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    09d528e View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. Configuration menu
    Copy the full SHA
    6c7835e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    357565d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    01c2520 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    777ca99 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2020

  1. Always run intrinsics lowering pass

    Move intrinsics lowering pass from the optimization phase (where it
    would not run if -Zmir-opt-level=0), to the drop lowering phase where it
    runs unconditionally.
    
    The implementation of those intrinsics in code generation and
    interpreter is unnecessary. Remove it.
    tmiasko committed Dec 15, 2020
    Configuration menu
    Copy the full SHA
    a9ff4bd View commit details
    Browse the repository at this point in the history
  2. write_slice(_cloned)

    beepster4096 committed Dec 15, 2020
    Configuration menu
    Copy the full SHA
    4652a13 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#78399 - vn-ki:gsgdt-graphviz, r=oli-obk

    make MIR graphviz generation use gsgdt
    
    gsgdt [https://crates.io/crates/gsgdt] is a crate which provides an
    interface for stringly typed graphs. It also provides generation of
    graphviz dot format from said graph.
    
    This is the first in a series of PRs on moving graphviz code out of rustc into normal crates and then implementating graph diffing on top of these crates.
    
    r? ```@oli-obk```
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    81e0fd4 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#78833 - CDirkx:parse_prefix, r=dtolnay

    Refactor and fix `parse_prefix` on Windows
    
    This PR is an extension of rust-lang#78692 as well as a general refactor of `parse_prefix`:
    
    **Fixes**:
    There are two errors in the current implementation of `parse_prefix`:
    
    Firstly, in the current implementation only `\` is recognized as a separator character in device namespace prefixes. This behavior is only correct for verbatim paths; `"\\.\C:/foo"` should be parsed as `"C:"` instead of `"C:/foo"`.
    
    Secondly, the current implementation only handles single separator characters. In non-verbatim paths a series of separator characters should be recognized as a single boundary, e.g. the UNC path `"\\localhost\\\\\\C$\foo"` should be parsed as `"\\localhost\\\\\\C$"` and then `UNC(server: "localhost", share: "C$")`, but currently it is not parsed at all, because it starts being parsed as `\\localhost\` and then has an invalid empty share location.
    
    Paths like `"\\.\C:/foo"` and `"\\localhost\\\\\\C$\foo"` are valid on Windows, they are equivalent to just `"C:\foo"`.
    
    **Refactoring**:
    All uses of `&[u8]` within `parse_prefix` are extracted to helper functions and`&OsStr` is used instead. This reduces the number of places unsafe is used:
    - `get_first_two_components` is adapted to the more general `parse_next_component` and used in more places
    - code for parsing drive prefixes is extracted to `parse_drive`
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    12156e7 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#79607 - DrMeepster:maybe_uninit_write_slice…

    …, r=m-ou-se
    
    MaybeUninit::copy/clone_from_slice
    
    This PR adds 2 new methods to MaybeUninit under the feature of `maybe_uninit_write_slice`: `copy_from_slice` and `clone_from_slice`.
    
    These are useful for initializing uninitialized buffers (such as the one returned by `Vec::spare_capacity_mut` for example) with initialized data.
    
    The methods behave similarly to the methods on slices, but the destination is uninitialized and they return the destination slice as an initialized slice.
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    3ce1f5c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#79840 - dvtkrlbs:issue-79667, r=oli-obk

    Remove memoization leftovers from constant evaluation machine
    
    Closes rust-lang#79667
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    0a2aeac View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#79945 - jackh726:existential_trait_ref, r=n…

    …ikomatsakis
    
    Move binder for dyn to each list item
    
    This essentially changes `ty::Binder<&'tcx List<ExistentialTraitRef>>` to `&'tcx List<ty::Binder<ExistentialTraitRef>>`.
    
    This is a first step in moving the `dyn Trait` representation closer to Chalk, which we've talked about in ```@rust-lang/wg-traits.```
    
    r? ```@nikomatsakis```
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    6a19c06 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#80003 - Stupremee:fix-zst-vecdeque-conversi…

    …on-panic, r=dtolnay
    
    Fix overflow when converting ZST Vec to VecDeque
    
    ```rust
    let v = vec![(); 100];
    let queue = VecDeque::from(v);
    println!("{:?}", queue);
    ```
    This code will currently panic with a capacity overflow.
    This PR resolves this issue and makes the code run fine.
    
    Resolves rust-lang#78532
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    fe2af20 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#80006 - ssomers:btree_cleanup_6, r=Mark-Sim…

    …ulacrum
    
    BTreeMap: more expressive local variables in merge
    
    r? ```@Mark-Simulacrum```
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    68b75db View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#80022 - ssomers:btree_cleanup_8, r=Mark-Sim…

    …ulacrum
    
    BTreeSet: simplify implementation of pop_first/pop_last
    
    …and stop it interfering in rust-lang#79245.
    r? ```@Mark-Simulacrum```
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    1068f94 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#80026 - JohnTitor:separator-insensitive, r=…

    …Mark-Simulacrum
    
    expand-yaml-anchors: Make the output directory separator-insensitive
    
    Fixes rust-lang#75709
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    a26389f View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#80035 - ChayimFriedman2:patch-1, r=nagisa

    Optimization for bool's PartialOrd impl
    
    Fix rust-lang#80034.
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    df630a9 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#80040 - tmiasko:always-lower-intrinsics, r=…

    …Dylan-DPC
    
    Always run intrinsics lowering pass
    
    Move intrinsics lowering pass from the optimization phase (where it
    would not run if -Zmir-opt-level=0), to the drop lowering phase where it
    runs unconditionally.
    
    The implementation of those intrinsics in code generation and
    interpreter is unnecessary. Remove it.
    Dylan-DPC authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    f255490 View commit details
    Browse the repository at this point in the history