Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9b26f3a

Browse files
committedAug 30, 2017
Remove some false positive issues
1 parent bba7fd9 commit 9b26f3a

File tree

5 files changed

+23
-1080
lines changed

5 files changed

+23
-1080
lines changed
 

‎src/Cargo.lock

Lines changed: 11 additions & 1076 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/bootstrap/bin/sccache-plus-cl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn main() {
1818
// Locate the actual compiler that we're invoking
1919
env::remove_var("CC");
2020
env::remove_var("CXX");
21-
let mut cfg = gcc::Build::new();
21+
let mut cfg = gcc::Config::new();
2222
cfg.cargo_metadata(false)
2323
.out_dir("/")
2424
.target(&target)

‎src/libprofiler_builtins/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::path::Path;
1919

2020
fn main() {
2121
let target = env::var("TARGET").expect("TARGET was not set");
22-
let cfg = &mut gcc::Build::new();
22+
let cfg = &mut gcc::Config::new();
2323

2424
let mut profile_sources = vec!["GCDAProfiling.c",
2525
"InstrProfiling.c",

‎src/librustdoc/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern crate gcc;
1414
fn main() {
1515
let src_dir = std::path::Path::new("../rt/hoedown/src");
1616
build_helper::rerun_if_changed_anything_in_dir(src_dir);
17-
let mut cfg = gcc::Build::new();
17+
let mut cfg = gcc::Config::new();
1818
cfg.file("../rt/hoedown/src/autolink.c")
1919
.file("../rt/hoedown/src/buffer.c")
2020
.file("../rt/hoedown/src/document.c")

‎src/librustdoc/html/render.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,15 @@ fn get_html_diff(w: &mut fmt::Formatter, md_text: &str, render_type: RenderType,
16591659
println!("Differences spotted in {:?}:\n{}",
16601660
md_text,
16611661
differences.iter()
1662-
.map(|s| format!("=> {}", s.to_string()))
1662+
.filter_map(|s| {
1663+
match *s {
1664+
html_diff::Difference::NodeText { ref elem_text,
1665+
ref opposite_elem_text,
1666+
.. }
1667+
if elem_text.trim() == opposite_elem_text.trim() => None,
1668+
_ => Some(format!("=> {}", s.to_string())),
1669+
}
1670+
})
16631671
.collect::<Vec<String>>()
16641672
.join("\n"));
16651673
}

0 commit comments

Comments
 (0)
Please sign in to comment.