Add a note about assuming the deserializer lifetime name

This commit is contained in:
David Tolnay 2017-03-30 23:06:00 -07:00
parent 4dec5f4de8
commit b6f1a2eb55
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -182,6 +182,10 @@ macro_rules! forward_to_deserialize_helper {
/// }
/// # fn main() {}
/// ```
///
/// The macro assumes the convention that your `Deserializer` lifetime parameter
/// is called `'de`. It will not work if the `Deserializer` lifetime parameter
/// is called something different.
#[macro_export]
macro_rules! forward_to_deserialize {
($($func:ident)*) => {