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 8 pull requests #67846

Closed
wants to merge 22 commits into from
Closed

Commits on Dec 22, 2019

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

Commits on Dec 23, 2019

  1. Configuration menu
    Copy the full SHA
    8d189ed View commit details
    Browse the repository at this point in the history
  2. Add more detailed suggestion

    VirrageS committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    8e5b2c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0918539 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7353afd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2168c0b View commit details
    Browse the repository at this point in the history
  6. Simplify match expr

    VirrageS committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    7b91ef8 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2020

  1. Add a test for rust-lang#37333

    The test checks that we reuse the CGU of a crate when the implementation
    details of an `extern crate` have changed.
    
    Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
    michalt committed Jan 1, 2020
    Configuration menu
    Copy the full SHA
    cfab634 View commit details
    Browse the repository at this point in the history
  2. Cleanup linkchecker whitelist

    linkchecker is no longer run on the compiler docs so they can be removed from the whitelist.
    ollie27 committed Jan 1, 2020
    Configuration menu
    Copy the full SHA
    23f5431 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2020

  1. - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}

    - remove syntax::{help!, span_help!, span_note!}
    - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!}
    - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints
    - inline syntax::{struct_span_warn!, diagnostic_used!}
    - stringify_error_code! -> error_code! & use it more.
    - find_plugin_registrar: de-fatalize an error
    - de-fatalize metadata errors
    - move type_error_struct! to rustc_typeck
    - struct_span_err! -> rustc_errors
    Centril committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    562389d View commit details
    Browse the repository at this point in the history
  2. address review comments

    Centril committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    67be07d View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2020

  1. Configuration menu
    Copy the full SHA
    485e98a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7fd014d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae002c1 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#66913 - VirrageS:help-self, r=varkor,Centril

    Suggest calling method when first argument is `self`
    
    Closes: rust-lang#66782
    
    I've explored different approaches for this MR but I think the most straightforward is the best one.
    
    I've tried to find out if the methods for given type exist (to maybe have a better suggestion), but we don't collect them anywhere and collecting them is quite problematic. Moreover, collecting all the methods would require rewriting big part of the code and also could potentially include performance degradation, which I don't think is necessary for this simple case.
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    d0fe179 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#67531 - RalfJung:tame-promotion, r=nikomats…

    …akis
    
    no longer promote non-pattern const functions
    
    This is trying to pack-pedal a bit on promotion feature creep, as proposed by @eddyb [here](rust-lang/const-eval#19 (comment)): possibly, a sane subset of `const fn` that we could promote are those that are just constructors -- the same subset that we might want to allow in pattern position at some point.
    
    So, this removes the `rustc_promotable` attribute from the three functions they identified that do not fit this pattern. The first step is to run crater to see if there is code in the wild that relies on this being promotable.
    
    r? @oli-obk
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    10f153f View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#67770 - Centril:reduce-diversity-2, r=petro…

    …chenkov
    
    More reductions in error handling diversity
    
    In this follow up to rust-lang#67744, we:
    
    - Remove all fatal / error / warning macros in `syntax` except for `struct_span_err`, which is moved to `rustc_errors`.
    
    - Lintify some hard-coded warnings which used warning macros.
    
    - Defatalize some errors.
    
    In general, the goal here is to make it painful to use fatal or unstructured errors and so we hopefully won't see many of these creep in.
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    6a42b64 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#67773 - michalt:issue-37333-test, r=nikomat…

    …sakis
    
    Add a test for rust-lang#37333
    
    The test checks that we reuse the CGU of a crate when the implementation
    details of an `extern crate` have changed.
    
    Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    1ce3f0d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#67789 - ollie27:linkchecker_whitelist, r=ni…

    …komatsakis
    
    Cleanup linkchecker whitelist
    
    linkchecker is no longer run on the compiler docs so they can be removed from the whitelist.
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    a29a7d5 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#67810 - crlf0710:uncommon_codepoints_lint, …

    …r=Manishearth
    
    Implement uncommon_codepoints lint.
    
    Part of rust-lang#55467 .  The checks of `$crate` and `{{root}}` are very unfortunate. But i'm not sure where they belongs to.
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    8017b78 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#67835 - euclio:delimiter-wording, r=Centril

    tweak wording of mismatched delimiter errors
    
    This PR improves the wording of the "incorrect delimiter" error messages. Here's a quick rationale:
    
    - *"un-closed" -> "unclosed"*: "unclosed" is valid English, so there's no need to hyphenate the prefix. This should be pretty uncontroversial, I think.
    - *"close delimiter" -> "closing delimiter"*: In my anecdotal experience, I've always heard "closing delimiter" or "closing parenthesis". In addition, the codebase already uses this terminology in comments and function names more than "close delimiter", which could indicate that it's more intuitive.
    - "incorrect delimiter" -> "mismatched delimiter": "Incorrect delimiter" is vague; why is it incorrect? "mismatched" clearly indicates why the delimiter is causing the error.
    
    r? @estebank
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    e35ce61 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#67845 - jumbatm:also-unconst-hack-abs, r=ol…

    …i-obk
    
    Also remove const-hack for abs
    
    Closes rust-lang#67842.
    
    r? @oli-obk
    Centril authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    3f83bc8 View commit details
    Browse the repository at this point in the history