Merge remote-tracking branch 'upstream/master' into rustup
This commit is contained in:
commit
415fdb2d1a
522 changed files with 5251 additions and 2556 deletions
|
|
@ -37,7 +37,7 @@ impl ClippyProjectInfo {
|
|||
|
||||
pub fn setup_rustc_src(rustc_path: &str) {
|
||||
let Ok(rustc_source_dir) = check_and_get_rustc_dir(rustc_path) else {
|
||||
return
|
||||
return;
|
||||
};
|
||||
|
||||
for project in CLIPPY_PROJECTS {
|
||||
|
|
|
|||
|
|
@ -340,7 +340,10 @@ pub fn deprecate(name: &str, reason: Option<&String>) {
|
|||
let name_upper = name.to_uppercase();
|
||||
|
||||
let (mut lints, deprecated_lints, renamed_lints) = gather_all();
|
||||
let Some(lint) = lints.iter().find(|l| l.name == name_lower) else { eprintln!("error: failed to find lint `{name}`"); return; };
|
||||
let Some(lint) = lints.iter().find(|l| l.name == name_lower) else {
|
||||
eprintln!("error: failed to find lint `{name}`");
|
||||
return;
|
||||
};
|
||||
|
||||
let mod_path = {
|
||||
let mut mod_path = PathBuf::from(format!("clippy_lints/src/{}", lint.module));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue