about summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-26 08:31:19 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-08 07:55:17 +1100
commit60e7c6898b2c8e67ec8754cd31f686217d4a944f (patch)
tree75fee982993d213022ded72021de3dccb73fec2b /compiler/rustc_mir_dataflow
parentf312775e4fe78278b48df8f016418adf2c5c413d (diff)
downloadrust-60e7c6898b2c8e67ec8754cd31f686217d4a944f.tar.gz
rust-60e7c6898b2c8e67ec8754cd31f686217d4a944f.zip
Remove `impl_visitable!`.
It is used just once. With it removed, the relevant code is a little
boilerplate-y but much easier to read, and is the same length. Overall I
think it's an improvement.
Diffstat (limited to 'compiler/rustc_mir_dataflow')
-rw-r--r--compiler/rustc_mir_dataflow/src/framework/visitor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_dataflow/src/framework/visitor.rs b/compiler/rustc_mir_dataflow/src/framework/visitor.rs
index 52cf87b676d..8b8a16bda99 100644
--- a/compiler/rustc_mir_dataflow/src/framework/visitor.rs
+++ b/compiler/rustc_mir_dataflow/src/framework/visitor.rs
@@ -84,8 +84,8 @@ pub trait ResultsVisitor<'mir, 'tcx, R> {
 
 /// Things that can be visited by a `ResultsVisitor`.
 ///
-/// This trait exists so that we can visit the results of multiple dataflow analyses simultaneously.
-/// DO NOT IMPLEMENT MANUALLY. Instead, use the `impl_visitable` macro below.
+/// This trait exists so that we can visit the results of one or more dataflow analyses
+/// simultaneously.
 pub trait ResultsVisitable<'tcx> {
     type Direction: Direction;
     type FlowState;