fixed modules/visibility
This commit is contained in:
@@ -26,6 +26,7 @@ pub mod mut_mut;
|
|||||||
pub mod len_zero;
|
pub mod len_zero;
|
||||||
pub mod attrs;
|
pub mod attrs;
|
||||||
pub mod collapsible_if;
|
pub mod collapsible_if;
|
||||||
|
pub mod utils;
|
||||||
|
|
||||||
#[plugin_registrar]
|
#[plugin_registrar]
|
||||||
pub fn plugin_registrar(reg: &mut Registry) {
|
pub fn plugin_registrar(reg: &mut Registry) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use rustc::lint::Context;
|
use rustc::lint::Context;
|
||||||
use syntax::codemap::ExpnInfo;
|
use syntax::codemap::ExpnInfo;
|
||||||
|
|
||||||
fn in_macro(cx: &Context, opt_info: Option<&ExpnInfo>) -> bool {
|
pub fn in_macro(cx: &Context, opt_info: Option<&ExpnInfo>) -> bool {
|
||||||
opt_info.map_or(false, |info| {
|
opt_info.map_or(false, |info| {
|
||||||
info.callee.span.map_or(true, |span| {
|
info.callee.span.map_or(true, |span| {
|
||||||
cx.sess().codemap().span_to_snippet(span).ok().map_or(true, |code|
|
cx.sess().codemap().span_to_snippet(span).ok().map_or(true, |code|
|
||||||
|
|||||||
Reference in New Issue
Block a user