File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,6 @@ impl ItemScope {
8383 keys. into_iter ( ) . map ( move |name| ( name, self . get ( name) ) )
8484 }
8585
86- pub fn entries_without_primitives < ' a > (
87- & ' a self ,
88- ) -> impl Iterator < Item = ( & ' a Name , PerNs ) > + ' a {
89- self . entries ( )
90- }
91-
9286 pub fn declarations ( & self ) -> impl Iterator < Item = ModuleDefId > + ' _ {
9387 self . defs . iter ( ) . copied ( )
9488 }
Original file line number Diff line number Diff line change @@ -511,11 +511,9 @@ impl Scope {
511511 } ) ;
512512 }
513513 }
514- Scope :: LocalItemsScope ( body) => {
515- body. item_scope . entries_without_primitives ( ) . for_each ( |( name, def) | {
516- f ( name. clone ( ) , ScopeDef :: PerNs ( def) ) ;
517- } )
518- }
514+ Scope :: LocalItemsScope ( body) => body. item_scope . entries ( ) . for_each ( |( name, def) | {
515+ f ( name. clone ( ) , ScopeDef :: PerNs ( def) ) ;
516+ } ) ,
519517 Scope :: GenericParams { params, def } => {
520518 for ( local_id, param) in params. types . iter ( ) {
521519 if let Some ( name) = & param. name {
You can’t perform that action at this time.
0 commit comments