Skip to content

Commit 551fc5b

Browse files
committed
---
yaml --- r: 135758 b: refs/heads/auto c: 333592e h: refs/heads/master v: v3
1 parent 0c0b776 commit 551fc5b

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 94bcd3539c761b4ecf423800bce21057c4e961fa
16+
refs/heads/auto: 333592edde810324c9730a89372fa5164d10871d
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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/auto/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)