Skip to content

Commit cd68ead

Browse files
committedJul 4, 2023
Auto merge of rust-lang#113303 - compiler-errors:yeet-chalk, r=lcnr
Remove chalk support from the compiler Removes chalk (`-Ztrait-solver=chalk`) from the compiler and prunes any dead code resulting from this, mainly: * Remove the chalk compatibility layer in `compiler/rustc_traits/src/chalk` * Remove the chalk flag `-Ztrait-solver=chalk` and its `TraitEngine` implementation * Remove `TypeWellFormedFromEnv` (and its many `bug!()` match arms) * Remove the chalk migration mode from compiletest * Remove the `chalkify` UI tests (do we want to keep any of these, but migrate them to `-Ztrait-solver=next`??) Fulfills rust-lang/types-team#93. r? `@jackh726`

File tree

89 files changed

+35
-3864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+35
-3864
lines changed
 

‎Cargo.lock

-75
Original file line numberDiff line numberDiff line change
@@ -433,60 +433,6 @@ dependencies = [
433433
"rustc-std-workspace-core",
434434
]
435435

436-
[[package]]
437-
name = "chalk-derive"
438-
version = "0.92.0"
439-
source = "registry+https://github.com/rust-lang/crates.io-index"
440-
checksum = "ff5053a8a42dbff5279a82423946fc56dc1253b76cf211b2b3c14b3aad4e1281"
441-
dependencies = [
442-
"proc-macro2",
443-
"quote",
444-
"syn 2.0.8",
445-
"synstructure 0.13.0",
446-
]
447-
448-
[[package]]
449-
name = "chalk-engine"
450-
version = "0.92.0"
451-
source = "registry+https://github.com/rust-lang/crates.io-index"
452-
checksum = "b9d0e18f29b8b0f4dcf7d31fe00c884af67719699e381e8dcc9d9624b1621c60"
453-
dependencies = [
454-
"chalk-derive",
455-
"chalk-ir",
456-
"chalk-solve",
457-
"rustc-hash",
458-
"tracing",
459-
]
460-
461-
[[package]]
462-
name = "chalk-ir"
463-
version = "0.92.0"
464-
source = "registry+https://github.com/rust-lang/crates.io-index"
465-
checksum = "8a56de2146a8ed0fcd54f4bd50db852f1de4eac9e1efe568494f106c21b77d2a"
466-
dependencies = [
467-
"bitflags 1.3.2",
468-
"chalk-derive",
469-
"lazy_static",
470-
]
471-
472-
[[package]]
473-
name = "chalk-solve"
474-
version = "0.92.0"
475-
source = "registry+https://github.com/rust-lang/crates.io-index"
476-
checksum = "b392e02b4c81ec76d3748da839fc70a5539b83d27c9030668463d34d5110b860"
477-
dependencies = [
478-
"chalk-derive",
479-
"chalk-ir",
480-
"ena",
481-
"indexmap 1.9.3",
482-
"itertools",
483-
"petgraph",
484-
"rustc-hash",
485-
"tracing",
486-
"tracing-subscriber",
487-
"tracing-tree",
488-
]
489-
490436
[[package]]
491437
name = "chrono"
492438
version = "0.4.26"
@@ -1168,12 +1114,6 @@ dependencies = [
11681114
"windows-sys 0.48.0",
11691115
]
11701116

1171-
[[package]]
1172-
name = "fixedbitset"
1173-
version = "0.2.0"
1174-
source = "registry+https://github.com/rust-lang/crates.io-index"
1175-
checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
1176-
11771117
[[package]]
11781118
name = "flate2"
11791119
version = "1.0.26"
@@ -2466,16 +2406,6 @@ dependencies = [
24662406
"sha2",
24672407
]
24682408

2469-
[[package]]
2470-
name = "petgraph"
2471-
version = "0.5.1"
2472-
source = "registry+https://github.com/rust-lang/crates.io-index"
2473-
checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7"
2474-
dependencies = [
2475-
"fixedbitset",
2476-
"indexmap 1.9.3",
2477-
]
2478-
24792409
[[package]]
24802410
name = "phf"
24812411
version = "0.10.1"
@@ -3675,7 +3605,6 @@ name = "rustc_middle"
36753605
version = "0.0.0"
36763606
dependencies = [
36773607
"bitflags 1.3.2",
3678-
"chalk-ir",
36793608
"derive_more",
36803609
"either",
36813610
"field-offset",
@@ -4102,9 +4031,6 @@ dependencies = [
41024031
name = "rustc_traits"
41034032
version = "0.0.0"
41044033
dependencies = [
4105-
"chalk-engine",
4106-
"chalk-ir",
4107-
"chalk-solve",
41084034
"rustc_ast",
41094035
"rustc_data_structures",
41104036
"rustc_hir",
@@ -5033,7 +4959,6 @@ dependencies = [
50334959
"thread_local",
50344960
"tracing",
50354961
"tracing-core",
5036-
"tracing-log",
50374962
]
50384963

50394964
[[package]]

‎compiler/rustc_hir_analysis/src/astconv/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
983983
ty::ClauseKind::RegionOutlives(_)
984984
| ty::ClauseKind::ConstArgHasType(..)
985985
| ty::ClauseKind::WellFormed(_)
986-
| ty::ClauseKind::ConstEvaluatable(_)
987-
| ty::ClauseKind::TypeWellFormedFromEnv(_) => {
986+
| ty::ClauseKind::ConstEvaluatable(_) => {
988987
bug!()
989988
}
990989
}

0 commit comments

Comments
 (0)
Please sign in to comment.