Skip to content

Commit

Permalink
Rollup merge of #73738 - nbdd0121:comment, r=nikomatsakis
Browse files Browse the repository at this point in the history
Remove irrelevant comment

Iterator is no longer a lang item since 216e72f.
  • Loading branch information
Manishearth committed Jun 26, 2020
2 parents 83f6d0a + f9af59d commit 7926c64
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ use crate::{
ops::{self, Deref, DerefMut},
};

// Note that this is not a lang item per se, but it has a hidden dependency on
// `Iterator`, which is one. The compiler assumes that the `next` method of
// `Iterator` is an enumeration with one type parameter and two variants,
// which basically means it must be `Option`.

/// The `Option` type. See [the module level documentation](index.html) for more.
#[derive(Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
#[rustc_diagnostic_item = "option_type"]
Expand Down

0 comments on commit 7926c64

Please sign in to comment.