-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[move][clippy] Apply clippy CI check to all targets #17165
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, couple small nits. What cargo fmt did in one place made me sad :'( but nothing to do about it.
@@ -222,16 +222,14 @@ fn invalid_signature_for_vector_operation() { | |||
|
|||
let skeleton = basic_test_module(); | |||
let sig_index = SignatureIndex(skeleton.signatures.len() as u16); | |||
for bytecode in vec![ | |||
VecPack(sig_index, 0), | |||
for bytecode in [VecPack(sig_index, 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ick is this what cargo fmt does for this? 🤢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it doesn't. Our rustfmt is really fucked for external-crates
@@ -3807,11 +3807,10 @@ fn assert_use_def_with_doc_string( | |||
"for use in column {use_col} of line {use_line} in file {use_file}" | |||
); | |||
let info = def_info.get(&use_def.def_loc).unwrap(); | |||
let info_str = format!("{}", info); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit
let info_str = format!("{}", info); | |
let info_str = info.to_string(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it implements to_string? Or does anything that has Display has to_string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct -- anything that is Display
has to_string
-- to_string
calls Display
underneath it https://doc.rust-lang.org/std/string/trait.ToString.html
self.borrows_from | ||
.get(node) | ||
.map(|s| s.iter().map(|(n, e)| (n, e)).collect_vec()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Test plan
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.