aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2019-08-03 20:27:44 -0700
committerDavid Tolnay <dtolnay@gmail.com>2019-08-03 20:27:44 -0700
commit1fcea59c2cc1faf412d3f24b2b067312a789cb82 (patch)
treeb211f286fd6d0d9e8ee12232fa811f1c983b0baf
parent241e9c5c99845e99be0123d31262643a221c62ed (diff)
downloadplatform_external_rust_crates_quote-1fcea59c2cc1faf412d3f24b2b067312a789cb82.tar.gz
platform_external_rust_crates_quote-1fcea59c2cc1faf412d3f24b2b067312a789cb82.tar.bz2
platform_external_rust_crates_quote-1fcea59c2cc1faf412d3f24b2b067312a789cb82.zip
Remove ```edition2018 now that whole crate is on 2018
-rw-r--r--src/ext.rs2
-rw-r--r--src/format.rs8
-rw-r--r--src/lib.rs20
-rw-r--r--src/to_tokens.rs2
4 files changed, 16 insertions, 16 deletions
diff --git a/src/ext.rs b/src/ext.rs
index 7ebbe30..a67ac31 100644
--- a/src/ext.rs
+++ b/src/ext.rs
@@ -17,7 +17,7 @@ pub trait TokenStreamExt: private::Sealed {
/// For use by `ToTokens` implementations.
///
- /// ```edition2018
+ /// ```
/// # use quote::{quote, TokenStreamExt, ToTokens};
/// # use proc_macro2::TokenStream;
/// #
diff --git a/src/format.rs b/src/format.rs
index 04b4e0d..130484e 100644
--- a/src/format.rs
+++ b/src/format.rs
@@ -33,7 +33,7 @@
/// final identifier, falling back to [`Span::call_site`] when no identifiers
/// are provided.
///
-/// ```edition2018
+/// ```
/// # use quote::format_ident;
/// # let ident = format_ident!("Ident");
/// // If `ident` is an Ident, the span of `my_ident` will be inherited from it.
@@ -44,7 +44,7 @@
/// Alternatively, the span can be overridden by passing the `span` named
/// argument.
///
-/// ```edition2018
+/// ```
/// # use quote::format_ident;
/// # const IGNORE_TOKENS: &'static str = stringify! {
/// let my_span = /* ... */;
@@ -64,7 +64,7 @@
/// # Examples
///
/// Composing raw and non-raw identifiers:
-/// ```edition2018
+/// ```
/// # use quote::format_ident;
/// let my_ident = format_ident!("My{}", "Ident");
/// assert_eq!(my_ident, "MyIdent");
@@ -77,7 +77,7 @@
/// ```
///
/// Integer formatting options:
-/// ```edition2018
+/// ```
/// # use quote::format_ident;
/// let num: u32 = 10;
///
diff --git a/src/lib.rs b/src/lib.rs
index cf4fa25..54caa87 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -41,7 +41,7 @@
//! [a]: https://serde.rs/
//! [`quote_spanned!`]: macro.quote_spanned.html
//!
-//! ```edition2018
+//! ```
//! # use quote::quote;
//! #
//! # let generics = "";
@@ -180,7 +180,7 @@ pub mod spanned;
///
/// [Syn]: https://github.com/dtolnay/syn
///
-/// ```edition2018
+/// ```
/// # #[cfg(any())]
/// extern crate proc_macro;
/// # extern crate proc_macro2;
@@ -224,7 +224,7 @@ pub mod spanned;
/// produced by `quote!` themselves implement `ToTokens` and so can be
/// interpolated into later `quote!` invocations to build up a final result.
///
-/// ```edition2018
+/// ```
/// # use quote::quote;
/// #
/// let type_definition = quote! {...};
@@ -246,7 +246,7 @@ pub mod spanned;
/// behavior of concatenating them. The underscore and the identifier will
/// continue to be two separate tokens as if you had written `_ x`.
///
-/// ```edition2018
+/// ```
/// # use proc_macro2::{self as syn, Span};
/// # use quote::quote;
/// #
@@ -262,7 +262,7 @@ pub mod spanned;
/// The solution is to perform token-level manipulations using the APIs provided
/// by Syn and proc-macro2.
///
-/// ```edition2018
+/// ```
/// # use proc_macro2::{self as syn, Span};
/// # use quote::quote;
/// #
@@ -282,7 +282,7 @@ pub mod spanned;
/// a constructor called `new`. We have the type in a variable called
/// `field_type` of type `syn::Type` and want to invoke the constructor.
///
-/// ```edition2018
+/// ```
/// # use quote::quote;
/// #
/// # let field_type = quote!(...);
@@ -300,7 +300,7 @@ pub mod spanned;
/// syntax. Ordinarily in handwritten Rust we would write `Vec::<i32>::new()`
/// but for macros often the following is more convenient.
///
-/// ```edition2018
+/// ```
/// # use quote::quote;
/// #
/// # let field_type = quote!(...);
@@ -315,7 +315,7 @@ pub mod spanned;
///
/// A similar pattern is appropriate for trait methods.
///
-/// ```edition2018
+/// ```
/// # use quote::quote;
/// #
/// # let field_type = quote!(...);
@@ -343,7 +343,7 @@ macro_rules! quote {
///
/// [`Span`]: https://docs.rs/proc-macro2/0.4/proc_macro2/struct.Span.html
///
-/// ```edition2018
+/// ```
/// # use proc_macro2::Span;
/// # use quote::quote_spanned;
/// #
@@ -382,7 +382,7 @@ macro_rules! quote {
///
/// [`Sync`]: https://doc.rust-lang.org/std/marker/trait.Sync.html
///
-/// ```edition2018
+/// ```
/// # use quote::{quote_spanned, TokenStreamExt, ToTokens};
/// # use proc_macro2::{Span, TokenStream};
/// #
diff --git a/src/to_tokens.rs b/src/to_tokens.rs
index 0f507c8..e3da102 100644
--- a/src/to_tokens.rs
+++ b/src/to_tokens.rs
@@ -22,7 +22,7 @@ pub trait ToTokens {
/// Example implementation for a struct representing Rust paths like
/// `std::cmp::PartialEq`:
///
- /// ```edition2018
+ /// ```
/// use proc_macro2::{TokenTree, Spacing, Span, Punct, TokenStream};
/// use quote::{TokenStreamExt, ToTokens};
///