fixed modules/visibility

This commit is contained in:
llogiq 2015-06-01 22:36:56 +02:00
parent 30de91d3e9
commit e8ca19da24
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ pub mod mut_mut;
pub mod len_zero;
pub mod attrs;
pub mod collapsible_if;
pub mod utils;
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {

View file

@ -1,7 +1,7 @@
use rustc::lint::Context;
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| {
info.callee.span.map_or(true, |span| {
cx.sess().codemap().span_to_snippet(span).ok().map_or(true, |code|