diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-08-09 09:52:12 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-09-03 19:14:19 +0200 |
| commit | 040239465aefc09f8c837ff9d4d66ca6297e5c5c (patch) | |
| tree | eecca87b57c05395eb5c3ed691458cde010c21e3 /compiler/rustc_data_structures/src/steal.rs | |
| parent | 6199b69c53a8c275ca3cd59647ea0af5ca29aae2 (diff) | |
| download | rust-040239465aefc09f8c837ff9d4d66ca6297e5c5c.tar.gz rust-040239465aefc09f8c837ff9d4d66ca6297e5c5c.zip | |
Add an internal lint that warns when accessing untracked data
Diffstat (limited to 'compiler/rustc_data_structures/src/steal.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/steal.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/steal.rs b/compiler/rustc_data_structures/src/steal.rs index 0f2c0eee27d..aaa95f6b7f1 100644 --- a/compiler/rustc_data_structures/src/steal.rs +++ b/compiler/rustc_data_structures/src/steal.rs @@ -57,6 +57,7 @@ impl<T> Steal<T> { /// /// This should not be used within rustc as it leaks information not tracked /// by the query system, breaking incremental compilation. + #[cfg_attr(not(bootstrap), rustc_lint_untracked_query_information)] pub fn is_stolen(&self) -> bool { self.value.borrow().is_none() } |
