From d39d60971bafe34f626585e4887e7eec726fe972 Mon Sep 17 00:00:00 2001 From: xFrednet Date: Sun, 6 Mar 2022 14:18:28 +0100 Subject: Handle `#[expect(unfulfilled_lint_expectations)]` with a lint message --- compiler/rustc_errors/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_errors/src') 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 { assert!( self.inner.borrow().unstable_expect_diagnostics.is_empty(), -- cgit 1.4.1-3-g733a5