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

Closed
wants to merge 28 commits into from
Closed

Commits on Sep 5, 2018

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

Commits on Sep 25, 2018

  1. Examples for docs

    phungleson committed Sep 25, 2018
    Configuration menu
    Copy the full SHA
    a7cc1fc View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2018

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

Commits on Oct 1, 2018

  1. Configuration menu
    Copy the full SHA
    53a4b39 View commit details
    Browse the repository at this point in the history
  2. enable using the evaluation cache on predicates with LBRs

    There is no reason not to do it.
    arielb1 committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    9d44e9e View commit details
    Browse the repository at this point in the history
  3. add a special case for literal 'static: 'a where-clauses

    This makes evaluation more consistent with fulfillment.
    arielb1 committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    1069c0e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f7d35cc View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2018

  1. Configuration menu
    Copy the full SHA
    ec59188 View commit details
    Browse the repository at this point in the history
  2. Address review comments

    pawroman committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    87bf9e2 View commit details
    Browse the repository at this point in the history
  3. Fix typo in CONTRIBUTING.md

    I noticed a small typo while reading over this document.
    jacob authored Oct 2, 2018
    Configuration menu
    Copy the full SHA
    84f75f0 View commit details
    Browse the repository at this point in the history
  4. Remove main() in examples

    phungleson committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    30f2e96 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2018

  1. Update a FIXME in memory.rs

    In  rust-lang#51833, I improved the performance of `copy_undef_mask()`. As such, the old FIXME wasn't appropriate anymore. The main remaining thing left to do is to implement a fast path for non-overlapping copies (per @oli-obk).
    wesleywiser authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    d686896 View commit details
    Browse the repository at this point in the history
  2. abolish ICE when pretty-printing async block

    Joshua Netterfield reported an ICE when the unused-parentheses lint
    triggered around an async block (rust-lang#54752). In order to compose an
    autofixable suggestion, the lint invokes the pretty-printer on the
    unnecessarily-parenthesized expression. (One wonders why the lint
    doesn't just use `SourceMap::span_to_snippet` instead, to preserve the
    formatting of the original source?—but for that, you'd have to ask the
    author of 5c9f806.)
    
    But then the pretty-printer panics when trying to call `<pprust::State
    as PrintState>::end` when `State.boxes` is empty. Empirically, the
    problem would seem to be solved if we start some "boxes" beforehand in
    the `ast::ExprKind::Async` arm of the big match in
    `print_expr_outer_attr_style`, exactly like we do in the
    immediately-preceding match arm for `ast::ExprKind::Block`—it would
    seem pretty ("pretty") reasonable for the pretty-printing of async
    blocks to work a lot like the pretty-printing of ordinary non-async
    blocks, right??
    
    Of course, it would be shamefully cargo-culty to commit code on the
    basis of this kind of mere reasoning-by-analogy (in contrast to
    understanding the design of the pretty-printer in such detail that the
    correctness of the patch is comprehended with all the lucid certainty
    of mathematical proof, rather than being merely surmised by
    intuition). But maybe we care more about fixing the bug with high
    probability today, than with certainty in some indefinite hypothetical
    future?  Maybe the effort is worth a fifth of a shirt??
    
    Humbly resolves rust-lang#54752.
    zackmdavis committed Oct 3, 2018
    Configuration menu
    Copy the full SHA
    1081bbb View commit details
    Browse the repository at this point in the history
  3. Address review comments

    pawroman committed Oct 3, 2018
    Configuration menu
    Copy the full SHA
    611e5c4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8327976 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f0de294 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    608adfc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    edb3f97 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#53523 - phungleson:fix-impl-from-for-std-er…

    …ror, r=GuillaumeGomez
    
    Add doc for impl From for Std Error
    
    As part of issue rust-lang#51430 (cc @skade).
    
    I am not sure if it is going to a correct direction so put up here so that people can comment.
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    d146804 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#54624 - arielb1:evaluate-outlives, r=nikoma…

    …tsakis
    
    handle outlives predicates in trait evaluation
    
    This handles higher-ranked outlives predicates in trait evaluation the same way they are handled in projection.
    
    Fixes rust-lang#54302. I think this is a more correct fix than rust-lang#54401 because it fixes the root case in evaluation instead of making evaluation used in less cases. However, we might want to go to a direction closer to @nikomatsakis's solution with Chalk.
    
    r? @nikomatsakis
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    4b267fa View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#54734 - pawroman:fix_range_borrowing_sugges…

    …tion, r=varkor
    
    Fix range literals borrowing suggestions
    
    Fixes rust-lang#54505. The compiler issued incorrect range borrowing suggestions (missing `()` around borrows of range literals). This was not correct syntax (see the issue for an example).
    
    With changes in this PR, this is fixed for all types of `Range` literals.
    
    Thanks again to @varkor and @estebank for their invaluable help and guidance.
    
    r? @varkor
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    36e7d4d View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#54761 - Lucretiel:patch-1, r=cramertj

    Make spec_extend use for_each()
    
    `for_each` will use an iterator's own implementation of `try_fold`, which I understand to be generally preferable (because nested iterator adapter's will use each other's `try_fold` and be designed for the specific adaptation in a way that promotes performance and inlining.
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    11ef111 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#54769 - jacobherrington:patch-1, r=kennytm

    Fix typo in CONTRIBUTING.md
    
    I noticed a small typo while reading over this document.
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    4a2ecc6 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#54773 - rust-lang:wesleywiser-patch-1, r=ol…

    …i-obk
    
    Update a FIXME in memory.rs
    
    In  rust-lang#51833, I improved the performance of `copy_undef_mask()`. As such, the old FIXME wasn't appropriate anymore. The main remaining thing left to do is to implement a fast path for non-overlapping copies (per @oli-obk).
    
    r? @oli-obk
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    723f662 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#54777 - zackmdavis:async_pretty_ice, r=cram…

    …ertj
    
    abolish ICE when pretty-printing async block
    
    @jnetterf reported an ICE when the unused-parentheses lint triggered around an async block (rust-lang#54752). In order to compose an autofixable suggestion, the lint invokes the pretty-printer on the unnecessarily-parenthesized expression. (One wonders why the lint doesn't just use `SourceMap::span_to_snippet` instead, to preserve the formatting of the original source?—but to answer that, you'd have to ask the author of 5c9f806.)
    
    But then the pretty-printer panics when trying to call `<pprust::State as PrintState>::end` when `State.boxes` is empty. Empirically, the problem would seem to be solved if we start some "boxes" beforehand in the `ast::ExprKind::Async` arm of the big match in `print_expr_outer_attr_style`, exactly like we do in the immediately-preceding match arm for `ast::ExprKind::Block`—it would seem pretty ("pretty") reasonable for the pretty-printing of async blocks to work a lot like the pretty-printing of ordinary non-async blocks, right??
    
    Of course, it would be shamefully cargo-culty to commit code on the basis of this kind of mere reasoning-by-analogy (in contrast to understanding the design of the pretty-printer in such detail that the correctness of the patch is comprehended with all the lucid certainty of mathematical proof, rather than being merely surmised by intuition). But maybe we care more about fixing the bug with high probability today, than with certainty in some indefinite hypothetical future?  Maybe the effort is worth [a fifth of a shirt](https://hacktoberfest.digitalocean.com/stats/zackmdavis)??
    
    Humbly resolves rust-lang#54752.
    
    r? @cramertj
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    bae5784 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#54780 - scalexm:dup-predicates, r=nikomatsakis

    Remove duplicate predicates in `explicit_predicates_of`
    
    I took a more brutal approach than described in rust-lang#52187. I could have used the `linked_hash_map` crate but this seems overkill, especially as we need a vec storage in the end.
    
    r? @nikomatsakis
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    009f32e View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#54788 - ljedrz:cleanup_rustc_mir, r=oli-obk

    A handful of cleanups for rustc/mir
    
    - use the "regular" `into()` instead of `graphviz::IntoCow` in `mod.rs`
    - `format!("{}", x)` > `x.to_string()`
    - remove one unnecessary `String` allocation
    - shorten the logic of one loop
    - `assert!(x == y)` > `assert_eq!(x, y)`
    - whitespace & formatting fixes
    
    r? @oli-obk
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    db548ea View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#54789 - scalexm:unnormalized, r=nikomatsakis

    Introduce `TyKind::UnnormalizedProjection`
    
    Introduce a new variant used for lazy normalization in chalk integration. Mostly `bug!` everywhere.
    
    r? @nikomatsakis
    pietroalbini authored Oct 3, 2018
    Configuration menu
    Copy the full SHA
    2848e15 View commit details
    Browse the repository at this point in the history