about summary refs log tree commit diff
path: root/compiler/rustc_query_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-24 09:50:20 +0000
committerbors <bors@rust-lang.org>2025-07-24 09:50:20 +0000
commitfc5af1813307d25a84d633f21e2e53c9376eb547 (patch)
treee1223cf4321fadd4be4bd386ccad8e88198564cf /compiler/rustc_query_system
parent3c30dbbe31bfbf6029f4534170165ba573ff0fd1 (diff)
parent4b557912af68afa5344e29922457c5df2e784078 (diff)
downloadrust-fc5af1813307d25a84d633f21e2e53c9376eb547.tar.gz
rust-fc5af1813307d25a84d633f21e2e53c9376eb547.zip
Auto merge of #144272 - petrochenkov:disambunder2, r=oli-obk
resolve: Make disambiguators for underscore bindings module-local (take 2)

The difference with https://github.com/rust-lang/rust/pull/144013 can be seen in the second commit.

Now we just keep a separate disambiguator counter in every `Module`, instead of a global counter in `Resolver`.
This will be ok for parallel import resolution because we'll need to lock the module anyway when updating `resolutions` and other fields in it.
And for external modules the disabmiguator could be just passed as an argument to `define_extern`, without using any cells or locks, once https://github.com/rust-lang/rust/pull/143884 lands.

Unblocks https://github.com/rust-lang/rust/pull/143884.
Diffstat (limited to 'compiler/rustc_query_system')
0 files changed, 0 insertions, 0 deletions