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.
This commit is contained in:
parent
f312775e4f
commit
60e7c6898b
2 changed files with 66 additions and 69 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue