Skip to content

Commit

Permalink
Rust 1.13.0 macro parsing workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 5, 2017
1 parent 3cc14c2 commit 11c8969
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions serde/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub use self::ignored_any::IgnoredAny;
///////////////////////////////////////////////////////////////////////////////

macro_rules! declare_error_trait {
(Error: Sized $(+ $supertrait:path)*) => {
(Error: Sized $(+ $($supertrait:ident)::*)*) => {
/// The `Error` trait allows `Deserialize` implementations to create descriptive
/// error messages belonging to the `Deserializer` against which they are
/// currently running.
Expand All @@ -136,7 +136,7 @@ macro_rules! declare_error_trait {
///
/// Most deserializers should only need to provide the `Error::custom` method
/// and inherit the default behavior for the other methods.
pub trait Error: Sized $(+ $supertrait)* {
pub trait Error: Sized $(+ $($supertrait)::*)* {
/// Raised when there is general error when deserializing a type.
///
/// The message should not be capitalized and should not end with a period.
Expand Down
4 changes: 2 additions & 2 deletions serde/src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ pub use self::impossible::Impossible;
///////////////////////////////////////////////////////////////////////////////

macro_rules! declare_error_trait {
(Error: Sized $(+ $supertrait:path)*) => {
(Error: Sized $(+ $($supertrait:ident)::*)*) => {
/// Trait used by `Serialize` implementations to generically construct
/// errors belonging to the `Serializer` against which they are
/// currently running.
pub trait Error: Sized $(+ $supertrait)* {
pub trait Error: Sized $(+ $($supertrait)::*)* {
/// Raised when a `Serialize` implementation encounters a general
/// error while serializing a type.
///
Expand Down

0 comments on commit 11c8969

Please sign in to comment.