Add deprecation message for top-level lint settings (#9582)

This commit is contained in:
Micha Reiser 2024-01-29 18:52:49 +01:00 committed by Zanie Blue
parent c3b33e9c4d
commit c2bf725086
7 changed files with 263 additions and 10 deletions

View file

@ -29,6 +29,15 @@ pub trait OptionsMetadata {
}
}
impl<T> OptionsMetadata for Option<T>
where
T: OptionsMetadata,
{
fn record(visit: &mut dyn Visit) {
T::record(visit);
}
}
/// Metadata of an option that can either be a [`OptionField`] or [`OptionSet`].
#[derive(Clone, PartialEq, Eq, Debug)]
pub enum OptionEntry {