diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-09-20 20:04:35 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-09-22 19:36:11 +0200 |
| commit | fc43df0333d5862a219f16d294ae38b14b9191d3 (patch) | |
| tree | 9b69844fa4ca64623bc06cb0738450061690dfd3 /compiler/rustc_lint/src/expect.rs | |
| parent | 381bd2a836f96c9dede1f5ee740e70194d6fb149 (diff) | |
| download | rust-fc43df0333d5862a219f16d294ae38b14b9191d3.tar.gz rust-fc43df0333d5862a219f16d294ae38b14b9191d3.zip | |
Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk"
This reverts commit 2cb9a65684dba47c52de8fa938febf97a73e70a9, reversing changes made to 750bd1a7ff3e010611b97ee75d30b7cbf5f3a03c.
Diffstat (limited to 'compiler/rustc_lint/src/expect.rs')
| -rw-r--r-- | compiler/rustc_lint/src/expect.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs index b9a3d52ca9b..699e8154318 100644 --- a/compiler/rustc_lint/src/expect.rs +++ b/compiler/rustc_lint/src/expect.rs @@ -16,10 +16,8 @@ fn check_expectations(tcx: TyCtxt<'_>, tool_filter: Option<Symbol>) { return; } - let lint_expectations = tcx.lint_expectations(()); let fulfilled_expectations = tcx.sess.diagnostic().steal_fulfilled_expectation_ids(); - - tracing::debug!(?lint_expectations, ?fulfilled_expectations); + let lint_expectations = &tcx.lint_levels(()).lint_expectations; for (id, expectation) in lint_expectations { // This check will always be true, since `lint_expectations` only |
