mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
mv src/conf.rs src/utils
This commit is contained in:
parent
403c54ec5b
commit
d118b27abb
3 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -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>>;
|
||||
|
|
Loading…
Reference in a new issue