Support #[cfg]
s on generic parameters
#11756
Labels
C-feature
Category: feature request
E-medium
S-actionable
Someone could pick this issue up and work on it right now
This (valid) Rust code currently shows type
S<{unknown}>
fors
:This is because we ignore
#[cfg]
attributes on generic parameters.To fix this,
generic_params_query
needs to be changed to filter out parameters whose#[cfg]
expression evaluates tofalse
, and it looks like the item tree needs to be changed to record these attributes.The text was updated successfully, but these errors were encountered: