Skip to content

Commit 087cdb4

Browse files
committed
---
yaml --- r: 277306 b: refs/heads/try c: bf624c4 h: refs/heads/master
1 parent 2d13145 commit 087cdb4

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 01d2b4ab6bdb33e8678c43612b81dbbbad32cc93
4+
refs/heads/try: bf624c413f3eb593bd90496595900990b320f30a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/tools/tidy/src/bins.rs

Lines changed: 1 addition & 1 deletion
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));
38+
let metadata = t!(fs::metadata(&file), &file);
3939
if metadata.mode() & 0o111 != 0 {
4040
println!("binary checked into source: {}", file.display());
4141
*bad = true;

branches/try/src/tools/tidy/src/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::fs::File;
2020
use std::path::Path;
2121

2222
pub fn check(path: &Path, bad: &mut bool) {
23-
for entry in t!(path.read_dir()).map(|e| t!(e)) {
23+
for entry in t!(path.read_dir(), path).map(|e| t!(e)) {
2424
// Look for `Cargo.toml` with a sibling `src/lib.rs` or `lib.rs`
2525
if entry.file_name().to_str() == Some("Cargo.toml") {
2626
if path.join("src/lib.rs").is_file() {

branches/try/src/tools/tidy/src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ use std::path::{PathBuf, Path};
1919
use std::env;
2020

2121
macro_rules! t {
22+
($e:expr, $p:expr) => (match $e {
23+
Ok(e) => e,
24+
Err(e) => panic!("{} failed on {} with {}", stringify!($e), ($p).display(), e),
25+
});
26+
2227
($e:expr) => (match $e {
2328
Ok(e) => e,
2429
Err(e) => panic!("{} failed with {}", stringify!($e), e),
@@ -63,7 +68,7 @@ fn filter_dirs(path: &Path) -> bool {
6368

6469

6570
fn walk(path: &Path, skip: &mut FnMut(&Path) -> bool, f: &mut FnMut(&Path)) {
66-
for entry in t!(fs::read_dir(path)) {
71+
for entry in t!(fs::read_dir(path), path) {
6772
let entry = t!(entry);
6873
let kind = t!(entry.file_type());
6974
let path = entry.path();

branches/try/src/tools/tidy/src/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn check(path: &Path, bad: &mut bool) {
5252
}
5353

5454
contents.truncate(0);
55-
t!(t!(File::open(file)).read_to_string(&mut contents));
55+
t!(t!(File::open(file), file).read_to_string(&mut contents));
5656
let skip_cr = contents.contains("ignore-tidy-cr");
5757
let skip_tab = contents.contains("ignore-tidy-tab");
5858
let skip_length = contents.contains("ignore-tidy-linelength");

0 commit comments

Comments
 (0)