Skip to content

Commit a49f75b

Browse files
committed
---
yaml --- r: 194187 b: refs/heads/beta c: 088cd56 h: refs/heads/master i: 194185: 1470a63 194183: 25e396b v: v3
1 parent 7f21d93 commit a49f75b

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 9374c216f6040189301aeb043d317c12ffb17a0b
34+
refs/heads/beta: 088cd566ea87c90a9c765a113a2310d60849e7c1
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/src/librustc_lint/builtin.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -84,30 +84,6 @@ impl LintPass for WhileTrue {
8484
}
8585
}
8686

87-
declare_lint! {
88-
UNUSED_TYPECASTS,
89-
Allow,
90-
"detects unnecessary type casts that can be removed"
91-
}
92-
93-
#[derive(Copy)]
94-
pub struct UnusedCasts;
95-
96-
impl LintPass for UnusedCasts {
97-
fn get_lints(&self) -> LintArray {
98-
lint_array!(UNUSED_TYPECASTS)
99-
}
100-
101-
fn check_expr(&mut self, cx: &Context, e: &ast::Expr) {
102-
if let ast::ExprCast(ref expr, ref ty) = e.node {
103-
let t_t = ty::expr_ty(cx.tcx, e);
104-
if ty::expr_ty(cx.tcx, &**expr) == t_t {
105-
cx.span_lint(UNUSED_TYPECASTS, ty.span, "unnecessary type cast");
106-
}
107-
}
108-
}
109-
}
110-
11187
declare_lint! {
11288
UNSIGNED_NEGATION,
11389
Warn,

branches/beta/src/librustc_lint/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
8989
add_builtin!(sess,
9090
HardwiredLints,
9191
WhileTrue,
92-
UnusedCasts,
9392
ImproperCTypes,
9493
BoxPointers,
9594
UnusedAttributes,

0 commit comments

Comments
 (0)