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

Merged
merged 30 commits into from
Mar 2, 2021
Merged

Rollup of 10 pull requests #82698

merged 30 commits into from
Mar 2, 2021

Commits on Jan 10, 2021

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

    - Improve wording
    - Use relative links
    - Use a proper list instead of a wall of text
    - Improve examples
    jyn514 committed Jan 10, 2021
    Configuration menu
    Copy the full SHA
    db0b416 View commit details
    Browse the repository at this point in the history
  4. Fix typo

    Co-authored-by: Camelid <camelidcamel@gmail.com>
    jyn514 and camelid committed Jan 10, 2021
    Configuration menu
    Copy the full SHA
    21717f0 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. Fix relative links

    Co-authored-by: Camelid <camelidcamel@gmail.com>
    jyn514 and camelid committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    44c72f6 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2021

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

Commits on Feb 23, 2021

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

Commits on Feb 25, 2021

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

Commits on Feb 26, 2021

  1. Configuration menu
    Copy the full SHA
    9a75f4f View commit details
    Browse the repository at this point in the history
  2. Convert the rest of the standard library primitives to intra-doc links

    Note that float methods in `core::intrinsics` weren't converted because
    they are only defined in `std` (using language item hacks).
    jyn514 committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    4d46735 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2021

  1. Configuration menu
    Copy the full SHA
    f895f1c View commit details
    Browse the repository at this point in the history
  2. Use optional values for inlining thresholds

    Turn inlining threshold into optional values to make it possible to
    configure different defaults depending on the current mir-opt-level.
    tmiasko committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    500aecc View commit details
    Browse the repository at this point in the history
  3. Fix turbofish recovery with multiple generic args

    check_mistyped_turbofish_with_multiple_type_params was previously
    expecting type arguments between angle brackets, which is not right, as
    we can also see const expressions. We now use generic argument parser
    instead of type parser.
    
    Test with one, two, and three generic arguments added to check
    consistentcy between
    
    1. check_no_chained_comparison: Called after parsing a nested binop
       application like `x < A > ...` where angle brackets are interpreted as
       binary operators and `A` is an expression.
    
    2. check_mistyped_turbofish_with_multiple_type_params: called by
       `parse_full_stmt` when we expect to see a semicolon after parsing an
       expression but don't see it.
    
       (In `T2<1, 2>::C;`, the expression is `T2 < 1`)
    osa1 committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    fb631a5 View commit details
    Browse the repository at this point in the history
  4. Recover from X<Y,Z> when parsing const expr

    This adds recovery when in array type syntax user writes
    
        [X; Y<Z, ...>]
    
    instead of
    
        [X; Y::<Z, ...>]
    
    Fixes rust-lang#82566
    
    Note that whenever we parse an expression and know that the next token
    cannot be `,`, we should be calling
    check_mistyped_turbofish_with_multiple_type_params for this recovery.
    Previously we only did this for statement parsing (e.g. `let x = f<a,
    b>;`). We now also do it when parsing the length field in array type
    syntax.
    osa1 committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    992b914 View commit details
    Browse the repository at this point in the history
  5. Teach rustdoc how to display WASI.

    As a followup to [this comment] in rust-lang#82420, this patch teaches rustdoc
    how to display WASI.
    
    [this comment]: rust-lang#82420 (comment)
    sunfishcode committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    b89e828 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2021

  1. Configuration menu
    Copy the full SHA
    9adb462 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e27eba3 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2021

  1. ⬆️ rust-analyzer

    lnicola committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    0242d39 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    854fffd View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2021

  1. Update books

    ehuss committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    b840304 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#80189 - jyn514:convert-primitives, r=polior…

    …cetics
    
    Convert primitives in the standard library to intra-doc links
    
    Blocked on rust-lang#80181. I forgot that this needs to wait for the beta bump so the standard library can be documented with `doc --stage 0`.
    
    Notably I didn't convert `core::slice` because it's like 50 links and I got scared 😨
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    bc5669e View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#80874 - jyn514:intra-doc-docs, r=Manishearth

    Update intra-doc link documentation to match the implementation
    
    r? `@Manishearth`
    cc `@camelid` `@m-ou-se`
    
    Relevant PRs:
    - rust-lang#74489
    - rust-lang#80181
    - rust-lang#76078
    - rust-lang#77519
    - rust-lang#73101
    
    Relevant issues:
    - rust-lang#78800
    - rust-lang#77200
    - rust-lang#77199 / rust-lang#54191
    
    I haven't documented things that I consider 'just bugs', like rust-lang#77732, but I have documented features that aren't implemented, like rust-lang#78800.
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    a9339ed View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#82376 - tmiasko:inline-options, r=oli-obk

    Add option to enable MIR inlining independently of mir-opt-level
    
    Add `-Zinline-mir` option that enables MIR inlining independently of the
    current MIR opt level. The primary use-case is enabling MIR inlining on the
    default MIR opt level.
    
    Turn inlining thresholds into optional values to make it possible to configure
    different defaults depending on the current mir-opt-level (although thresholds
    are yet to be used in such a manner).
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    ae5e024 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#82516 - PoignardAzur:inherent-impl-ty, r=ol…

    …i-obk
    
    Add incomplete feature gate for inherent associate types.
    
    Mentored by ``````@oli-obk``````
    
    So far the only change is that instead of giving an automatic error, the following code compiles:
    
    ```rust
    struct Foo;
    
    impl Foo {
        type Bar = isize;
    }
    ```
    
    The backend work to make it actually usable isn't there yet. In particular, this:
    
    ```rust
    let x : Foo::Bar;
    ```
    
    will give you:
    
    ```sh
    error[E0223]: ambiguous associated type
      --> /$RUSTC_DIR/src/test/ui/assoc-inherent.rs:15:13
       |
    LL |     let x : Foo::Bar;
       |             ^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Bar`
    ```
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    5e68c60 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#82579 - osa1:issue82566, r=estebank

    Fix turbofish recovery with multiple generic args
    
    This consists of two commits, each can be individually reviewed.
    
    - First commit fixes the issue in [this comment](rust-lang#82566 (comment)).
    - Second commit fixes rust-lang#82566
    
    ---
    
    r? ````@estebank````
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    906e535 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#82593 - sunfishcode:wasi-docs, r=alexcrichton

    Teach rustdoc how to display WASI.
    
    As a followup to [this comment] in rust-lang#82420, this patch teaches rustdoc
    how to display WASI.
    
    [this comment]: rust-lang#82420 (comment)
    
    r? `@alexcrichton`
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    543ef7f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#82597 - noslaver:fix-82137, r=nagisa

    Get TyCtxt from self instead of passing as argument in AutoTraitFinder
    
    First contribution 🦀, let me know if anything is amiss.
    
    Fix rust-lang#82137.
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    43bcfdb View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#82627 - JohnTitor:issue-82612, r=estebank

    Erase late bound regions to avoid ICE
    
    Fixes rust-lang#82612, which is caused by rust-lang#81769.
    
    r? `@estebank`
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    2c40e13 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#82661 - lnicola:rust-analyzer-2021-03-01, r…

    …=jonas-schievink
    
    ⬆️ rust-analyzer
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    738cacf View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#82691 - ehuss:update-books, r=ehuss

    Update books
    
    ## reference
    
    2 commits in 361367c126290ac17cb4089f8d38fd8b2ac43f98..3b6fe80c205d2a2b5dc8a276192bbce9eeb9e9cf
    2021-02-15 09:58:13 -0800 to 2021-02-22 22:09:17 -0800
    - Add an extra fn() entry to the variance table in the subtyping chapter (rust-lang/reference#874)
    - Turbofish: Explain what the example is of. (rust-lang/reference#966)
    
    ## book
    
    28 commits in db5e8a5105aa22979490dce30e33b68d8645761d..0f87daf683ae3de3cb725faecb11b7e7e89f0e5a
    2021-02-12 16:58:20 -0500 to 2021-03-01 08:54:04 -0500
    - Ohhh the should_panic was for mdbook test. Oops
    - Fix bad regex in the update rustc script and regenerate broken output
    - Clarify that we only mentioned unwrap_or_else, but haven't explained it
    - Add ferris to some listings that don't compile. Fixes rust-lang/book#2598
    - Remove fancy quote from a code comment
    - Panic now points at our code, not stdlib slice code
    - Disable playground on thread::sleep examples
    - Disable playground button on listings in ch 12 that use CLI args
    - Reword ambiguous sentence. Fixes rust-lang/book#2317.
    - Rename shoes_in_my_size to shoes_in_size to be a better example
    - Fix visible "ANCHOR: here" in listing 13-21 (rust-lang/book#2628)
    - minor clarification about deriving Copy and Clone (rust-lang/book#2627)
    - Clarify relationship of trait to mock object
    - Fix "message" that should be "method"
    - Fix rust-lang/book#2625 (rust-lang/book#2626)
    - fix misleading hash claim (rust-lang/book#2621)
    - Make link syntax consistent and word wrap
    - Added hyperlinks to Appendices
    - Use console syntax highlighting in some more places
    - Merge remote-tracking branch 'origin/pr/2615'
    - Fix broken blockquote
    - Update one more bit of output caught by the update rust script
    - Update and clarify some text affected by the rand update
    - Update lock files and output
    - Update error output for changes to chapter 10 listings
    - Merge remote-tracking branch 'origin/pr/2542'
    - Tweak wording in for loop explanation
    - Merge remote-tracking branch 'origin/pr/2460'
    
    ## rust-by-example
    
    1 commits in 551cc4bc8394feccea6acd21f86d9a4e1d2271a0..3e0d98790c9126517fa1c604dc3678f396e92a27
    2021-02-03 17:12:37 -0300 to 2021-02-25 08:23:10 -0300
    - Make flow_control/for/.into_iter() example run (rust-lang/rust-by-example#1415)
    
    ## rustc-dev-guide
    
    530 commits in 7adfab42bab045a848126895c2f1e09927c1331a..c431f8c29a41413dddcb3bfa0d71c9cabe366317
    2020-04-08 08:52:05 +0200 to 2021-02-28 16:35:20 -0500
    
    ... Many updates.
    
    ## embedded-book
    
    1 commits in 4cf7981696a85c3e633076c6401611bd3f6346c4..a96d096cffe5fa2c84af1b4b61e1492f839bb2e1
    2021-02-11 10:55:22 +0000 to 2021-02-17 08:08:52 +0000
    - Add note about using more recent openocd interface file. Closes rust-embedded/book#277 and rust-embedded/book#263  (rust-embedded/book#284)
    JohnTitor committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    97f9b18 View commit details
    Browse the repository at this point in the history