File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -379,17 +379,9 @@ pub fn check_ast_crate<T: EarlyLintPass>(
379379 // All of the buffered lints should have been emitted at this point.
380380 // If not, that means that we somehow buffered a lint for a node id
381381 // that was not lint-checked (perhaps it doesn't exist?). This is a bug.
382- //
383- // Rustdoc runs everybody-loops before the early lints and removes
384- // function bodies, so it's totally possible for linted
385- // node ids to not exist (e.g., macros defined within functions for the
386- // unused_macro lint) anymore. So we only run this check
387- // when we're not in rustdoc mode. (see issue #47639)
388- if !sess. opts . actually_rustdoc {
389- for ( _id, lints) in buffered. map {
390- for early_lint in lints {
391- sess. delay_span_bug ( early_lint. span , "failed to process buffered lint here" ) ;
392- }
382+ for ( _id, lints) in buffered. map {
383+ for early_lint in lints {
384+ sess. delay_span_bug ( early_lint. span , "failed to process buffered lint here" ) ;
393385 }
394386 }
395387}
You can’t perform that action at this time.
0 commit comments