mv src/conf.rs src/utils
This commit is contained in:
parent
403c54ec5b
commit
d118b27abb
|
@ -38,7 +38,6 @@ extern crate rustc_plugin;
|
||||||
|
|
||||||
use rustc_plugin::Registry;
|
use rustc_plugin::Registry;
|
||||||
|
|
||||||
mod conf;
|
|
||||||
pub mod consts;
|
pub mod consts;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub mod utils;
|
pub mod utils;
|
||||||
|
@ -112,12 +111,12 @@ mod reexport {
|
||||||
#[plugin_registrar]
|
#[plugin_registrar]
|
||||||
#[cfg_attr(rustfmt, rustfmt_skip)]
|
#[cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
pub fn plugin_registrar(reg: &mut Registry) {
|
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)) => {
|
Ok(Some(file_name)) => {
|
||||||
conf::read_conf(&file_name, true)
|
utils::conf::read_conf(&file_name, true)
|
||||||
}
|
}
|
||||||
Ok(None) => {
|
Ok(None) => {
|
||||||
conf::read_conf("Clippy.toml", false)
|
utils::conf::read_conf("Clippy.toml", false)
|
||||||
}
|
}
|
||||||
Err((err, span)) => {
|
Err((err, span)) => {
|
||||||
reg.sess.struct_span_err(span, err).emit();
|
reg.sess.struct_span_err(span, err).emit();
|
||||||
|
|
|
@ -14,6 +14,7 @@ use syntax::codemap::{ExpnInfo, Span, ExpnFormat};
|
||||||
use syntax::errors::DiagnosticBuilder;
|
use syntax::errors::DiagnosticBuilder;
|
||||||
use syntax::ptr::P;
|
use syntax::ptr::P;
|
||||||
|
|
||||||
|
pub mod conf;
|
||||||
mod hir;
|
mod hir;
|
||||||
pub use self::hir::{SpanlessEq, SpanlessHash};
|
pub use self::hir::{SpanlessEq, SpanlessHash};
|
||||||
pub type MethodArgs = HirVec<P<Expr>>;
|
pub type MethodArgs = HirVec<P<Expr>>;
|
||||||
|
|
Loading…
Reference in a new issue