Skip to content
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

Add lint for missing pub module-level const #491

Merged
merged 15 commits into from
Jul 14, 2023

Conversation

gliu20
Copy link
Contributor

@gliu20 gliu20 commented Jul 13, 2023

This addresses part of #366

Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks headed in a good direction, good job so far!

I think usual Rust style is to use ALL_CAPS for const and static items, and I think clippy will complain about the naming in the test crates. Would you mind double-checking this and then if needed uppercasing the const and static names in the test crates?

test_crates/pub_module_level_const_missing/new/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to look into the re-export issue you're seeing, it's possible the bug is in my code.

So we can parallelize work, could you try in the meantime to find a good reference link for why this is a major breaking change, and also work on the remaining TODOs in the description and user-facing error text? Aim for correct but concise text in all those — we really want them as short as feasible while conveying all the important info.

@gliu20 gliu20 marked this pull request as ready for review July 13, 2023 21:52
Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! 🚀

@obi1kenobi obi1kenobi merged commit 79e9cfb into obi1kenobi:main Jul 14, 2023
@gliu20 gliu20 deleted the use-make-new-lint branch July 14, 2023 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants