Skip to content

Commit 2a7be1b

Browse files
committed
Fix a minor issue with how lint groups are printed by rustc
1 parent a0ee7c9 commit 2a7be1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/driver/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ Available lint options:
255255
for (name, to) in lints.into_iter() {
256256
let name = name.chars().map(|x| x.to_lowercase())
257257
.collect::<String>().replace("_", "-");
258-
let desc = to.into_iter().map(|x| x.as_str()).collect::<Vec<String>>().connect(", ");
258+
let desc = to.into_iter().map(|x| x.as_str().replace("_", "-"))
259+
.collect::<Vec<String>>().connect(", ");
259260
println!(" {} {}",
260261
padded(name.as_slice()), desc);
261262
}

0 commit comments

Comments
 (0)