We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bf3ed commit 8499dd2Copy full SHA for 8499dd2
compiler/rustc_hir/src/def.rs
@@ -722,24 +722,6 @@ impl<T> PerNS<T> {
722
pub fn iter(&self) -> IntoIter<&T, 3> {
723
[&self.value_ns, &self.type_ns, &self.macro_ns].into_iter()
724
}
725
-
726
- pub fn into_iter_with(self) -> IntoIter<(Namespace, T), 3> {
727
- [
728
- (Namespace::TypeNS, self.type_ns),
729
- (Namespace::ValueNS, self.value_ns),
730
- (Namespace::MacroNS, self.macro_ns),
731
- ]
732
- .into_iter()
733
- }
734
735
- pub fn iter_with(&self) -> IntoIter<(Namespace, &T), 3> {
736
737
- (Namespace::TypeNS, &self.type_ns),
738
- (Namespace::ValueNS, &self.value_ns),
739
- (Namespace::MacroNS, &self.macro_ns),
740
741
742
743
744
745
impl<T> ::std::ops::Index<Namespace> for PerNS<T> {
0 commit comments