-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Meta issue for Rust API Guidelines #1798
Comments
Nice work! (You should use URLs with the commit hash in them (press y on github.com) so they continue to work in the future.) |
Thanks! I volontarily did not do that for this so that we point to the latest version of the guidelines. This might mean that we get broken links once in a while but that'll mean that the list here is outdated. |
Note that C-EXAMPLE is covered by #1454. |
Not quite, |
As predicted, the links no longer work. Now, how using links like this one instead? |
This was checked off in the original checklist, so I wanted to double-check I wasn't missing anything. |
@Susurrus I split the list into sub-lists and unchecked the main item. |
Let's see what makes sense to get into Clippy or not from the Rust API Guidelines.
Check the box if a lint or issue already exist for an item. See also is:issue is:open label:A-guidelines.
rustc
'sbad-style
lint group.as_
,to_
,into_
conventions (C-CONV)iter
,iter_mut
,into_iter
(C-ITER)Copy
(rustc'smissing-copy-implementations
)Clone
Eq
PartialEq
Ord
PartialOrd
Hash
Debug
(rustc'smissing-debug-implementations
)Display
Default
(we do havenew_without_default
)From
,AsRef
,AsMut
(C-CONV-TRAITS)SHOULD_IMPLEMENT_TRAIT
.Into
andTryInto
are never implemented manually (only automatically viaFrom
)FromIterator
andExtend
(C-COLLECT)Serialize
,Deserialize
(C-SERDE)Send
andSync
where possible (C-SEND-SYNC)Hex
,Octal
,Binary
formatting (C-NUM-FMT)R: Read
andW: Write
by value (C-RW-VALUE)?
, nottry!
, notunwrap
(C-QUESTION-MARK)clippy::cargo_common_metadata
)readme, keywords, categories
html_root_url
attribute #1788Deref
andDerefMut
(C-DEREF)bool
orOption
(C-CUSTOM-TYPE)bitflags
, not enums (C-BITFLAG)Debug
(C-DEBUG)rustc
'smissing-debug-implementations
.Debug
representation is never empty (C-DEBUG-NONEMPTY)Debug
representation is never empty #1796The text was updated successfully, but these errors were encountered: