-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Reorganize borrow check diagnostic code #66815
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
I still need to fix up a bunch of imports... also, I'm not super happy about sprinkling |
@matthewjasper Looks like this is ready for review. I would like to take a crack at making region_errors/region_name not be implemented in |
Sorry, one more thing: this will probably conflict with #66679, so maybe wait for that to merge first? |
☔ The latest upstream changes (presumably #56231) made this pull request unmergeable. Please resolve the merge conflicts. |
I wouldn't mind |
Unfortunately there is a dependency until polonius is fully implemented. |
Sorry, forgetting the command right now, but this is S-blocked on #66679 I rebased over that PR... |
0e007af
to
82f3445
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@rustbot modify labels: +S-blocked +S-waiting-on-author -S-waiting-on-review |
f8e15df
to
daa25c3
Compare
@rustbot modify labels: +S-waiting-on-review -S-blocked |
☔ The latest upstream changes (presumably #64736) made this pull request unmergeable. Please resolve the merge conflicts. |
daa25c3
to
6492513
Compare
@bors r+ |
📌 Commit 64925139b37086265ad4738a54c7a0ccfb5423b2 has been approved by |
6492513
to
b998e83
Compare
@matthewjasper rebased |
@bors r+ |
📌 Commit b998e83 has been approved by |
…-DPC Reorganize borrow check diagnostic code Currently borrow checker diagnostics are split across many different modules in different places in the `librustc_mir` crate. This moves them all to a `diagnostics` module. This also reduces the nesting of the modules a bit (sooo much nesting). I am also thinking of moving stuff out of the `nll` module since we only have one borrow checker now (:tada:), and maybe it even makes sense to split out all of this stuff to a `librustc_borrow_check`, but those are for the future. Feel free to ping me here or on zulip and let me know what you think... cc @nikomatsakis @matthewjasper @eddyb
☀️ Test successful - checks-azure |
Currently borrow checker diagnostics are split across many different modules in different places in the
librustc_mir
crate. This moves them all to adiagnostics
module. This also reduces the nesting of the modules a bit (sooo much nesting).I am also thinking of moving stuff out of the
nll
module since we only have one borrow checker now (:tada:), and maybe it even makes sense to split out all of this stuff to alibrustc_borrow_check
, but those are for the future. Feel free to ping me here or on zulip and let me know what you think...cc @nikomatsakis @matthewjasper @eddyb