diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-03-19 14:40:38 +0100 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-03-21 12:18:50 +0100 |
| commit | 68aaa8d103f8d17dc9fc721a80ceb45d2ec9585d (patch) | |
| tree | 5f39680275e488fac3a853f633dc1436d20cd5ea /src | |
| parent | 9c05758ed47166d14bf073e6941dc95020ff7713 (diff) | |
| download | rust-68aaa8d103f8d17dc9fc721a80ceb45d2ec9585d.tar.gz rust-68aaa8d103f8d17dc9fc721a80ceb45d2ec9585d.zip | |
Allow unused code in tests
To avoid working around some code being unused in tests due to it being stubbed out with `#[cfg(test)]`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs index 1fba17dcf30..ec5c0c53baa 100644 --- a/src/bootstrap/src/lib.rs +++ b/src/bootstrap/src/lib.rs @@ -15,6 +15,7 @@ //! //! More documentation can be found in each respective module below, and you can //! also check out the `src/bootstrap/README.md` file for more information. +#![cfg_attr(test, allow(unused))] use std::cell::{Cell, RefCell}; use std::collections::{BTreeSet, HashMap, HashSet}; |
