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

Merged
merged 32 commits into from
Feb 28, 2020
Merged

Rollup of 10 pull requests #69555

merged 32 commits into from
Feb 28, 2020

Commits on Feb 9, 2020

  1. Configuration menu
    Copy the full SHA
    81e4027 View commit details
    Browse the repository at this point in the history
  2. Update RELEASES.md

    XAMPPRocky committed Feb 9, 2020
    Configuration menu
    Copy the full SHA
    26fdcbb View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Update RELEASES.md

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    XAMPPRocky and Centril committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    7ab01b2 View commit details
    Browse the repository at this point in the history
  2. Update RELEASES.md

    XAMPPRocky committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    32daa2a View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2020

  1. Update RELEASES.md

    Co-Authored-By: Jonas Schievink <jonasschievink@gmail.com>
    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    3 people committed Feb 23, 2020
    Configuration menu
    Copy the full SHA
    e7a344f View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2020

  1. Configuration menu
    Copy the full SHA
    59261f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2605c1 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2020

  1. simplify check_pat_lit

    Centril committed Feb 25, 2020
    Configuration menu
    Copy the full SHA
    9b6e0e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5da3a2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e58496c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1d33717 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e9f6bb7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b1de8f1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d234e13 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2020

  1. Configuration menu
    Copy the full SHA
    6672a04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    526280a View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2020

  1. Configuration menu
    Copy the full SHA
    7c84ba1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1de0b1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    13d42f4 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2020

  1. Configuration menu
    Copy the full SHA
    4e0bea3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85b585d View commit details
    Browse the repository at this point in the history
  3. remove redundant clones, references to operands, explicit boolean com…

    …parisons and filter(x).next() calls.
    matthiaskrgr committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    ff9341a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#68989 - XAMPPRocky:relnotes-1.42.0, r=Mark-…

    …Simulacrum
    
    Update RELEASES.md for 1.42.0
    
    ### [Rendered](https://github.com/XAMPPRocky/rust/blob/relnotes-1.42.0/RELEASES.md)
    
    r? @Mark-Simulacrum
    cc @rust-lang/release
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    bbf6eec View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#69340 - Centril:self-ctor-normalize, r=niko…

    …matsakis
    
    instantiate_value_path: on `SelfCtor`, avoid unconstrained tyvars
    
    Fixes rust-lang#69306.
    
    On `Self(...)` (that is, a `Res::SelfCtor`), do not use `self.impl_self_ty(...)`. The problem with that method is that it creates unconstrained inference variables for type parameters in the `impl` (e.g. `impl<T> S0<T>`). These variables then eventually get substituted for something else when they come in contact with the expected type (e.g. `S0<u8>`) or merely the arguments passed to the tuple constructor (e.g. the `0` in `Self(0)`).
    
    Instead of using `self.impl_self_ty(...)`, we instead merely use `let ty = self.normalize_ty(span, tcx.at(span).type_of(impl_def_id));` to get the rewritten `res`.
    
    r? @eddyb
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    76fe449 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#69384 - petrochenkov:nounnorm, r=Centril

    parser: `token` -> `normalized_token`, `nonnormalized_token` -> `token`
    
    So, after rust-lang#69006, its follow-ups and an attempt to remove `Parser::prev_span` I came to the conclusion that the unnormalized token and its span is what you want in most cases, so it should be default.
    
    Normalization only makes difference in few cases where we are checking against `token::Ident` or `token::Lifetime` specifically.
    This PR uses `normalized_token` for those cases.
    
    Using normalization explicitly means that people writing code should remember about `NtIdent` and `NtLifetime` in general. (That is alleviated by the fact that `token.ident()` and `fn parse_ident_*` are already written.)
    Remembering about `NtIdent`, was, however, already the case, kind of, because the implicit normalization was performed only for the current/previous token, but not for things like `look_ahead`.
    As a result, most of token classification methods in `token.rs` already take `NtIdent` into account (this PR fixes a few pre-existing minor mistakes though).
    
    The next step is removing `normalized(_prev)_token` entirely and replacing it with `token.ident()` (mostly) and `token.normalize()` (occasionally).
    I want to make it a separate PR for that and run it though perf.
    `normalized_token` filled on every bump has both a potential to avoid repeated normalization, and to do unnecessary work in advance (it probably doesn't matter anyway, the normalization is very cheap).
    
    r? @Centril
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    3828fa2 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#69452 - Centril:typeck-pat, r=estebank

    typeck: use `Pattern` obligation cause more for better diagnostics
    
    r? @estebank
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    a245221 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#69481 - matthiaskrgr:single_char, r=ecstati…

    …c-morse
    
    use char instead of &str for single char patterns
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    07d9ed2 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#69522 - Centril:fix-69341, r=petrochenkov

    error_derive_forbidden_on_non_adt: be more graceful
    
    Fixes rust-lang#69341 which was injected by rust-lang#67052.
    
    r? @petrochenkov
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    87cc521 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#69538 - JohnTitor:boxed-slice-try-from, r=C…

    …entril
    
    Stabilize `boxed_slice_try_from`
    
    Closes rust-lang#69202
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    e4cedc9 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#69539 - Centril:fix-69401, r=petrochenkov

    late resolve, visit_fn: bail early if there's no body.
    
    Fixes rust-lang#69401 which was injected by rust-lang@b2c6eeb in rust-lang#68788.
    
    r? @petrochenkov
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    b95945c View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#69541 - dotdash:format, r=Mark-Simulacrum

    Remove unneeded calls to format!()
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    61b091b View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#69547 - matthiaskrgr:more_misc, r=Mark-Simu…

    …lacrum
    
    remove redundant clones, references to operands, explicit boolean comparisons and filter(x).next() calls.
    Centril committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    13e4c6c View commit details
    Browse the repository at this point in the history