Update src/libstd/error.rs

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
Steven Fackler 2019-05-16 20:18:29 -07:00 committed by GitHub
parent e836a4cd79
commit 686a611b9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,7 +207,7 @@ pub trait Error: Debug + Display {
}
mod private {
// this is a hack to prevent type_id from being overridden by Error
// This is a hack to prevent `type_id` from being overridden by `Error`
// implementations, since that can enable unsound downcasting.
#[unstable(feature = "error_type_id", issue = "60784")]
#[derive(Debug)]