Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore compatibility with rustc <1.31 in Borrowed identifier deseria…
…lizer The implied lifetime bound on T only works on 1.31+. Older versions fail with: error[E0309]: the parameter type `T` may not live long enough --> serde/src/private/de.rs:2548:37 | 2548 | pub struct Borrowed<'de, T: ?Sized>(pub &'de T); | -- ^^^^^^^^^^ | | | help: consider adding an explicit lifetime bound `T: 'de`... | note: ...so that the reference type `&'de T` does not outlive the data it points at --> serde/src/private/de.rs:2548:37 | 2548 | pub struct Borrowed<'de, T: ?Sized>(pub &'de T); | ^^^^^^^^^^
- Loading branch information