rust/compiler/rustc_middle/src
Dylan DPC f4bf64c3f0
Rollup merge of #97292 - compiler-errors:tcxify-rustc, r=davidtwco
Lifetime variance fixes for rustc

#97287 migrates rustc to a `Ty` type that is invariant over its lifetime `'tcx`, so I need to fix a bunch of places that assume that `Ty<'a>` and `Ty<'b>` can be unified by shortening both to some common lifetime.

This is doable, since many lifetimes are already `'tcx`, so all this PR does is be a bit more explicit that elided lifetimes are actually `'tcx`.

Split out from #97287 so the compiler team can review independently.
2022-05-23 15:11:04 +02:00
..
dep_graph Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
hir Auto merge of #95418 - cjgillot:more-disk, r=davidtwco 2022-05-20 20:49:55 +00:00
infer fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
middle factor out the rvalue lifetime rule 2022-05-22 16:46:50 +08:00
mir Lifetime variance fixes for rustc 2022-05-22 14:29:32 -07:00
query factor out the rvalue lifetime rule 2022-05-22 16:46:50 +08:00
thir Reimplement lowering of sym operands for asm! so that it also works with global_asm! 2022-04-14 15:32:03 +01:00
traits Lifetime variance fixes for rustc 2022-05-22 14:29:32 -07:00
ty Rollup merge of #97292 - compiler-errors:tcxify-rustc, r=davidtwco 2022-05-23 15:11:04 +02:00
util span: move MultiSpan 2022-04-05 07:01:00 +01:00
arena.rs factor out the rvalue lifetime rule 2022-05-22 16:46:50 +08:00
lib.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
lint.rs Move lint expectation checking into a separate query (RFC 2383) 2022-05-08 14:37:14 +02:00
macros.rs Rename TypeFolderFallible to FallibleTypeFolder 2021-12-02 16:14:18 +00:00
metadata.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs correctly deal with user type ascriptions in pat 2022-05-21 08:13:17 +02:00