Skip to content

Commit 8ee7278

Browse files
authored
Rollup merge of #69797 - jongiddy:convert-version, r=Mark-Simulacrum
Correct version that relaxed orphan rules Docs say > Prior to Rust 1.40, if the destination type was not part of the current crate then you couldn't implement From directly Version 1.41 of Rust introduced the change to the orphan rules - https://blog.rust-lang.org/2020/01/30/Rust-1.41.0.html#relaxed-restrictions-when-implementing-traits - so this should say > Prior to Rust 1.41...
2 parents 963b0aa + dffd18f commit 8ee7278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/convert/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub trait AsMut<T: ?Sized> {
229229
///
230230
/// # Implementing [`Into`] for conversions to external types in old versions of Rust
231231
///
232-
/// Prior to Rust 1.40, if the destination type was not part of the current crate
232+
/// Prior to Rust 1.41, if the destination type was not part of the current crate
233233
/// then you couldn't implement [`From`] directly.
234234
/// For example, take this code:
235235
///

0 commit comments

Comments
 (0)