From a8646be1a8e2025e0bfd18dfcebf968cfcb4645e Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Fri, 25 Apr 2014 18:33:07 +0200 Subject: Output debug info on how `#[phase] extern crate foo;` gets resolved. --- src/libsyntax/ext/expand.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 1898e8bf000..e3b1037ccc0 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -524,6 +524,9 @@ fn load_extern_macros(krate: &ast::ViewItem, fld: &mut MacroExpander) { None => return }; + debug!("load_extern_macros: mapped crate {} to path {} and registrar {:s}", + crate_name, path.display(), registrar); + let lib = match DynamicLibrary::open(Some(&path)) { Ok(lib) => lib, // this is fatal: there are almost certainly macros we need -- cgit 1.4.1-3-g733a5