mv src/conf.rs src/utils

This commit is contained in:
mcarton 2016-03-06 15:17:51 +01:00
parent 403c54ec5b
commit d118b27abb
3 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,6 @@ extern crate rustc_plugin;
use rustc_plugin::Registry;
mod conf;
pub mod consts;
#[macro_use]
pub mod utils;
@ -112,12 +111,12 @@ mod reexport {
#[plugin_registrar]
#[cfg_attr(rustfmt, rustfmt_skip)]
pub fn plugin_registrar(reg: &mut Registry) {
let conferr = match conf::conf_file(reg.args()) {
let conferr = match utils::conf::conf_file(reg.args()) {
Ok(Some(file_name)) => {
conf::read_conf(&file_name, true)
utils::conf::read_conf(&file_name, true)
}
Ok(None) => {
conf::read_conf("Clippy.toml", false)
utils::conf::read_conf("Clippy.toml", false)
}
Err((err, span)) => {
reg.sess.struct_span_err(span, err).emit();

View file

@ -14,6 +14,7 @@ use syntax::codemap::{ExpnInfo, Span, ExpnFormat};
use syntax::errors::DiagnosticBuilder;
use syntax::ptr::P;
pub mod conf;
mod hir;
pub use self::hir::{SpanlessEq, SpanlessHash};
pub type MethodArgs = HirVec<P<Expr>>;