Skip to content

Commit 6676f8f

Browse files
committed
---
yaml --- r: 135386 b: refs/heads/snap-stage3 c: 333592e h: refs/heads/master v: v3
1 parent 098e751 commit 6676f8f

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 74090504219e4e37c1a6d9fdd8600f44b51c7b04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 94bcd3539c761b4ecf423800bce21057c4e961fa
4+
refs/heads/snap-stage3: 333592edde810324c9730a89372fa5164d10871d
55
refs/heads/try: 14378ea357c06c23607ca61ade44f60a7a64a1c7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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)