rust/compiler/rustc_middle/src
Nicholas Nethercote 7024dc523a Overhaul RegionKind and Region.
Specifically, change `Region` from this:
```
pub type Region<'tcx> = &'tcx RegionKind;
```
to this:
```
pub struct Region<'tcx>(&'tcx Interned<RegionKind>);
```

This now matches `Ty` and `Predicate` more closely.

Things to note
- Regions have always been interned, but we haven't been using pointer-based
  `Eq` and `Hash`. This is now happening.
- I chose to impl `Deref` for `Region` because it makes pattern matching a lot
  nicer, and `Region` can be viewed as just a smart wrapper for `RegionKind`.
- Various methods are moved from `RegionKind` to `Region`.
- There is a lot of tedious sigil changes.
- A couple of types like `HighlightBuilder`, `RegionHighlightMode` now have a
  `'tcx` lifetime because they hold a `Ty<'tcx>`, so they can call `mk_region`.
- A couple of test outputs change slightly, I'm not sure why, but the new
  outputs are a little better.
2022-02-15 16:08:52 +11:00
..
dep_graph Show a more informative panic message when DefPathHash does not exist 2022-01-19 17:36:44 -05:00
hir Make all hir::Map methods consistently by-value 2022-02-10 11:54:06 +01:00
infer Renumber universes when canonicalizing for Chalk 2022-02-11 21:38:17 +00:00
middle Auto merge of #93511 - cjgillot:query-copy, r=oli-obk 2022-02-10 09:37:07 +00:00
mir Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
query Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
thir Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
traits Ensure that queries only return Copy types. 2022-02-09 20:07:38 +01:00
ty Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
util Use AddAssign impl 2021-11-09 23:47:36 +01:00
arena.rs Overhaul PredicateInner and Predicate. 2022-02-15 16:03:26 +11:00
lib.rs add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
lint.rs update FutureIncompatibilityReason 2022-02-01 09:55:19 +01:00
macros.rs Rename TypeFolderFallible to FallibleTypeFolder 2021-12-02 16:14:18 +00:00
metadata.rs rustc_middle: Rename Export to ModChild and add some comments 2022-01-09 09:22:07 +08:00
tests.rs
thir.rs Formally implement let chains 2022-01-18 19:38:17 -03:00