rust/compiler
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
..
rustc remove unused jemallocator crate 2022-01-28 16:56:05 +01:00
rustc_apfloat
rustc_arena Remove unused dep from rustc_arena 2022-02-02 17:37:14 +01:00
rustc_ast Auto merge of #93752 - eholk:drop-tracking-break-continue, r=nikomatsakis 2022-02-15 02:27:37 +00:00
rustc_ast_lowering Auto merge of #91403 - cjgillot:inherit-async, r=oli-obk 2022-02-12 21:42:10 +00:00
rustc_ast_passes Auto merge of #93561 - Amanieu:more-unwind-abi, r=nagisa 2022-02-08 03:20:05 +00:00
rustc_ast_pretty Pretty print ItemKind::Use in rustfmt style 2022-02-07 21:51:05 -08:00
rustc_attr Ensure that queries only return Copy types. 2022-02-09 20:07:38 +01:00
rustc_borrowck Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_builtin_macros Remove the alt_std_name option 2022-02-11 20:28:38 +01:00
rustc_codegen_cranelift Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_codegen_gcc Unconditionally update symbols 2022-02-10 18:27:18 +01:00
rustc_codegen_llvm Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
rustc_codegen_ssa Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
rustc_const_eval Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
rustc_data_structures Rename PtrKey as Interned and improve it. 2022-02-15 15:50:29 +11:00
rustc_driver Remove Config::stderr 2022-02-13 11:49:52 +01:00
rustc_error_codes Auto merge of #91403 - cjgillot:inherit-async, r=oli-obk 2022-02-12 21:42:10 +00:00
rustc_errors add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
rustc_expand add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
rustc_feature Rollup merge of #93824 - Amanieu:stable_cfg_target_has_atomic, r=davidtwco 2022-02-10 12:10:00 +01:00
rustc_fs_util
rustc_graphviz eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
rustc_hir Auto merge of #93938 - BoxyUwU:fix_res_self_ty, r=lcnr 2022-02-14 12:26:43 +00:00
rustc_hir_pretty Rollup merge of #93746 - cjgillot:nodefii, r=nikomatsakis 2022-02-09 14:12:22 +09:00
rustc_incremental add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
rustc_index implement lint for suspicious auto trait impls 2022-02-01 09:55:19 +01:00
rustc_infer Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_interface Remove Config::stderr 2022-02-13 11:49:52 +01:00
rustc_lexer
rustc_lint Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_lint_defs implement lint for suspicious auto trait impls 2022-02-01 09:55:19 +01:00
rustc_llvm Apply noundef attribute to &T, &mut T, Box<T>, bool 2022-02-05 01:09:52 -05:00
rustc_log Make rustc_log doc test runnable 2022-01-03 22:31:56 -08:00
rustc_macros Make Decodable and Decoder infallible. 2022-01-22 10:38:31 +11:00
rustc_metadata fast_reject: remove StripReferences 2022-02-14 07:37:14 +01:00
rustc_middle Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_mir_build Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_mir_dataflow Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
rustc_mir_transform Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_monomorphize Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
rustc_parse Rollup merge of #93595 - compiler-errors:ice-on-lifetime-arg, r=jackh726 2022-02-12 09:26:21 +01:00
rustc_parse_format
rustc_passes change to a struct variant 2022-02-12 11:23:53 +00:00
rustc_plugin_impl
rustc_privacy change to a struct variant 2022-02-12 11:23:53 +00:00
rustc_query_impl Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
rustc_query_system Revert "Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis" 2022-02-11 07:18:06 +00:00
rustc_resolve Rename PtrKey as Interned and improve it. 2022-02-15 15:50:29 +11:00
rustc_save_analysis change to a struct variant 2022-02-12 11:23:53 +00:00
rustc_serialize Drop json::from_reader 2022-02-05 15:07:10 -05:00
rustc_session Remove the alt_std_name option 2022-02-11 20:28:38 +01:00
rustc_span Rollup merge of #93936 - bjorn3:simplifications2, r=cjgillot 2022-02-13 06:44:18 +01:00
rustc_symbol_mangling Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_target rustc_target: Remove compiler-rt linking hack on Android 2022-02-13 21:22:02 +08:00
rustc_trait_selection Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_traits Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_ty_utils Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_type_ir Revert "Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis" 2022-02-11 07:18:06 +00:00
rustc_typeck Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00