Minimize dependencies on trait and infer inside librustc#67970
Minimize dependencies on trait and infer inside librustc#67970bors merged 18 commits intorust-lang:masterfrom
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. |
Centril
left a comment
There was a problem hiding this comment.
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::wfto traits feels odd because well-formedness of types isn't a semantic property of traits only. -
The
free_region_mapshould 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