Move some things to rustc_type_ir#139722
Conversation
compiler-errors
left a comment
There was a problem hiding this comment.
Looks mostly fine, just some questions and some nitpicky cleanups that would be really nice
| [] name_set: rustc_data_structures::unord::UnordSet<rustc_span::Symbol>, | ||
| [] autodiff_item: rustc_ast::expand::autodiff_attrs::AutoDiffItem, | ||
| [] ordered_name_set: rustc_data_structures::fx::FxIndexSet<rustc_span::Symbol>, | ||
| [] pats: rustc_middle::ty::PatternKind<'tcx>, |
There was a problem hiding this comment.
I assume this was just never used?
There was a problem hiding this comment.
So, the IntoKind impl wants PatternKind to be Copy, so I added that derive, but then there are overlapping arena impls, so I just removed this.
There was a problem hiding this comment.
Oh, right, as soon as an impl is copy it's automatically arena internable.
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
139f120 to
4d76429
Compare
|
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor changes to the core type system changes to the core type system |
4d76429 to
10955ec
Compare
|
@compiler-errors Sorry, I had fixed some of the things you commented on and pushed, but to the wrong branch. Looking at your review and will fix the things that are relevant. |
10955ec to
accae53
Compare
|
@rustbot ready |
|
@bors r+ |
…compiler-errors Move some things to rustc_type_ir This moves - `PatternKind` - `FlagComputation` - `TypeWalker` into rustc_type_ir. Not strictly required for rust-analyzer next-solve integration, but helps with code duplication. r? types
…compiler-errors Move some things to rustc_type_ir This moves - `PatternKind` - `FlagComputation` - `TypeWalker` into rustc_type_ir. Not strictly required for rust-analyzer next-solve integration, but helps with code duplication. r? types
…enton Rollup of 12 pull requests Successful merges: - rust-lang#138744 (Add methods to TCP and UDP sockets to modify hop limit (refresh of rust-lang#94678)) - rust-lang#138962 (Expect an array when expected and acutal types are both arrays during cast) - rust-lang#139001 (add `naked_functions_rustic_abi` feature gate) - rust-lang#139379 (Use delayed bug for normalization errors in drop elaboration) - rust-lang#139582 (Various coercion cleanups) - rust-lang#139628 (Suggest remove redundant `$()?` around `vis`) - rust-lang#139644 (Micro-optimize `InstSimplify`'s `simplify_primitive_clone`) - rust-lang#139666 (cleanup `mir_borrowck`) - rust-lang#139674 (In `rustc_mir_transform`, iterate over index newtypes instead of ints) - rust-lang#139695 (compiletest: consistently use `camino::{Utf8Path,Utf8PathBuf}` throughout) - rust-lang#139722 (Move some things to rustc_type_ir) - rust-lang#139740 (Convert `tests/ui/lint/dead-code/self-assign.rs` to a known-bug test) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 9 pull requests Successful merges: - rust-lang#138336 (Improve `-Z crate-attr` diagnostics) - rust-lang#139636 (Encode dep node edge count as u32 instead of usize) - rust-lang#139666 (cleanup `mir_borrowck`) - rust-lang#139695 (compiletest: consistently use `camino::{Utf8Path,Utf8PathBuf}` throughout) - rust-lang#139699 (Proactively update coroutine drop shim's phase to account for later passes applied during shim query) - rust-lang#139718 (enforce unsafe attributes in pre-2024 editions by default) - rust-lang#139722 (Move some things to rustc_type_ir) - rust-lang#139760 (UI tests: migrate remaining compile time `error-pattern`s to line annotations when possible) - rust-lang#139776 (Switch attrs to `diagnostic::on_unimplemented`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#139722 - jackh726:patternkind-walk-toir, r=compiler-errors Move some things to rustc_type_ir This moves - `PatternKind` - `FlagComputation` - `TypeWalker` into rustc_type_ir. Not strictly required for rust-analyzer next-solve integration, but helps with code duplication. r? types
This moves
PatternKindFlagComputationTypeWalkerinto rustc_type_ir.
Not strictly required for rust-analyzer next-solve integration, but helps with code duplication.
r? types