-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
resolve: Preserve binding scopes in ambiguity errors #150445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It allows to get rid of `AmbiguityErrorMisc` and `Flags`.
|
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
|
r? @nnethercote rustbot has assigned @nnethercote. Use |
|
Nice cleanup. @bors r+ |
Rollup merge of #150445 - petrochenkov:keepscope, r=nnethercote resolve: Preserve binding scopes in ambiguity errors It allows to get rid of `AmbiguityErrorMisc`, `Flags` and `extern_prelude_flag_binding`. Also keep all encountered bindings in `resolve_ident_in_scope_set`, it allows to get rid of `extern_prelude_item_binding`. This also unblocks #149681 because the newly preserved data will help to fix the regressions in #149681 (comment) in a reasonable way.
|
@bors retry r- (sync) |
resolve: Refactor away the side table `decl_parent_modules` Instead keep parent modules in `DeclData` itself. Follow up to rust-lang#150445. r? @nnethercote
resolve: Refactor away the side table `decl_parent_modules` Instead keep parent modules in `DeclData` itself. Follow up to rust-lang#150445. r? @nnethercote
resolve: Refactor away the side table `decl_parent_modules` Instead keep parent modules in `DeclData` itself. Follow up to rust-lang#150445. r? @nnethercote
Rollup merge of #150877 - declmod, r=nnethercote resolve: Refactor away the side table `decl_parent_modules` Instead keep parent modules in `DeclData` itself. Follow up to #150445. r? @nnethercote
It allows to get rid of
AmbiguityErrorMisc,Flagsandextern_prelude_flag_binding.Also keep all encountered bindings in
resolve_ident_in_scope_set, it allows to get rid ofextern_prelude_item_binding.This also unblocks #149681 because the newly preserved data will help to fix the regressions in #149681 (comment) in a reasonable way.