Skip to content
  • Matthew Pickering's avatar
    package imports: Take into account package visibility when renaming · 803eefb1
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    In 806e49ae the package imports refactoring code was modified to rename
    package imports. There was a small oversight which meant the code didn't
    account for module visibility. This patch fixes that oversight.
    
    In general the "lookupPackageName" function is unsafe to use as it
    doesn't account for package visiblity/thinning/renaming etc, there is
    just one use in the compiler which would be good to audit.
    
    Fixes #20779
    803eefb1