diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-09 11:46:30 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-09 20:15:42 +1000 |
| commit | 609b9a67c992dadf19bd7d8cdc77237d82d95152 (patch) | |
| tree | c061e23fad19b7dfd803e2fe534065571c698e69 | |
| parent | 87293c9585a7fb2cc83ca9949ae79661d5d3c31a (diff) | |
| download | rust-609b9a67c992dadf19bd7d8cdc77237d82d95152.tar.gz rust-609b9a67c992dadf19bd7d8cdc77237d82d95152.zip | |
Correct a comment.
I tried simplifying `RegionCtxt`, which led me to finding that the fields are printed in `sccs_info`.
| -rw-r--r-- | compiler/rustc_borrowck/src/renumber.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_borrowck/src/renumber.rs b/compiler/rustc_borrowck/src/renumber.rs index f5757bcaa1d..d382f264c37 100644 --- a/compiler/rustc_borrowck/src/renumber.rs +++ b/compiler/rustc_borrowck/src/renumber.rs @@ -26,9 +26,7 @@ pub fn renumber_mir<'tcx>( renumberer.visit_body(body); } -// FIXME(@lcnr): A lot of these variants overlap and it seems like -// this type is only used to decide which region should be used -// as representative. This should be cleaned up. +// The fields are used only for debugging output in `sccs_info`. #[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)] pub(crate) enum RegionCtxt { Location(Location), |
