Skip to content

Commit 27850a0

Browse files
committed
---
yaml --- r: 136959 b: refs/heads/dist-snap c: 333592e h: refs/heads/master i: 136957: 6dfea0a 136955: 2cc950a 136951: 8e3883c 136943: d12943a 136927: 6d0e639 136895: 77da74e 136831: ce9d97c 136703: b8daa17 v: v3
1 parent 18de3d8 commit 27850a0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 189b7332968972f34cdbbbd9b62d97ababf53059
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 94bcd3539c761b4ecf423800bce21057c4e961fa
9+
refs/heads/dist-snap: 333592edde810324c9730a89372fa5164d10871d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/lint/builtin.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ impl LintPass for UnusedAttribute {
631631
}
632632
}
633633

634-
declare_lint!(PATH_STATEMENT, Warn,
634+
declare_lint!(pub PATH_STATEMENT, Warn,
635635
"path statements with no effect")
636636

637637
pub struct PathStatement;
@@ -655,10 +655,10 @@ impl LintPass for PathStatement {
655655
}
656656
}
657657

658-
declare_lint!(UNUSED_MUST_USE, Warn,
658+
declare_lint!(pub UNUSED_MUST_USE, Warn,
659659
"unused result of a type flagged as #[must_use]")
660660

661-
declare_lint!(UNUSED_RESULT, Allow,
661+
declare_lint!(pub UNUSED_RESULT, Allow,
662662
"unused result of an expression in a statement")
663663

664664
pub struct UnusedResult;
@@ -1136,7 +1136,7 @@ impl LintPass for UnnecessaryImportBraces {
11361136
}
11371137
}
11381138

1139-
declare_lint!(UNUSED_UNSAFE, Warn,
1139+
declare_lint!(pub UNUSED_UNSAFE, Warn,
11401140
"unnecessary use of an `unsafe` block")
11411141

11421142
pub struct UnusedUnsafe;

branches/dist-snap/src/librustc/lint/context.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ impl LintStore {
203203

204204
add_lint_group!(sess, "unused",
205205
UNUSED_IMPORTS, UNUSED_VARIABLE, DEAD_ASSIGNMENT, DEAD_CODE,
206-
UNUSED_MUT, UNREACHABLE_CODE, UNUSED_EXTERN_CRATE)
206+
UNUSED_MUT, UNREACHABLE_CODE, UNUSED_EXTERN_CRATE, UNUSED_MUST_USE,
207+
UNUSED_UNSAFE, UNUSED_RESULT, PATH_STATEMENT)
207208

208209
// We have one lint pass defined in this module.
209210
self.register_pass(sess, false, box GatherNodeLevels as LintPassObject);

0 commit comments

Comments
 (0)