-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
warn when int or uint is used in a native type decl #1403
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Comments
You'd want to make sure the warning doesn't trigger when referring to Rust |
Yes, I would only trigger the warning if the user literally typed |
lht
added a commit
to lht/rust
that referenced
this issue
Jan 16, 2012
lht
added a commit
to lht/rust
that referenced
this issue
Jan 18, 2012
lht
added a commit
that referenced
this issue
Jan 18, 2012
bjorn3
added a commit
to bjorn3/rust
that referenced
this issue
Oct 29, 2023
…assembler Support and stabilize inline asm on all platforms
bjorn3
added a commit
to bjorn3/rust
that referenced
this issue
Nov 10, 2023
rust-lang#1403 extended support to all targets supported by cg_clif
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
* Added jq for json querying. * Added clippy to regression. * Added error ignore and todo to kani-compiler. * Added clippy todo to cprover_bindings. * Forced failure on warnings (Werror for clippy). * Added clippy todo to compiletest. * Clippy supression for bookrunner. * Resolved metadata warnings with publish = false. * Clippy todo for kani library. * Clippy todos and publish fix for kani_macros. * Cargo fmt. * Temporally turned off clippy fail. * Moved clippy to format checks. * Moved clippy to the format check. * Added missing dependency. * Fixed yaml overwrite problem. * Gather stats on clippy warnings. * jq install for osx not needed. * Moved clippy control to a central config file. * Fixed clippy warnings under library/ * Adjusted actions to print stats by removing lint supression. * Ignored 3 clippy warnings that regressed after merge. * Forgot to remove manual -A * got rid of redundant allowed lints. * Moved jq install to workflow side. * removed .cargo from gitignore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Perhaps we should issue a warning---or even an error?---when
int
oruint
is used in a native type declaration? It is a very common mistake to assume they are the same as the C typesint
andunsigned
. We could suggest the use ofctypes::c_int
orctypes::long
etc.The text was updated successfully, but these errors were encountered: