make emit_feature_err take a ParseSess

This commit is contained in:
Tim Neumann
2016-09-24 18:42:54 +02:00
parent 9966397b61
commit b0dba7439d
12 changed files with 26 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ pub fn expand_trace_macros(cx: &mut ExtCtxt,
tt: &[TokenTree])
-> Box<base::MacResult + 'static> {
if !cx.ecfg.enable_trace_macros() {
feature_gate::emit_feature_err(&cx.parse_sess.span_diagnostic,
feature_gate::emit_feature_err(&cx.parse_sess,
"trace_macros",
sp,
feature_gate::GateIssue::Language,