Migrate sess.opts.tests
uses to sess.is_test_crate()
This commit is contained in:
parent
28e19f19aa
commit
2c976765b8
6 changed files with 7 additions and 7 deletions
|
@ -230,7 +230,7 @@ fn configure_and_expand(
|
|||
features: Some(features),
|
||||
recursion_limit,
|
||||
trace_mac: sess.opts.unstable_opts.trace_macros,
|
||||
should_test: sess.opts.test,
|
||||
should_test: sess.is_test_crate(),
|
||||
span_debug: sess.opts.unstable_opts.span_debug,
|
||||
proc_macro_backtrace: sess.opts.unstable_opts.proc_macro_backtrace,
|
||||
..rustc_expand::expand::ExpansionConfig::default(crate_name.to_string())
|
||||
|
@ -292,7 +292,7 @@ fn configure_and_expand(
|
|||
}
|
||||
|
||||
sess.time("maybe_create_a_macro_crate", || {
|
||||
let is_test_crate = sess.opts.test;
|
||||
let is_test_crate = sess.is_test_crate();
|
||||
rustc_builtin_macros::proc_macro_harness::inject(
|
||||
&mut krate,
|
||||
sess,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue