Closed
Description
I'm trying to annotate all the parts of a crate that are available based on feature flags and I've had the following experience when annotating a trait impl.
#[cfg(feature = "registry")]
#[cfg_attr(docsrs, doc(cfg(feature = "registry")))]
impl<'a, L, S> LookupSpan<'a> for Layered<L, S>
where
S: Subscriber + LookupSpan<'a>,
{
type Data = S::Data;
fn span_data(&'a self, id: &span::Id) -> Option<Self::Data> {
self.inner.span_data(id)
}
}
This is what it looks like with the default visibility
After expanding a single [+]
Fully expanded
Ideally the default visibility with everything minimized should still indicate that this trait impl is dependent upon the given feature.