We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
e.g,
pub use other_file::do_something; pub fn main() { do_something; // this line does nothing but if you remove it `do_something` won't be externally visible. }
This requires one to create bogus references to all public functions; as in https://github.com/tgolsson/aoc-2020/blob/main/scripts/main.rn#L11.
I've noticed similar issues with module-private functions being marked as unused if the main function isn't called main, e.g., https://github.com/tgolsson/aoc-2020/blob/main/scripts/day1.rn#L3 filter_inner is marked as unused by the LSP.
filter_inner
The text was updated successfully, but these errors were encountered:
@udoprog I'm happy with after your improvements, do you feel more work is needed or shall we close this? :-)
Sorry, something went wrong.
Ah, yeah, this can be closed. Thanks!
No branches or pull requests
e.g,
This requires one to create bogus references to all public functions; as in https://github.com/tgolsson/aoc-2020/blob/main/scripts/main.rn#L11.
I've noticed similar issues with module-private functions being marked as unused if the main function isn't called main, e.g.,
https://github.com/tgolsson/aoc-2020/blob/main/scripts/day1.rn#L3
filter_inner
is marked as unused by the LSP.The text was updated successfully, but these errors were encountered: