diff options
| author | xFrednet <xFrednet@gmail.com> | 2022-03-06 14:18:28 +0100 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2022-03-07 19:59:10 +0100 |
| commit | d39d60971bafe34f626585e4887e7eec726fe972 (patch) | |
| tree | fba3ce60fa91a7c38264eb4f42ad55beda12277c /compiler/rustc_errors/src | |
| parent | 165b5583e56ad6d54922a7b5117a37c2ca2c89a1 (diff) | |
| download | rust-d39d60971bafe34f626585e4887e7eec726fe972.tar.gz rust-d39d60971bafe34f626585e4887e7eec726fe972.zip | |
Handle `#[expect(unfulfilled_lint_expectations)]` with a lint message
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index cba06448c4a..5ba1fe9b478 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -970,6 +970,7 @@ impl Handler { /// This methods steals all [`LintExpectationId`]s that are stored inside /// [`HandlerInner`] and indicate that the linked expectation has been fulfilled. + #[must_use] pub fn steal_fulfilled_expectation_ids(&self) -> FxHashSet<LintExpectationId> { assert!( self.inner.borrow().unstable_expect_diagnostics.is_empty(), |
