rust/src/lib.rs

23 lines
535 B
Rust
Raw Normal View History

2014-11-20 00:18:31 +05:30
#![feature(globs, phase, plugin_registrar, if_let)]
2014-11-19 14:27:34 +05:30
2014-11-20 00:18:31 +05:30
#![allow(unused_imports)]
2014-11-19 14:27:34 +05:30
#[phase(plugin,link)]
extern crate syntax;
#[phase(plugin, link)]
extern crate rustc;
2014-11-20 12:37:37 +05:30
// Only for the compile time checking of paths
extern crate collections;
2014-11-19 14:27:34 +05:30
use rustc::plugin::Registry;
use rustc::lint::LintPassObject;
pub mod types;
2014-11-20 00:18:31 +05:30
pub mod misc;
2014-11-19 14:27:34 +05:30
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
reg.register_lint_pass(box types::TypePass as LintPassObject);
2014-11-20 00:18:31 +05:30
reg.register_lint_pass(box misc::MiscPass as LintPassObject);
2014-11-19 14:27:34 +05:30
}