Fix tracking issue for error iterators
This commit is contained in:
parent
eac09088e1
commit
3ba6177515
1 changed files with 4 additions and 4 deletions
|
@ -718,7 +718,7 @@ impl dyn Error {
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`source`]: trait.Error.html#method.source
|
/// [`source`]: trait.Error.html#method.source
|
||||||
#[unstable(feature = "error_iter", issue = "58289")]
|
#[unstable(feature = "error_iter", issue = "58520")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn iter_chain(&self) -> ErrorIter {
|
pub fn iter_chain(&self) -> ErrorIter {
|
||||||
ErrorIter {
|
ErrorIter {
|
||||||
|
@ -793,7 +793,7 @@ impl dyn Error {
|
||||||
///
|
///
|
||||||
/// [`source`]: trait.Error.html#method.source
|
/// [`source`]: trait.Error.html#method.source
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "error_iter", issue = "58289")]
|
#[unstable(feature = "error_iter", issue = "58520")]
|
||||||
pub fn iter_sources(&self) -> ErrorIter {
|
pub fn iter_sources(&self) -> ErrorIter {
|
||||||
ErrorIter {
|
ErrorIter {
|
||||||
current: self.source(),
|
current: self.source(),
|
||||||
|
@ -804,13 +804,13 @@ impl dyn Error {
|
||||||
/// An iterator over [`Error`]
|
/// An iterator over [`Error`]
|
||||||
///
|
///
|
||||||
/// [`Error`]: trait.Error.html
|
/// [`Error`]: trait.Error.html
|
||||||
#[unstable(feature = "error_iter", issue = "58289")]
|
#[unstable(feature = "error_iter", issue = "58520")]
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct ErrorIter<'a> {
|
pub struct ErrorIter<'a> {
|
||||||
current: Option<&'a (dyn Error + 'static)>,
|
current: Option<&'a (dyn Error + 'static)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "error_iter", issue = "58289")]
|
#[unstable(feature = "error_iter", issue = "58520")]
|
||||||
impl<'a> Iterator for ErrorIter<'a> {
|
impl<'a> Iterator for ErrorIter<'a> {
|
||||||
type Item = &'a (dyn Error + 'static);
|
type Item = &'a (dyn Error + 'static);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue