Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/doc/unstable-book/src/compiler-flags/cache-proc-macros.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## `cache-proc-macros`

The tracking issue for this feature is: [#151364]

[#151364]: https://github.com/rust-lang/rust/issues/151364

------------------------

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the compiler does not currently check whether the proc-macro is actually "cacheable" or not.

Oh I sure hope we issue some loud warnings about potential unsoundness XD

Loading