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 10 pull requests #80063

Closed
wants to merge 31 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. 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
    f29a5b1 View commit details
    Browse the repository at this point in the history
  3. 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
    75c28fc View commit details
    Browse the repository at this point in the history
  4. 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
    4ee4cf7 View commit details
    Browse the repository at this point in the history
  5. 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
    24116c0 View commit details
    Browse the repository at this point in the history
  6. 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
    e08e2c3 View commit details
    Browse the repository at this point in the history
  7. 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
    084337e View commit details
    Browse the repository at this point in the history
  8. 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
    c8cb04f View commit details
    Browse the repository at this point in the history
  9. 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
    77b6d15 View commit details
    Browse the repository at this point in the history
  10. 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
    71bc0c9 View commit details
    Browse the repository at this point in the history
  11. 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
    fec936b View commit details
    Browse the repository at this point in the history