mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-23 22:14:15 +00:00
error::Error: remove some comments
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
parent
b556a5be5a
commit
9372c4f6ac
@ -1,17 +1,6 @@
|
|||||||
#![doc = include_str!("error.md")]
|
#![doc = include_str!("error.md")]
|
||||||
#![unstable(feature = "error_in_core", issue = "none")]
|
#![unstable(feature = "error_in_core", issue = "none")]
|
||||||
|
|
||||||
// A note about crates and the facade:
|
|
||||||
//
|
|
||||||
// Originally, the `Error` trait was defined in libcore, and the impls
|
|
||||||
// were scattered about. However, coherence objected to this
|
|
||||||
// arrangement, because to create the blanket impls for `Box` required
|
|
||||||
// knowing that `&str: !Error`, and we have no means to deal with that
|
|
||||||
// sort of conflict just now. Therefore, for the time being, we have
|
|
||||||
// moved the `Error` trait into libstd. As we evolve a sol'n to the
|
|
||||||
// coherence challenge (e.g., specialization, neg impls, etc) we can
|
|
||||||
// reconsider what crate these items belong in.
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
@ -417,10 +406,6 @@ impl dyn Error {
|
|||||||
// because that means the method can't be called on trait objects (we'd also need the
|
// because that means the method can't be called on trait objects (we'd also need the
|
||||||
// 'static bound, but that isn't allowed because methods with bounds on Self other than
|
// 'static bound, but that isn't allowed because methods with bounds on Self other than
|
||||||
// Sized are not object-safe). Requiring an Unsize bound is not backwards compatible.
|
// Sized are not object-safe). Requiring an Unsize bound is not backwards compatible.
|
||||||
//
|
|
||||||
// Two possible solutions are to start the iterator at self.source() instead of self (see
|
|
||||||
// discussion on the tracking issue), or to wait for dyn* to exist (which would then permit
|
|
||||||
// the coercion).
|
|
||||||
|
|
||||||
Source { current: Some(self) }
|
Source { current: Some(self) }
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,6 @@
|
|||||||
#![doc = include_str!("../../core/src/error.md")]
|
#![doc = include_str!("../../core/src/error.md")]
|
||||||
#![stable(feature = "rust1", since = "1.0.0")]
|
#![stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
||||||
// A note about crates and the facade:
|
|
||||||
//
|
|
||||||
// Originally, the `Error` trait was defined in libcore, and the impls
|
|
||||||
// were scattered about. However, coherence objected to this
|
|
||||||
// arrangement, because to create the blanket impls for `Box` required
|
|
||||||
// knowing that `&str: !Error`, and we have no means to deal with that
|
|
||||||
// sort of conflict just now. Therefore, for the time being, we have
|
|
||||||
// moved the `Error` trait into libstd. As we evolve a sol'n to the
|
|
||||||
// coherence challenge (e.g., specialization, neg impls, etc) we can
|
|
||||||
// reconsider what crate these items belong in.
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
@ -996,10 +985,6 @@ impl dyn Error {
|
|||||||
// because that means the method can't be called on trait objects (we'd also need the
|
// because that means the method can't be called on trait objects (we'd also need the
|
||||||
// 'static bound, but that isn't allowed because methods with bounds on Self other than
|
// 'static bound, but that isn't allowed because methods with bounds on Self other than
|
||||||
// Sized are not object-safe). Requiring an Unsize bound is not backwards compatible.
|
// Sized are not object-safe). Requiring an Unsize bound is not backwards compatible.
|
||||||
//
|
|
||||||
// Two possible solutions are to start the iterator at self.source() instead of self (see
|
|
||||||
// discussion on the tracking issue), or to wait for dyn* to exist (which would then permit
|
|
||||||
// the coercion).
|
|
||||||
|
|
||||||
Sources { current: Some(self) }
|
Sources { current: Some(self) }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user