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 19 pull requests #82153

Merged
merged 45 commits into from
Feb 16, 2021
Merged

Rollup of 19 pull requests #82153

merged 45 commits into from
Feb 16, 2021

Commits on Feb 3, 2021

  1. added a suggestion to create a const item if the fn in the array …

    …repeat expression is a `const fn`
    henryboisdequin committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    c2e849c View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2021

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

Commits on Feb 13, 2021

  1. Configuration menu
    Copy the full SHA
    5fe8490 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd9db23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d6dcb3d View commit details
    Browse the repository at this point in the history
  4. Heat up the ICE-y error reporting

    rest in peace match bool <3
    BoxyUwU committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    a3e0795 View commit details
    Browse the repository at this point in the history
  5. Fixed minor typo in catch_unwind docs

    Changed 'a an exception' to 'an exception'
    Victor Roest committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    ee9709f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    68405fd View commit details
    Browse the repository at this point in the history
  7. yeet ya fixme into the void

    BoxyUwU committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    b6144e7 View commit details
    Browse the repository at this point in the history
  8. a wild test has appeared uwu

    BoxyUwU committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    a419e11 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2021

  1. Edit rustc_arena::DropArena docs

    - Add a "Safety" section, edit formatting for clarity
    - Add missing punctuation in code comments
    pierwill committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    1c3841e View commit details
    Browse the repository at this point in the history
  2. update message

    henryboisdequin committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    64fe2c1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7bd7126 View commit details
    Browse the repository at this point in the history
  4. fix typo

    TaKO8Ki committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    ba72bc9 View commit details
    Browse the repository at this point in the history
  5. Remove unnecessary Option in default_doc

    Previously, there two different ways to encode the same info: `None` or
    `Some(&[])`. Now there is only one way, `&[]`.
    jyn514 committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    c583860 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0038eae View commit details
    Browse the repository at this point in the history
  7. expand: Remove obsolete ExpansionConfig::keep_macs

    Maybe it was used before the introduction of placeholders, but now it has no effect.
    petrochenkov committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    18c94b3 View commit details
    Browse the repository at this point in the history
  8. expand: Remove redundant calls to configure

    Starting from #63468 cfg attributes on variants, fields, fn params etc. are processed together with other attributes (via `configure!`).
    petrochenkov committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    6e11a8b View commit details
    Browse the repository at this point in the history
  9. Add missing env!-decl variant

    Resolves #82117
    lukaslueg committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    dee5424 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1aa9651 View commit details
    Browse the repository at this point in the history
  11. Update library/core/src/macros/mod.rs

    Co-authored-by: Joshua Nelson <joshua@yottadb.com>
    lukaslueg and Joshua Nelson committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    3d7fcff View commit details
    Browse the repository at this point in the history
  12. Stabilize Arguments::as_str

    Closes #74442
    sfackler committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    4613b37 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2021

  1. Configuration menu
    Copy the full SHA
    63806cc View commit details
    Browse the repository at this point in the history
  2. Update link for extern prelude.

    ehuss committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    ec77574 View commit details
    Browse the repository at this point in the history
  3. 32-bit ARM: Emit lr instead of r14 when specified as an asm! ou…

    …tput register.
    
    On 32-bit ARM platforms, the register `r14` has the alias `lr`. When used as an output register in `asm!`, rustc canonicalizes the name to `r14`. LLVM only knows the register by the name `lr`, and rejects it. This changes rustc's LLVM code generation to output `lr` instead.
    jrvanwhy committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    fd21eb1 View commit details
    Browse the repository at this point in the history
  4. ⬆️ rust-analyzer

    lnicola committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    6931027 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of #81503 - henryboisdequin:fix-const-fn-arr-err-msg, r=…

    …estebank
    
    Suggest to create a new `const` item if the `fn` in the array is a `const fn`
    
    Fixes #73734. If the `fn` in the array repeat expression is a `const fn`, suggest creating a new `const` item. On nightly, suggest creating an inline `const` block. This PR also removes the `suggest_const_in_array_repeat_expressions` as it is no longer necessary.
    
    Example:
    
    ```rust
    fn main() {
        // Should not compile but hint to create a new const item (stable) or an inline const block (nightly)
        let strings: [String; 5] = [String::new(); 5];
        println!("{:?}", strings);
    }
    
    ```
    
    Gives this error:
    
    ```
    error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
     --> $DIR/const-fn-in-vec.rs:3:32
      |
    2 |     let strings: [String; 5] = [String::new(); 5];
      |                             ^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `String`
      |
      = note: the `Copy` trait is required because the repeated element will be copied
    ```
    
    With this change, this is the error message:
    
    ```
    error[E0277]: the trait bound `String: Copy` is not satisfied
      --> $DIR/const-fn-in-vec.rs:3:32
       |
    LL |     let strings: [String; 5] = [String::new(); 5];
       |                                ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String`
       |
       = help: moving the function call to a new `const` item will resolve the error
    ```
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    f02f7b0 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of #81897 - vandenheuvel:match_exhaustive_diagnostics_re…

    …gression_test, r=Mark-Simulacrum
    
    Add match pattern diagnostics regression test
    
    Closes #72377 by adding a regression test.
    
    This test case fails on stable but now works on beta and nightly. It *should* have worked already for years, the crucial point whether it is mentioned that some uncovered patterns are not explicitly mentioned.
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    cd27820 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of #81975 - Amanieu:seal2, r=m-ou-se

    Seal the CommandExt, OsStrExt and OsStringExt traits
    
    A crater run (#81213 (comment)) has shown that this does not break any existing code.
    
    This also unblocks #77728.
    
    Based on #81213.
    
    r? ````@m-ou-se````
    cc ````@lygstate````
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    bd0e8a5 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of #82009 - BoxyUwU:idontknooow, r=varkor

    const_generics: Dont evaluate array length const when handling errors
    
    Fixes #79518
    Fixes #78246
    
    cc ````@lcnr````
    
    This was ICE'ing because we dont pass in the correct ``ParamEnv`` which meant that there was no ``Self: Foo`` predicate to make ``Self::Assoc`` well formed which caused an ICE when trying to normalize ``Self::Assoc`` in the mir interpreter
    
    r? ````@varkor````
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    6fde3c5 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of #82060 - taiki-e:typo, r=m-ou-se

    Fix typos in BTreeSet::{first, last} docs
    
    map -> set
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    c7ebc59 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of #82061 - RalfJung:ctfe-read-pointer-as-bytes, r=oli-obk

    CTFE validation: catch ReadPointerAsBytes and better error
    
    r? ``@oli-obk``
    Fixes #79690
    Cc rust-lang/miri#1706
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    5e8435a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of #82063 - NULLx76:fix-minor-typo, r=jonas-schievink

    Fixed minor typo in catch_unwind docs
    
    Changed "a an exception" to "an exception" inside of the `std::panic::catch_unwind` docs.
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    7842b5d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of #82067 - BoxyUwU:hahaicantthinkofabadpun, r=oli-obk

    const_generics: Fix incorrect ty::ParamEnv::empty() usage
    
    Fixes #80561
    
    Not sure if I should keep the `debug!(..)`s or not but its the second time I've needed them so they sure seem useful lol
    
    cc ``@lcnr``
    r? ``@oli-obk``
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    665bf9e View commit details
    Browse the repository at this point in the history
  13. Rollup merge of #82077 - pierwill:edit-droparena, r=lcnr

    Edit `rustc_arena::DropArena` docs
    
    - Add a "Safety" section, edit formatting for clarity
    - Add missing punctuation in code comments
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    493c6c9 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of #82096 - TaKO8Ki:fix-typo, r=GuillaumeGomez

    Fix a typo
    
    This pull request fixes a typo.
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    db5ae6a View commit details
    Browse the repository at this point in the history
  15. Rollup merge of #82106 - jyn514:cleanup-bootstrap, r=Mark-Simulacrum

    Remove unnecessary `Option` in `default_doc`
    
    Previously, there were two different ways to encode the same info: `None` or
    `Some(&[])`. Now there is only one way, `&[]`.
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    40d85a5 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of #82107 - petrochenkov:minexpclean, r=Aaron1011

    expand: Some cleanup
    
    See individual commits for details.
    
    r? ``@Aaron1011``
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    285ea2f View commit details
    Browse the repository at this point in the history
  17. Rollup merge of #82118 - lukaslueg:env_decl, r=m-ou-se

    Add missing env!-decl variant
    
    Resolves #82117
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    b0bd056 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of #82119 - m-ou-se:typo, r=dtolnay

    Fix typo in link to CreateSymbolicLinkW documentation.
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    2030a54 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of #82120 - sfackler:arguments-as-str, r=dtolnay

    Stabilize Arguments::as_str
    
    Closes #74442
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    c87ef21 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of #82129 - est31:master, r=jyn514

    Remove redundant bool_to_option feature gate
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    1c75dfb View commit details
    Browse the repository at this point in the history
  21. Rollup merge of #82133 - ehuss:extern-prelude-link, r=jyn514

    Update link for extern prelude.
    
    There was some reorganization in the reference as part of rust-lang/reference#937.
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    1ee4a7b View commit details
    Browse the repository at this point in the history
  22. Rollup merge of #82141 - jrvanwhy:issue-82052, r=sanxiyn

    32-bit ARM: Emit `lr` instead of `r14` when specified as an `asm!` output register.
    
    On 32-bit ARM platforms, the register `r14` has the alias `lr`. When used as an output register in `asm!`, rustc canonicalizes the name to `r14`. LLVM only knows the register by the name `lr`, and rejects it. This changes rustc's LLVM code generation to output `lr` instead.
    
    closes #82052
    
    r? ``@nagisa``
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    1a2675f View commit details
    Browse the repository at this point in the history
  23. Rollup merge of #82147 - lnicola:rust-analyzer-2021-02-15, r=jonas-sc…

    …hievink
    
    ⬆️ rust-analyzer
    jonas-schievink committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    a105280 View commit details
    Browse the repository at this point in the history