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 9 pull requests #90712

Closed
wants to merge 27 commits into from

Commits on Nov 2, 2021

  1. ARMv6K Horizon OS panic change

    Meziu committed Nov 2, 2021
    Configuration menu
    Copy the full SHA
    9cab312 View commit details
    Browse the repository at this point in the history
  2. Updated backtrace submodule

    Meziu committed Nov 2, 2021
    Configuration menu
    Copy the full SHA
    d379147 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2021

  1. add const generics test

    lcnr committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    084b232 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dbc3bf4 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2021

  1. Configuration menu
    Copy the full SHA
    ed7e438 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8f1d57 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa6f6f4 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2021

  1. Configuration menu
    Copy the full SHA
    02c1774 View commit details
    Browse the repository at this point in the history
  2. Implement type inference for inline consts

    In most cases it is handled in the same way as closures.
    nbdd0121 committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    468192a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4acef9a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1d32b20 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ff055e2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4060ed7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d0f59f6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c4103d4 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. ⬆️ rust-analyzer

    lnicola committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    1e56dd4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86c0ef8 View commit details
    Browse the repository at this point in the history
  3. Add a note about feature(explicit_generic_args_with_impl_trait) to th…

    …e relevant error message
    meithecatte committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    048e1c9 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#87530 - bstrie:commentsync, r=bstrie

    Add comments regarding superfluous `!Sync` impls
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    efc320c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#89561 - nbdd0121:const_typeck, r=nikomatsakis

    Type inference for inline consts
    
    Fixes rust-lang#78132
    Fixes rust-lang#78174
    Fixes rust-lang#81857
    Fixes rust-lang#89964
    
    Perform type checking/inference of inline consts in the same context as the outer def, similar to what is currently done to closure.
    
    Doing so would require `closure_base_def_id` of the inline const to return the outer def, and since `closure_base_def_id` can be called on non-local crate (and thus have no HIR available), a new `DefKind` is created for inline consts.
    
    The type of the generated anon const can capture lifetime of outer def, so we couldn't just use the typeck result as the type of the inline const's def. Closure has a similar issue, and it uses extra type params `CK, CS, U` to capture closure kind, input/output signature and upvars. I use a similar approach for inline consts, letting it have an extra type param `R`, and then `typeof(InlineConst<[paremt generics], R>)` would just be `R`. In borrowck region requirements are also propagated to the outer MIR body just like it's currently done for closure.
    
    With this PR, inline consts in expression position are quitely usable now; however the usage in pattern position is still incomplete -- since those does not remain in the MIR borrowck couldn't verify the lifetime there. I have left an ignored test as a FIXME.
    
    Some disucssions can be found on [this Zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/inline.20consts.20typeck).
    cc ```@spastorino``` ```@lcnr```
    r? ```@nikomatsakis```
    
    ```@rustbot``` label A-inference F-inline_const T-compiler
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    e4ce370 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#90494 - Meziu:armv6k-3ds-target, r=sanxiyn

    ARMv6K Horizon OS panic change
    
    After a small change to `backtrace-rs` ([rust-lang#448](rust-lang/backtrace-rs#448)), `PanicStrategy::Unwind` is now fully supported.
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    8cbe7a8 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#90578 - lcnr:add-test, r=Mark-Simulacrum

    add const generics test
    
    cc rust-lang#89829 (comment)
    
    r? rust-lang/project-const-generics
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    98db52d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#90591 - richlowe:illumos-ui-target, r=Mark-…

    …Simulacrum
    
    treat illumos like solaris in failing ui tests which need it
    
    Just adding the right cfg target for tests which fail because they don't know illumos is a thing.
    
    (cc ```@jclulow)```
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    1eebe3e View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#90652 - matthiaskrgr:unnnec_filter_map, r=j…

    …yn514
    
    use filter(|x| matches!(..)) instead of filter_map(|x| match x ... => Some(xy))
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    21554e6 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#90657 - GuillaumeGomez:one-char-last-line-r…

    …emoved, r=jyn514
    
    Fix bug with `#[doc]` string single-character last lines
    
    Fixes rust-lang#90618.
    
    This is because `.iter().all(|c| c == '*')` returns `true` if there is no character checked. And in case the last line has only one character, it simply returns `true`, making the last line behind removed.
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    f9d481c View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#90689 - lnicola:rust-analyzer-2021-11-08, r…

    …=lnicola
    
    ⬆️ rust-analyzer
    
    r? ```@ghost```
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    e1093a7 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#90708 - NieDzejkob:feature-note, r=jackh726

    Add a note about feature(explicit_generic_args_with_impl_trait) to the relevant error message
    
    Fixes rust-lang#90615
    matthiaskrgr authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    fb94698 View commit details
    Browse the repository at this point in the history