diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-07 17:27:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-07 17:27:37 +0100 |
| commit | 8ee7278fca2cb137c81c8a12ca46c5df1838c2f3 (patch) | |
| tree | d20951bd6c8b3c780c4dd95739fc18c2cd3fe66f /src | |
| parent | 963b0aa541a68d9ffceb6685f785f9ae485964f7 (diff) | |
| parent | dffd18fafc5ffe41b958bf9cacc0c3a6ef257348 (diff) | |
| download | rust-8ee7278fca2cb137c81c8a12ca46c5df1838c2f3.tar.gz rust-8ee7278fca2cb137c81c8a12ca46c5df1838c2f3.zip | |
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...
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/convert/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/convert/mod.rs b/src/libcore/convert/mod.rs index 959fd63df51..47ab8715cfa 100644 --- a/src/libcore/convert/mod.rs +++ b/src/libcore/convert/mod.rs @@ -229,7 +229,7 @@ pub trait AsMut<T: ?Sized> { /// /// # Implementing [`Into`] for conversions to external types in old versions of Rust /// -/// Prior to Rust 1.40, if the destination type was not part of the current crate +/// Prior to Rust 1.41, if the destination type was not part of the current crate /// then you couldn't implement [`From`] directly. /// For example, take this code: /// |
