rust/compiler/rustc_lint/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
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
builtin.rs Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
context.rs add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
early.rs rustc_lint: Stop creating a fake ast::Crate for running early lints 2022-01-23 19:31:32 +08:00
enum_intrinsics_non_enums.rs initial revert 2022-01-15 01:16:55 +00:00
hidden_unicode_codepoints.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
internal.rs change to a struct variant 2022-02-12 11:23:53 +00:00
late.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
levels.rs rustc_lint: Stop creating a fake ast::Crate for running early lints 2022-01-23 19:31:32 +08:00
lib.rs add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
methods.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
non_ascii_idents.rs rustc_lint: Remove some redundant fields from EarlyContext 2022-01-23 18:51:51 +08:00
non_fmt_panic.rs Take in account the unreachable! macro in the non_fmt_panic lint 2022-01-31 17:09:31 +01:00
nonstandard_style.rs rustc_lint: Remove some redundant fields from EarlyContext 2022-01-23 18:51:51 +08:00
noop_method_call.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
pass_by_value.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
passes.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
redundant_semicolon.rs Lint on redundant trailing semicolon after item 2020-12-29 16:30:02 -05:00
tests.rs Update to last upstream version 2021-07-08 17:14:28 +02:00
traits.rs drive-by: use is_const and is_const_if_const 2022-01-26 19:24:01 -08:00
types.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
unused.rs Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk 2021-12-19 09:31:37 +00:00