Skip to content

Commit 810fbf0

Browse files
Remove chalk from the compiler
1 parent 8931edf commit 810fbf0

Some content is hidden

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

61 files changed

+16
-3779
lines changed

Cargo.lock

Lines changed: 0 additions & 75 deletions
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_interface/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ fn test_unstable_options_tracking_hash() {
841841
tracked!(thir_unsafeck, true);
842842
tracked!(tiny_const_eval_limit, true);
843843
tracked!(tls_model, Some(TlsModel::GeneralDynamic));
844-
tracked!(trait_solver, TraitSolver::Chalk);
844+
tracked!(trait_solver, TraitSolver::NextCoherence);
845845
tracked!(translate_remapped_path_to_local_path, false);
846846
tracked!(trap_unreachable, Some(false));
847847
tracked!(treat_err_as_bug, NonZeroUsize::new(1));

compiler/rustc_middle/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
bitflags = "1.2.1"
10-
chalk-ir = "0.92.0"
1110
derive_more = "0.99.17"
1211
either = "1.5.0"
1312
gsgdt = "0.1.2"

compiler/rustc_middle/src/query/erase.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ tcx_lifetime! {
315315
rustc_middle::mir::interpret::ConstValue,
316316
rustc_middle::mir::interpret::GlobalId,
317317
rustc_middle::mir::interpret::LitToConstInput,
318-
rustc_middle::traits::ChalkEnvironmentAndGoal,
319318
rustc_middle::traits::query::MethodAutoderefStepsResult,
320319
rustc_middle::traits::query::type_op::AscribeUserType,
321320
rustc_middle::traits::query::type_op::Eq,

compiler/rustc_middle/src/query/mod.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ use crate::traits::query::{
3939
};
4040
use crate::traits::specialization_graph;
4141
use crate::traits::{
42-
CanonicalChalkEnvironmentAndGoal, CodegenObligationError, EvaluationResult, ImplSource,
43-
ObjectSafetyViolation, ObligationCause, OverflowError, WellFormedLoc,
42+
CodegenObligationError, EvaluationResult, ImplSource, ObjectSafetyViolation, ObligationCause,
43+
OverflowError, WellFormedLoc,
4444
};
4545
use crate::ty::fast_reject::SimplifiedType;
4646
use crate::ty::layout::ValidityRequirement;
@@ -1971,15 +1971,6 @@ rustc_queries! {
19711971
desc { "evaluating trait selection obligation `{}`", goal.value.value }
19721972
}
19731973

1974-
query evaluate_goal(
1975-
goal: CanonicalChalkEnvironmentAndGoal<'tcx>
1976-
) -> Result<
1977-
&'tcx Canonical<'tcx, canonical::QueryResponse<'tcx, ()>>,
1978-
NoSolution
1979-
> {
1980-
desc { "evaluating trait selection obligation `{}`", goal.value }
1981-
}
1982-
19831974
/// Do not call this query directly: part of the `Eq` type-op
19841975
query type_op_ascribe_user_type(
19851976
goal: CanonicalTypeOpAscribeUserTypeGoal<'tcx>

0 commit comments

Comments
 (0)