lcnr
9cba14b95b
use TypingEnv
when no infcx
is available
...
the behavior of the type system not only depends on the current
assumptions, but also the currentnphase of the compiler. This is
mostly necessary as we need to decide whether and how to reveal
opaque types. We track this via the `TypingMode`.
2024-11-18 10:38:56 +01:00
Jubilee Young
843b6e0859
compiler: Directly use rustc_abi in mir_transform
2024-11-03 13:38:47 -08:00
Lukas Markeffsky
bd31e3ed70
be even more precise about "cast" vs "coercion"
2024-09-24 23:12:02 +02:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Nicholas Nethercote
6af470e360
Reduce visibilities, and add warn(unreachable_pub)
.
...
Lots of unnecessary `pub`s in this crate. Most are downgraded to
`pub(super)`, though some don't need any visibility.
2024-09-09 08:48:09 +10:00
Nicholas Nethercote
ed5161c5ac
Remove #[macro_use] extern crate tracing
from rustc_mir_transform
.
2024-08-30 10:01:34 +10:00
Ralf Jung
35709be02d
rename AddressOf -> RawBorrow inside the compiler
2024-08-18 19:46:53 +02:00
Michael Goulet
342c1b03d6
Rename InstanceDef -> InstanceKind
2024-06-16 21:35:21 -04:00
Michael Goulet
93ff86ed7c
Use is_lang_item more aggressively
2024-06-14 16:54:29 -04:00
Daria Sukhonina
7cdd95e1a6
Optimize async drop glue for some old types
2024-05-29 12:56:59 +03:00
bors
34582118af
Auto merge of #125076 - compiler-errors:alias-term, r=lcnr
...
Split out `ty::AliasTerm` from `ty::AliasTy`
Splitting out `AliasTerm` (for use in project and normalizes goals) and `AliasTy` (for use in `ty::Alias`)
r? lcnr
2024-05-13 22:20:43 +00:00
Michael Goulet
3bcdf3058e
split out AliasTy -> AliasTerm
2024-05-13 11:59:42 -04:00
Nicholas Nethercote
d49d4ae192
Remove extern crate rustc_middle
from rustc_mir_transform
.
2024-05-13 08:20:18 +10:00
Daria Sukhonina
e239e73a77
Fix disabling the export of noop async_drop_in_place_raw
2024-04-18 15:19:05 +03:00
Daria Sukhonina
80c0b7e90f
Use non-exhaustive matches for TyKind
...
Also no longer export noop async_drop_in_place_raw
2024-04-17 20:49:53 +03:00
zetanumbers
24a24ec6ba
Add simple async drop glue generation
...
Explainer: https://zetanumbers.github.io/book/async-drop-design.html
https://github.com/rust-lang/rust/pull/121801
2024-04-16 20:45:07 +03:00