mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
Honor cfg attributes on params when lowering their patterns
This commit is contained in:
parent
476d043874
commit
63ed71bd30
4 changed files with 38 additions and 8 deletions
|
|
@ -1070,3 +1070,13 @@ fn main() {
|
|||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cfg_params() {
|
||||
check_types(
|
||||
r#"
|
||||
fn my_fn(#[cfg(feature = "feature")] u8: u8, u32: u32) {}
|
||||
//^^^ u32
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue