diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2024-04-02 00:26:10 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2024-04-14 18:45:28 +0200 |
| commit | f0f392781f2829aaf4368e28c2ba3e9bc0e6115f (patch) | |
| tree | f078c66e265afc5bf87bf79401fc5eb8f062f431 /clippy_utils | |
| parent | 2e989dc2809937fe33c17995e2147873977d2235 (diff) | |
| download | rust-f0f392781f2829aaf4368e28c2ba3e9bc0e6115f.tar.gz rust-f0f392781f2829aaf4368e28c2ba3e9bc0e6115f.zip | |
store the span of the nested part of the use tree in the ast
Diffstat (limited to 'clippy_utils')
| -rw-r--r-- | clippy_utils/src/ast_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/ast_utils.rs b/clippy_utils/src/ast_utils.rs index f594a40ff59..36d54bb41fa 100644 --- a/clippy_utils/src/ast_utils.rs +++ b/clippy_utils/src/ast_utils.rs @@ -637,7 +637,7 @@ pub fn eq_use_tree_kind(l: &UseTreeKind, r: &UseTreeKind) -> bool { match (l, r) { (Glob, Glob) => true, (Simple(l), Simple(r)) => both(l, r, |l, r| eq_id(*l, *r)), - (Nested(l), Nested(r)) => over(l, r, |(l, _), (r, _)| eq_use_tree(l, r)), + (Nested { items: l, .. }, Nested { items: r, .. }) => over(l, r, |(l, _), (r, _)| eq_use_tree(l, r)), _ => false, } } |
