summaryrefslogtreecommitdiffstats
path: root/vendor/quote/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/quote/src/lib.rs')
-rw-r--r--vendor/quote/src/lib.rs18
1 files changed, 13 insertions, 5 deletions
diff --git a/vendor/quote/src/lib.rs b/vendor/quote/src/lib.rs
index ab8c1b156..d871fb080 100644
--- a/vendor/quote/src/lib.rs
+++ b/vendor/quote/src/lib.rs
@@ -79,9 +79,20 @@
//! }
//! };
//! ```
+//!
+//! <br>
+//!
+//! # Non-macro code generators
+//!
+//! When using `quote` in a build.rs or main.rs and writing the output out to a
+//! file, consider having the code generator pass the tokens through
+//! [prettyplease] before writing. This way if an error occurs in the generated
+//! code it is convenient for a human to read and debug.
+//!
+//! [prettyplease]: https://github.com/dtolnay/prettyplease
// Quote types in rustdoc of other crates get linked to here.
-#![doc(html_root_url = "https://docs.rs/quote/1.0.26")]
+#![doc(html_root_url = "https://docs.rs/quote/1.0.29")]
#![allow(
clippy::doc_markdown,
clippy::missing_errors_doc,
@@ -91,10 +102,7 @@
clippy::wrong_self_convention,
)]
-#[cfg(all(
- not(all(target_arch = "wasm32", target_os = "unknown")),
- feature = "proc-macro"
-))]
+#[cfg(feature = "proc-macro")]
extern crate proc_macro;
mod ext;