Skip to content

Commit 88b025b

Browse files
committed
Auto merge of #52386 - Manishearth:quote-clarify, r=petrochenkov
Clarify how the quote macro is loaded @QuietMisdreavus needed to figure this out for writing a testcase, this should be better documented. r? @jseyfried
2 parents 99140df + 58f3f7b commit 88b025b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/libproc_macro/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ pub mod token_stream {
236236
///
237237
/// Unquoting is done with `$`, and works by taking the single next ident as the unquoted term.
238238
/// To quote `$` itself, use `$$`.
239+
///
240+
/// This is a dummy macro, the actual implementation is in quote::Quoter
239241
#[unstable(feature = "proc_macro", issue = "38356")]
240242
#[macro_export]
241243
macro_rules! quote { () => {} }

src/libproc_macro/quote.rs

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ use syntax::parse::token;
2121
use syntax::symbol::Symbol;
2222
use syntax::tokenstream;
2323

24+
/// This is the actual quote!() proc macro
25+
///
26+
/// It is manually loaded in CStore::load_macro_untracked
2427
pub struct Quoter;
2528

2629
pub fn unquote<T: Into<TokenStream> + Clone>(tokens: &T) -> TokenStream {

0 commit comments

Comments
 (0)