-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Rollup of 9 pull requests #90712
Commits on Nov 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9cab312 - Browse repository at this point
Copy the full SHA 9cab312View commit details -
Configuration menu - View commit details
-
Copy full SHA for d379147 - Browse repository at this point
Copy the full SHA d379147View commit details
Commits on Nov 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 084b232 - Browse repository at this point
Copy the full SHA 084b232View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbc3bf4 - Browse repository at this point
Copy the full SHA dbc3bf4View commit details
Commits on Nov 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ed7e438 - Browse repository at this point
Copy the full SHA ed7e438View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8f1d57 - Browse repository at this point
Copy the full SHA e8f1d57View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa6f6f4 - Browse repository at this point
Copy the full SHA aa6f6f4View commit details
Commits on Nov 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 02c1774 - Browse repository at this point
Copy the full SHA 02c1774View commit details -
Implement type inference for inline consts
In most cases it is handled in the same way as closures.
Configuration menu - View commit details
-
Copy full SHA for 468192a - Browse repository at this point
Copy the full SHA 468192aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4acef9a - Browse repository at this point
Copy the full SHA 4acef9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d32b20 - Browse repository at this point
Copy the full SHA 1d32b20View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff055e2 - Browse repository at this point
Copy the full SHA ff055e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4060ed7 - Browse repository at this point
Copy the full SHA 4060ed7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0f59f6 - Browse repository at this point
Copy the full SHA d0f59f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4103d4 - Browse repository at this point
Copy the full SHA c4103d4View commit details
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1e56dd4 - Browse repository at this point
Copy the full SHA 1e56dd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86c0ef8 - Browse repository at this point
Copy the full SHA 86c0ef8View commit details -
Add a note about feature(explicit_generic_args_with_impl_trait) to th…
…e relevant error message
Configuration menu - View commit details
-
Copy full SHA for 048e1c9 - Browse repository at this point
Copy the full SHA 048e1c9View commit details -
Rollup merge of rust-lang#87530 - bstrie:commentsync, r=bstrie
Add comments regarding superfluous `!Sync` impls
Configuration menu - View commit details
-
Copy full SHA for efc320c - Browse repository at this point
Copy the full SHA efc320cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e4ce370 - Browse repository at this point
Copy the full SHA e4ce370View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 8cbe7a8 - Browse repository at this point
Copy the full SHA 8cbe7a8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 98db52d - Browse repository at this point
Copy the full SHA 98db52dView commit details -
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)```
Configuration menu - View commit details
-
Copy full SHA for 1eebe3e - Browse repository at this point
Copy the full SHA 1eebe3eView commit details -
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))
Configuration menu - View commit details
-
Copy full SHA for 21554e6 - Browse repository at this point
Copy the full SHA 21554e6View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f9d481c - Browse repository at this point
Copy the full SHA f9d481cView commit details -
Rollup merge of rust-lang#90689 - lnicola:rust-analyzer-2021-11-08, r…
…=lnicola ⬆️ rust-analyzer r? ```@ghost```
Configuration menu - View commit details
-
Copy full SHA for e1093a7 - Browse repository at this point
Copy the full SHA e1093a7View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fb94698 - Browse repository at this point
Copy the full SHA fb94698View commit details