mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Check for differing attributes in granularity guessing
This commit is contained in:
parent
b4fe479236
commit
2bf720900f
3 changed files with 21 additions and 7 deletions
|
@ -717,6 +717,18 @@ pub use foo::bar::qux;
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn guess_skips_differing_attrs() {
|
||||
check_guess(
|
||||
r"
|
||||
pub use foo::bar::baz;
|
||||
#[doc(hidden)]
|
||||
pub use foo::bar::qux;
|
||||
",
|
||||
ImportGranularityGuess::Unknown,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn guess_grouping_matters() {
|
||||
check_guess(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue