about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-09 11:46:30 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-09 20:15:42 +1000
commit609b9a67c992dadf19bd7d8cdc77237d82d95152 (patch)
treec061e23fad19b7dfd803e2fe534065571c698e69
parent87293c9585a7fb2cc83ca9949ae79661d5d3c31a (diff)
downloadrust-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.rs4
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),