Skip to content

Commit f546201

Browse files
committed
Rollup merge of rust-lang#33560 - eddyb:symtidy, r=alexcrichton
Use symlink_metadata in tidy to avoid panicking on broken symlinks. r? @alexcrichton
2 parents 8bc265b + 5541fdf commit f546201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/bins.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn check(path: &Path, bad: &mut bool) {
3535
return
3636
}
3737

38-
let metadata = t!(fs::metadata(&file), &file);
38+
let metadata = t!(fs::symlink_metadata(&file), &file);
3939
if metadata.mode() & 0o111 != 0 {
4040
println!("binary checked into source: {}", file.display());
4141
*bad = true;

0 commit comments

Comments
 (0)