Merge branch 'origin/1.0' into 'origin/identifier'

Conflicts:
    serde_derive/src/ser.rs
This commit is contained in:
David Tolnay
2017-04-10 12:37:41 -07:00
18 changed files with 795 additions and 241 deletions
+6
View File
@@ -8,6 +8,12 @@ use self::content::{SerializeTupleVariantAsMapValue, SerializeStructVariantAsMap
#[cfg(feature = "std")]
use std::error;
/// Used to check that serde(getter) attributes return the expected type.
/// Not public API.
pub fn constrain<T: ?Sized>(t: &T) -> &T {
t
}
/// Not public API.
pub fn serialize_tagged_newtype<S, T>(serializer: S,
type_ident: &'static str,