Fix prefixing of logging paths with crate name
This commit is contained in:
parent
a57c15bf88
commit
61367e3c27
1 changed files with 4 additions and 3 deletions
|
@ -3742,7 +3742,8 @@ fn trans_log(lvl: @ast::expr, cx: @block_ctxt, e: @ast::expr) -> @block_ctxt {
|
|||
ret trans_expr(cx, lvl, ignore);
|
||||
}
|
||||
|
||||
let modpath = vec::filter(cx.fcx.path, {|e|
|
||||
let modpath = [path_mod(ccx.link_meta.name)] +
|
||||
vec::filter(cx.fcx.path, {|e|
|
||||
alt e { path_mod(_) { true } _ { false } }
|
||||
});
|
||||
let modname = path_str(modpath);
|
||||
|
|
Loading…
Reference in a new issue