about summary refs log tree commit diff
path: root/src/libcore/marker.rs
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-01-03 23:54:12 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-01-04 00:03:34 +0200
commit4cab2931c89fe09dfa295445ad491c2ece7e7df1 (patch)
tree2cda1054aa58a957a67486f4cd510ad8731735d6 /src/libcore/marker.rs
parente41920a1c304487e64506adf27100a224c6ef6e6 (diff)
downloadrust-4cab2931c89fe09dfa295445ad491c2ece7e7df1.tar.gz
rust-4cab2931c89fe09dfa295445ad491c2ece7e7df1.zip
simplify Copy implementation error reporting
Span the affected fields instead of reporting the field/variant name.
Diffstat (limited to 'src/libcore/marker.rs')
-rw-r--r--src/libcore/marker.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs
index 9af10966eda..ed01b93f133 100644
--- a/src/libcore/marker.rs
+++ b/src/libcore/marker.rs
@@ -234,12 +234,10 @@ pub trait Unsize<T: ?Sized> {
 /// Generalizing the latter case, any type implementing [`Drop`] can't be `Copy`, because it's
 /// managing some resource besides its own [`size_of::<T>()`] bytes.
 ///
-/// If you try to implement `Copy` on a struct or enum containing non-`Copy` data, you will get a
-/// compile-time error. Specifically, with structs you'll get [E0204] and with enums you'll get
-/// [E0205].
+/// If you try to implement `Copy` on a struct or enum containing non-`Copy` data, you will get
+/// the error [E0204].
 ///
 /// [E0204]: ../../error-index.html#E0204
-/// [E0205]: ../../error-index.html#E0205
 ///
 /// ## When *should* my type be `Copy`?
 ///