-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive when two macros with the same name exists and one of them is exported #1042
Comments
CBenoit
added
A-lint
Area: new or existing lint
C-bug
Category: doesn't meet expectations
labels
Dec 13, 2024
CBenoit
added a commit
to Devolutions/IronRDP
that referenced
this issue
Dec 13, 2024
This was causing a false-positive in cargo-semver-checks: - obi1kenobi/cargo-semver-checks#1042
CBenoit
added a commit
to Devolutions/IronRDP
that referenced
this issue
Dec 13, 2024
This was causing a false-positive in cargo-semver-checks: - obi1kenobi/cargo-semver-checks#1042
Ah, I'm so sorry! We should have caught this before release. Thanks for the report and the excellent repro example. I'll try to fix this ASAP, and I'll make sure none of our other macro-related lints have the same problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which lint or lints are the issue
macro_no_longer_exported
Known issues that might be causing this
Steps to reproduce the bug with the above code
Publish a crate with this code:
Next time cargo semver-checks is called, it will reports that foo is no longer exported.
Actual Behaviour
Check fails.
Expected Behaviour
Check passes.
Verbose Lint Output
Generated System Information
System information:
Software version
cargo-semver-checks 0.38.0
Operating system
Linux 6.1.119-1-MANJARO
Command-line
cargo version
Compile time information
Build Configuration
No response
Additional Context
The crate where this false-positive is reported can be found here: https://github.com/Devolutions/IronRDP/tree/master/crates/ironrdp-core
The false-positive is reported when checking commit
0c10367ebcd9767085ee5fc07203353e9a982d3c
againstironrdp-core v0.1.1
.I ended up modifying the name of the internal macro as it was confusing anyway.
The text was updated successfully, but these errors were encountered: