File tree 1 file changed +4
-4
lines changed
compiler/rustc_middle/src/mir
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
//! ## Overview
4
4
//!
5
5
//! There are two visitors, one for immutable and one for mutable references,
6
- //! but both are generated by the following macro. The code is written according
7
- //! to the following conventions:
6
+ //! but both are generated by the `make_mir_visitor` macro.
7
+ //! The code is written according to the following conventions:
8
8
//!
9
9
//! - introduce a `visit_foo` and a `super_foo` method for every MIR type
10
10
//! - `visit_foo`, by default, calls `super_foo`
11
11
//! - `super_foo`, by default, destructures the `foo` and calls `visit_foo`
12
12
//!
13
- //! This allows you as a user to override `visit_foo` for types are
14
- //! interested in, and invoke (within that method) call
13
+ //! This allows you to override `visit_foo` for types you are
14
+ //! interested in, and invoke (within that method call)
15
15
//! `self.super_foo` to get the default behavior. Just as in an OO
16
16
//! language, you should never call `super` methods ordinarily except
17
17
//! in that circumstance.
You can’t perform that action at this time.
0 commit comments