Skip to content

Commit a57a8c3

Browse files
committed
Remove (lots of) dead code
Found with https://github.com/est31/warnalyzer. Dubious changes: - Is anyone else using rustc_apfloat? I feel weird completely deleting x87 support. - Maybe some of the dead code in rustc_data_structures, in case someone wants to use it in the future? - Don't change rustc_serialize I plan to scrap most of the json module in the near future (see rust-lang/compiler-team#418) and fixing the tests needed more work than I expected. TODO: check if any of the comments on the deleted code should be kept.
1 parent b094bb1 commit a57a8c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ fn check_needless_must_use(
516516
);
517517
},
518518
);
519-
} else if !attr.is_value_str() && is_must_use_ty(cx, return_ty(cx, item_id)) {
519+
} else if !attr.value_str().is_some() && is_must_use_ty(cx, return_ty(cx, item_id)) {
520520
span_lint_and_help(
521521
cx,
522522
DOUBLE_MUST_USE,

clippy_lints/src/missing_doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl MissingDoc {
9595

9696
let has_doc = attrs
9797
.iter()
98-
.any(|a| a.is_doc_comment() || a.doc_str().is_some() || a.is_value_str() || Self::has_include(a.meta()));
98+
.any(|a| a.is_doc_comment() || a.doc_str().is_some() || a.value_str().is_some() || Self::has_include(a.meta()));
9999
if !has_doc {
100100
span_lint(
101101
cx,

0 commit comments

Comments
 (0)