bors
60bd3f9677
Auto merge of #102700 - oli-obk:0xDEAD_TAIT, r=compiler-errors
...
Check hidden types in dead code
fixes #99490
r? `@compiler-errors`
best reviewed commit by commit
2022-10-13 22:39:05 +00:00
bors
0938e1680d
Auto merge of #101679 - compiler-errors:rpitit-default-body, r=nikomatsakis
...
Support default-body trait functions with return-position `impl Trait` in traits
Introduce a new `Trait` candidate kind for the `ImplTraitInTrait` projection candidate, which just projects an RPITIT down to its opaque type form.
This is a hack until we lower RPITITs to regular associated types, after which we will need to rework how these default bodies are type-checked, so comments are left in a few places for us to clean up later.
Fixes #101665
2022-10-12 21:03:47 +00:00
Camille GILLOT
a474ec50b7
Move lifetime resolution module to rustc_hir_analysis.
2022-10-10 17:40:52 +00:00
Yuki Okushi
24424d0acb
Rollup merge of #102829 - compiler-errors:rename-impl-item-kind, r=TaKO8Ki
...
rename `ImplItemKind::TyAlias` to `ImplItemKind::Type`
The naming of this variant seems inconsistent given that this is not really a "type alias", and the associated type variant for `TraitItemKind` is just called `Type`.
2022-10-10 00:09:42 +09:00
Michael Goulet
70f3c79c50
ImplItemKind::TyAlias => ImplItemKind::Type
2022-10-09 07:09:57 +00:00
Oli Scherer
f85d3a7e33
Check hidden types in dead code
2022-10-07 19:43:46 +00:00
Oli Scherer
5d15beb591
Unconditionally encode hidden types in typeck results
2022-10-07 19:36:32 +00:00
Takayuki Maeda
fa767868df
fix a ICE #102768
2022-10-07 21:10:08 +09:00
Michael Goulet
21047f1a1c
Support default-body trait functions with RPITIT
2022-10-05 02:45:01 +00:00
Maybe Waffle
a8f7e244b7
Refactor rustc lint API
2022-10-01 10:03:06 +00:00
bors
65445a571c
Auto merge of #102471 - Dylan-DPC:rollup-ij3okjt, r=Dylan-DPC
...
Rollup of 7 pull requests
Successful merges:
- #102336 (Fix associated type bindings with anon const in GAT position)
- #102342 (Add negation methods for signed non-zero integers.)
- #102385 (Don't export `__heap_base` and `__data_end` on wasm32-wasi.)
- #102435 (Improve example of Iterator::reduce)
- #102436 (rustdoc: clean up "normalize.css 8" input override CSS)
- #102452 (fix minor ungrammatical sentence)
- #102455 (Use let-chaining in `WhileTrue::check_expr`.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-09-29 13:27:28 +00:00
Oli Scherer
6367e69929
Split collect.rs
2022-09-29 09:31:46 +00:00
Michael Goulet
92561f43f1
Support bindings with anon consts in generics
2022-09-27 17:42:15 +00:00
Michael Goulet
05267b5a50
Make type_of work correctly for const arg bindings
2022-09-27 17:42:14 +00:00
Michael Goulet
cca48285b8
Format type_of
2022-09-27 17:42:13 +00:00
lcnr
1fc86a63f4
rustc_typeck to rustc_hir_analysis
2022-09-27 10:37:23 +02:00