-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Minimize dependencies on trait and infer inside librustc #67970
Conversation
@bors rollup=never p=10 |
…te_and_explain_region} free functions.
…ze_error, report_object_safety_error} free functions.
…is_vtable_safe_method,object_safety_violations} free functions.
Rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The comment below is the only thing I'd prefer having addressed now before this can land.
However, I also had some other thoughts:
-
Moving
ty::wf
to traits feels odd because well-formedness of types isn't a semantic property of traits only. -
The
free_region_map
should perhaps not be inty
.
That said, I think we can experiment for now and reassess once more things like Ty<'tcx>
has been moved out. Perhaps more opportunities for good semantic categorization will arise then.
Also, let's cc @nikomatsakis & @matthewjasper for awareness. :)
@bors r+ |
📌 Commit 700ac84 has been approved by |
It shouldn't. It's currently in |
☀️ Test successful - checks-azure |
📣 Toolstate changed by #67970! Tested on commit 7e393b5. 💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra). |
Tested on commit rust-lang/rust@7e393b5. Direct link to PR: <rust-lang/rust#67970> 💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra). 💔 clippy-driver on linux: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra).
Rustup to rust-lang/rust#67970 changelog: none
Split from #67953
All commits should pass check on their own.
r? @Centril