single-component-path-imports, and macro_rules macros #13419
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
With
macro_rules
macros,use name_of_the_macro
can be useful to give the macro a path scope. Macros otherwise only have lexical scope.This can be useful to refer to the macro before its definition, or for rustdoc.
Lint Name
single-component-path-imports
Reproducer
Steps
Expected output
No complaints
Actual output
Repro that suggested code is broken
This produces:
(multiple copies).
For my reference, the current branch tip for report-clippy-single-path-imports-false-positive is 8063b71ff92dd30d7fdf2d8200cda7e06f2a0db8
Version
rustc 1.81.0-beta.6 (b5fd9f6f1 2024-08-21)
binary: rust
commit-hash: b5fd9f6f1061b79c045cc08fe03e00caad536800
commit-date: 2024-08-21
host: x86_64-unknown-linux-gnu
release: 1.81.0-beta.6
LLVM version: 18.1.7
Additional Labels
No response
The text was updated successfully, but these errors were encountered: