Skip to content

Commit 5d88832

Browse files
authored
Rollup merge of #151227 - Kobzol:document-cache-proc-macros, r=jackh726
Document `-Zcache-proc-macros` Forgot about this in #145354. Created a tracking issue in #151364.
2 parents 60eaaba + 345e9a0 commit 5d88832

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## `cache-proc-macros`
2+
3+
The tracking issue for this feature is: [#151364]
4+
5+
[#151364]: https://github.com/rust-lang/rust/issues/151364
6+
7+
------------------------
8+
9+
This option instructs `rustc` to cache (derive) proc-macro invocations using the incremental system. Note that the compiler does not currently check whether the proc-macro is actually "cacheable" or not. If you use this flag when compiling a crate that uses non-pure proc-macros, it can result in stale expansions being compiled.

0 commit comments

Comments
 (0)