Skip to content

Commit 181458b

Browse files
Rollup merge of rust-lang#137002 - chenyukang:fix-early-lint-check-desc, r=compiler-errors
Fix early lint check desc in query When I debugging this issue: rust-lang#136906 (comment) I found early lint checking is performed after [macro expansion](https://github.com/chenyukang/rust/blob/37520e6d89eeea96b966ab281a7adf1775f7e207/compiler/rustc_interface/src/passes.rs#L267), but [prior to AST lowering](https://github.com/chenyukang/rust/blob/37520e6d89eeea96b966ab281a7adf1775f7e207/compiler/rustc_ast_lowering/src/lib.rs#L427). r? ``@cjgillot``
2 parents 922119b + 37520e6 commit 181458b

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_middle/src/query/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ rustc_queries! {
116116
}
117117

118118
query early_lint_checks(_: ()) {
119-
desc { "perform lints prior to macro expansion" }
119+
desc { "perform lints prior to AST lowering" }
120120
}
121121

122122
query resolutions(_: ()) -> &'tcx ty::ResolverGlobalCtxt {

0 commit comments

Comments
 (0)