chore: realization of private def should run in private scope (#11618)
In fact the scope should be solely determined by the def name but this breaks some existing realizer, so postponed.
This commit is contained in:
parent
9e4f9d317b
commit
fc26c8145c
1 changed files with 2 additions and 1 deletions
|
|
@ -2673,7 +2673,8 @@ where
|
|||
let _ : MonadExceptOf _ MetaM := MonadAlwaysExcept.except
|
||||
observing do
|
||||
withDeclNameForAuxNaming constName do
|
||||
realize
|
||||
withoutExporting (when := isPrivateName constName) do
|
||||
realize
|
||||
-- Meta code working on a non-exported declaration should usually do so inside
|
||||
-- `withoutExporting` but we're lenient here in case this call is the only one that needs
|
||||
-- the setting.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue