Skip to content

Commit

Permalink
Remove the last redundant check from kindck, and then remove the pass…
Browse files Browse the repository at this point in the history
… as well.
  • Loading branch information
nikomatsakis committed Sep 25, 2014
1 parent 2ec305d commit e924357
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 106 deletions.
1 change: 0 additions & 1 deletion src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ register_diagnostics!(
E0139,
E0140,
E0141,
E0144,
E0152,
E0153,
E0154,
Expand Down
10 changes: 7 additions & 3 deletions src/librustc/driver/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use lint;
use llvm::{ContextRef, ModuleRef};
use metadata::common::LinkMeta;
use metadata::creader;
use middle::{trans, stability, kind, ty, typeck, reachable};
use middle::{trans, stability, ty, typeck, reachable};
use middle::dependency_format;
use middle;
use plugin::load::Plugins;
Expand Down Expand Up @@ -462,8 +462,12 @@ pub fn phase_3_run_analysis_passes<'tcx>(sess: Session,
time(time_passes, "rvalue checking", (), |_|
middle::check_rvalues::check_crate(&ty_cx, krate));

time(time_passes, "kind checking", (), |_|
kind::check_crate(&ty_cx));
// Avoid overwhelming user with errors if type checking failed.
// I'm not sure how helpful this is, to be honest, but it avoids a
// lot of annoying errors in the compile-fail tests (basically,
// lint warnings and so on -- kindck used to do this abort, but
// kindck is gone now). -nmatsakis
ty_cx.sess.abort_if_errors();

let reachable_map =
time(time_passes, "reachability checking", (), |_|
Expand Down
1 change: 0 additions & 1 deletion src/librustc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ pub mod middle {
pub mod expr_use_visitor;
pub mod graph;
pub mod intrinsicck;
pub mod kind;
pub mod lang_items;
pub mod liveness;
pub mod mem_categorization;
Expand Down
101 changes: 0 additions & 101 deletions src/librustc/middle/kind.rs

This file was deleted.

0 comments on commit e924357

Please sign in to comment.