Rename many DiagCtxt
arguments.
This commit is contained in:
parent
4dc7fab56f
commit
f422dca3ae
44 changed files with 317 additions and 353 deletions
|
@ -52,7 +52,7 @@ pub fn inject(
|
|||
is_proc_macro_crate: bool,
|
||||
has_proc_macro_decls: bool,
|
||||
is_test_crate: bool,
|
||||
handler: &rustc_errors::DiagCtxt,
|
||||
dcx: &rustc_errors::DiagCtxt,
|
||||
) {
|
||||
let ecfg = ExpansionConfig::default("proc_macro".to_string(), features);
|
||||
let mut cx = ExtCtxt::new(sess, ecfg, resolver, None);
|
||||
|
@ -60,7 +60,7 @@ pub fn inject(
|
|||
let mut collect = CollectProcMacros {
|
||||
macros: Vec::new(),
|
||||
in_root: true,
|
||||
dcx: handler,
|
||||
dcx,
|
||||
source_map: sess.source_map(),
|
||||
is_proc_macro_crate,
|
||||
is_test_crate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue