Skip to content

Commit 1ba8cfd

Browse files
committed
prepare for PR (tidy should pass, caching=yes by default for rustc-perf)
1 parent e08113b commit 1ba8cfd

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

compiler/rustc_ast/src/tokenstream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl fmt::Debug for LazyAttrTokenStream {
142142

143143
impl<S: SpanEncoder> Encodable<S> for LazyAttrTokenStream {
144144
fn encode(&self, _s: &mut S) {
145-
// TODO(pr-time): Just a reminder that this exists/was tried out,
145+
// FIXME(pr-time): Just a reminder that this exists/was tried out,
146146
// but probably not necessary anymore (see below).
147147
// self.to_attr_token_stream().encode(s)
148148
// We should not need to anymore, now that we `flatten`?

compiler/rustc_expand/src/derive_macro_expansion.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub(super) fn provide_derive_macro_expansion<'tcx>(
2828
let strategy = crate::proc_macro::exec_strategy(ecx);
2929
let server = crate::proc_macro_server::Rustc::new(ecx);
3030
let res = match client.run(&strategy, server, input.clone(), proc_macro_backtrace) {
31-
// TODO(pr-time): without flattened some (weird) tests fail, but no idea if it's correct/enough
31+
// FIXME(pr-time): without flattened some (weird) tests fail, but no idea if it's correct/enough
3232
Ok(stream) => Ok(tcx.arena.alloc(stream.flattened()) as &TokenStream),
3333
Err(e) => {
3434
ecx.dcx().emit_err({
@@ -102,11 +102,11 @@ where
102102
} else {
103103
// We could get an `CONTEXT` pointer from another thread.
104104
// Ensure that `CONTEXT` is `DynSync`.
105-
// TODO(pr-time): we should not be able to?
105+
// FIXME(pr-time): we should not be able to?
106106
// sync::assert_dyn_sync::<CONTEXT<'_>>();
107107

108108
// prevent double entering, as that would allow creating two `&mut ExtCtxt`s
109-
// TODO(pr-time): probably use a RefCell instead (which checks this properly)?
109+
// FIXME(pr-time): probably use a RefCell instead (which checks this properly)?
110110
enter_context_erased((ptr::null_mut(), None), || unsafe {
111111
let ectx = downcast(ectx);
112112
f(Some(&mut (ectx, client_opt.unwrap())))

compiler/rustc_expand/src/proc_macro.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ impl MultiItemModifier for DeriveProcMacro {
133133
crate::base::ann_pretty_printing_compatibility_hack(&item, &ecx.sess);
134134
let input = item.to_tokens();
135135
let res = ty::tls::with(|tcx| {
136-
// TODO(pr-time): without flattened some (weird) tests fail, but no idea if it's correct/enough
136+
// FIXME(pr-time): without flattened some (weird) tests fail, but no idea if it's correct/enough
137137
let input = tcx.arena.alloc(input.flattened()) as &TokenStream;
138138
let invoc_id = ecx.current_expansion.id;
139139

140-
// TODO(pr-time): Just using the crate hash to notice when the proc-macro code has
140+
// FIXME(pr-time): Just using the crate hash to notice when the proc-macro code has
141141
// changed. How to *correctly* depend on exactly the macro definition?
142142
// I.e., depending on the crate hash is just a HACK (and leaves garbage in the
143143
// incremental compilation dir).

compiler/rustc_session/src/options.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1637,8 +1637,8 @@ options! {
16371637
"emit noalias metadata for box (default: yes)"),
16381638
branch_protection: Option<BranchProtection> = (None, parse_branch_protection, [TRACKED],
16391639
"set options for branch target identification and pointer authentication on AArch64"),
1640-
cache_all_derive_macros: bool = (false, parse_bool, [UNTRACKED],
1641-
"cache the results of ALL derive macro invocations (potentially unsound!) (default: no)"),
1640+
cache_all_derive_macros: bool = (true, parse_bool, [UNTRACKED],
1641+
"cache the results of ALL derive macro invocations (potentially unsound!) (default: YES -- for rustc-perf)"),
16421642
cf_protection: CFProtection = (CFProtection::None, parse_cfprotection, [TRACKED],
16431643
"instrument control-flow architecture protection"),
16441644
check_cfg_all_expected: bool = (false, parse_bool, [UNTRACKED],

tests/incremental/derive_macro_expansion/proc_macro_unchanged.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// The proc-macro (for `Nothing`) prints a message to stderr when invoked,
55
// and this message should only be present during the second invocation
66
// (which has `cfail2` set via cfg).
7-
// TODO(pr-time): Properly have the test check this, but how? UI-test that tests for `.stderr`?
7+
// FIXME(pr-time): Properly have the test check this, but how? UI-test that tests for `.stderr`?
88

99
//@ aux-build:derive_nothing.rs
1010
//@ revisions:cfail1 cfail2

0 commit comments

Comments
 (0)