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 7474a42 commit e799dbeCopy full SHA for e799dbe
crates/hir_def/src/item_scope.rs
@@ -270,15 +270,12 @@ impl ItemScope {
270
271
/// Marks everything that is not a procedural macro as private to `this_module`.
272
pub(crate) fn censor_non_proc_macros(&mut self, this_module: ModuleId) {
273
- for vis in self
274
- .types
+ self.types
275
.values_mut()
276
.chain(self.values.values_mut())
277
.map(|(_, v)| v)
278
.chain(self.unnamed_trait_imports.values_mut())
279
- {
280
- *vis = Visibility::Module(this_module);
281
- }
+ .for_each(|vis| *vis = Visibility::Module(this_module));
282
283
for (mac, vis) in self.macros.values_mut() {
284
if let MacroDefKind::ProcMacro(_) = mac.kind {
0 commit comments