This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit abb4640
committed
Auto merge of rust-lang#127524 - oli-obk:feed_item_attrs2, r=<try>
Make ast `MutVisitor` have the same method name and style as `Visitor`
It doesn't map 100% because some `MutVisitor` methods can filter or even expand to multiple items, but consistency seems nicer.
The last commit showcases how similar they are by changing ast validation to a `MutVisitor` (without actually doing any mutation yet). My plan is to replace all nodes that support it with error nodes if validation failed on them. This allows ast lowering to just assume things are error or valid, and avoids having to redo some checks, delaying bugs or checking the global error counter.
tracking issue: rust-lang#127615File tree
28 files changed
+934
-849
lines changed- compiler
- rustc_ast_lowering/src
- rustc_ast_passes
- src
- rustc_ast/src
- attr
- rustc_builtin_macros/src
- rustc_expand/src
- mbe
- rustc_interface/src
- rustc_parse/src
- parser
- rustc_resolve/src
- src/tools/clippy/clippy_lints/src
- tests
- ui-fulldeps
- ui/parser
28 files changed
+934
-849
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3638 | 3638 | | |
3639 | 3639 | | |
3640 | 3640 | | |
| 3641 | + | |
3641 | 3642 | | |
3642 | 3643 | | |
3643 | 3644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
1886 | 1890 | | |
1887 | | - | |
1888 | | - | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1889 | 1894 | | |
1890 | 1895 | | |
1891 | 1896 | | |
| |||
2827 | 2832 | | |
2828 | 2833 | | |
2829 | 2834 | | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
2830 | 2844 | | |
2831 | 2845 | | |
2832 | 2846 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
147 | 151 | | |
148 | | - | |
149 | | - | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
239 | 247 | | |
240 | 248 | | |
241 | | - | |
| 249 | + | |
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
| |||
257 | 265 | | |
258 | 266 | | |
259 | 267 | | |
260 | | - | |
| 268 | + | |
261 | 269 | | |
262 | 270 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
267 | 277 | | |
268 | | - | |
| 278 | + | |
269 | 279 | | |
270 | 280 | | |
271 | 281 | | |
| |||
0 commit comments