Skip to content

Commit c1d301b

Browse files
committed
Auto merge of rust-lang#92167 - pierwill:chalk-update, r=jackh726
Update chalk to 0.75.0 - Compute flags in `intern_ty` - Remove `tracing-serde` from `PERMITTED_DEPENDENCIES` - Bump `tracing-tree` to 0.2.0 - Bump `tracing-subscriber` to 0.3.3
2 parents 390bb34 + 155a4a8 commit c1d301b

File tree

11 files changed

+140
-154
lines changed

11 files changed

+140
-154
lines changed

Diff for: Cargo.lock

+18-33
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
492492

493493
[[package]]
494494
name = "chalk-derive"
495-
version = "0.55.0"
495+
version = "0.75.0"
496496
source = "registry+https://github.com/rust-lang/crates.io-index"
497-
checksum = "3983193cacd81f0f924acb666b7fe5e1a0d81db9f113fa69203eda7ea8ce8b6c"
497+
checksum = "d54e3b5f9e3425e6b119ff07568d8d006bfa5a8d6f78a9cbc3530b1e962e316c"
498498
dependencies = [
499499
"proc-macro2",
500500
"quote",
@@ -504,9 +504,9 @@ dependencies = [
504504

505505
[[package]]
506506
name = "chalk-engine"
507-
version = "0.55.0"
507+
version = "0.75.0"
508508
source = "registry+https://github.com/rust-lang/crates.io-index"
509-
checksum = "05a171ce5abbf0fbd06f221ab80ab182c7ef78603d23b858bc44e7ce8a86a396"
509+
checksum = "bdc891073396b167163db77123b0a3c00088edc00466cecc5531f33e3e989523"
510510
dependencies = [
511511
"chalk-derive",
512512
"chalk-ir",
@@ -517,9 +517,9 @@ dependencies = [
517517

518518
[[package]]
519519
name = "chalk-ir"
520-
version = "0.55.0"
520+
version = "0.75.0"
521521
source = "registry+https://github.com/rust-lang/crates.io-index"
522-
checksum = "a522f53af971e7678f472d687e053120157b3ae26e2ebd5ecbc0f5ab124f2cb6"
522+
checksum = "2b79e5a1d04b79311e90c69356a2c62027853906a7e33b3e070b93c055fc3e8a"
523523
dependencies = [
524524
"bitflags",
525525
"chalk-derive",
@@ -528,14 +528,14 @@ dependencies = [
528528

529529
[[package]]
530530
name = "chalk-solve"
531-
version = "0.55.0"
531+
version = "0.75.0"
532532
source = "registry+https://github.com/rust-lang/crates.io-index"
533-
checksum = "cdf79fb77a567e456a170f7ec84ea6584163d4ba3f13660cd182013d34ca667c"
533+
checksum = "a5d2a1db6605aba70a58820bd80ac422b218913a510f1a40beef9efc5371ea1d"
534534
dependencies = [
535535
"chalk-derive",
536536
"chalk-ir",
537537
"ena",
538-
"itertools 0.9.0",
538+
"itertools 0.10.1",
539539
"petgraph",
540540
"rustc-hash",
541541
"tracing",
@@ -2107,9 +2107,9 @@ dependencies = [
21072107

21082108
[[package]]
21092109
name = "matchers"
2110-
version = "0.0.1"
2110+
version = "0.1.0"
21112111
source = "registry+https://github.com/rust-lang/crates.io-index"
2112-
checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1"
2112+
checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
21132113
dependencies = [
21142114
"regex-automata",
21152115
]
@@ -5122,9 +5122,9 @@ dependencies = [
51225122

51235123
[[package]]
51245124
name = "synstructure"
5125-
version = "0.12.4"
5125+
version = "0.12.6"
51265126
source = "registry+https://github.com/rust-lang/crates.io-index"
5127-
checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
5127+
checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f"
51285128
dependencies = [
51295129
"proc-macro2",
51305130
"quote",
@@ -5447,49 +5447,34 @@ dependencies = [
54475447
"tracing-core",
54485448
]
54495449

5450-
[[package]]
5451-
name = "tracing-serde"
5452-
version = "0.1.2"
5453-
source = "registry+https://github.com/rust-lang/crates.io-index"
5454-
checksum = "fb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28b"
5455-
dependencies = [
5456-
"serde",
5457-
"tracing-core",
5458-
]
5459-
54605450
[[package]]
54615451
name = "tracing-subscriber"
5462-
version = "0.2.16"
5452+
version = "0.3.3"
54635453
source = "registry+https://github.com/rust-lang/crates.io-index"
5464-
checksum = "8ab8966ac3ca27126141f7999361cc97dd6fb4b71da04c02044fa9045d98bb96"
5454+
checksum = "245da694cc7fc4729f3f418b304cb57789f1bed2a78c575407ab8a23f53cb4d3"
54655455
dependencies = [
54665456
"ansi_term 0.12.1",
5467-
"chrono",
54685457
"lazy_static",
54695458
"matchers",
54705459
"parking_lot",
54715460
"regex",
5472-
"serde",
5473-
"serde_json",
54745461
"sharded-slab",
54755462
"smallvec",
54765463
"thread_local",
54775464
"tracing",
54785465
"tracing-core",
54795466
"tracing-log",
5480-
"tracing-serde",
54815467
]
54825468

54835469
[[package]]
54845470
name = "tracing-tree"
5485-
version = "0.1.9"
5471+
version = "0.2.0"
54865472
source = "registry+https://github.com/rust-lang/crates.io-index"
5487-
checksum = "1712b40907f8d9bc2bc66763ab61dec914b7123d7149e59feb0d4e2a95fc4967"
5473+
checksum = "3ce989c9962c7f61fe084dd4a230eec784649dfc2392467c790007c3a6e134e7"
54885474
dependencies = [
54895475
"ansi_term 0.12.1",
54905476
"atty",
5491-
"termcolor",
5492-
"tracing",
5477+
"tracing-core",
54935478
"tracing-log",
54945479
"tracing-subscriber",
54955480
]

Diff for: compiler/rustc_driver/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ crate-type = ["dylib"]
1010
libc = "0.2"
1111
atty = "0.2"
1212
tracing = { version = "0.1.28" }
13-
tracing-subscriber = { version = "0.2.16", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
14-
tracing-tree = "0.1.9"
13+
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
14+
tracing-tree = "0.2.0"
1515
rustc_middle = { path = "../rustc_middle" }
1616
rustc_ast_pretty = { path = "../rustc_ast_pretty" }
1717
rustc_target = { path = "../rustc_target" }

Diff for: compiler/rustc_middle/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rustc_index = { path = "../rustc_index" }
2929
rustc_serialize = { path = "../rustc_serialize" }
3030
rustc_ast = { path = "../rustc_ast" }
3131
rustc_span = { path = "../rustc_span" }
32-
chalk-ir = "0.55.0"
32+
chalk-ir = "0.75.0"
3333
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
3434
rustc_session = { path = "../rustc_session" }
3535
rustc_type_ir = { path = "../rustc_type_ir" }

Diff for: compiler/rustc_middle/src/traits/chalk.rs

+31-30
Original file line numberDiff line numberDiff line change
@@ -206,179 +206,180 @@ impl<'tcx> chalk_ir::interner::Interner for RustInterner<'tcx> {
206206
Some(write!(fmt, "{:?}", opaque_ty.opaque_ty_id))
207207
}
208208

209-
fn intern_ty(&self, ty: chalk_ir::TyData<Self>) -> Self::InternedType {
210-
Box::new(ty)
209+
fn intern_ty(self, ty: chalk_ir::TyKind<Self>) -> Self::InternedType {
210+
let flags = ty.compute_flags(self);
211+
Box::new(chalk_ir::TyData { kind: ty, flags: flags })
211212
}
212213

213-
fn ty_data<'a>(&self, ty: &'a Self::InternedType) -> &'a chalk_ir::TyData<Self> {
214+
fn ty_data<'a>(self, ty: &'a Self::InternedType) -> &'a chalk_ir::TyData<Self> {
214215
ty
215216
}
216217

217-
fn intern_lifetime(&self, lifetime: chalk_ir::LifetimeData<Self>) -> Self::InternedLifetime {
218+
fn intern_lifetime(self, lifetime: chalk_ir::LifetimeData<Self>) -> Self::InternedLifetime {
218219
Box::new(lifetime)
219220
}
220221

221222
fn lifetime_data<'a>(
222-
&self,
223+
self,
223224
lifetime: &'a Self::InternedLifetime,
224225
) -> &'a chalk_ir::LifetimeData<Self> {
225226
&lifetime
226227
}
227228

228-
fn intern_const(&self, constant: chalk_ir::ConstData<Self>) -> Self::InternedConst {
229+
fn intern_const(self, constant: chalk_ir::ConstData<Self>) -> Self::InternedConst {
229230
Box::new(constant)
230231
}
231232

232-
fn const_data<'a>(&self, constant: &'a Self::InternedConst) -> &'a chalk_ir::ConstData<Self> {
233+
fn const_data<'a>(self, constant: &'a Self::InternedConst) -> &'a chalk_ir::ConstData<Self> {
233234
&constant
234235
}
235236

236237
fn const_eq(
237-
&self,
238+
self,
238239
_ty: &Self::InternedType,
239240
c1: &Self::InternedConcreteConst,
240241
c2: &Self::InternedConcreteConst,
241242
) -> bool {
242243
c1 == c2
243244
}
244245

245-
fn intern_generic_arg(&self, data: chalk_ir::GenericArgData<Self>) -> Self::InternedGenericArg {
246+
fn intern_generic_arg(self, data: chalk_ir::GenericArgData<Self>) -> Self::InternedGenericArg {
246247
Box::new(data)
247248
}
248249

249250
fn generic_arg_data<'a>(
250-
&self,
251+
self,
251252
data: &'a Self::InternedGenericArg,
252253
) -> &'a chalk_ir::GenericArgData<Self> {
253254
&data
254255
}
255256

256-
fn intern_goal(&self, goal: chalk_ir::GoalData<Self>) -> Self::InternedGoal {
257+
fn intern_goal(self, goal: chalk_ir::GoalData<Self>) -> Self::InternedGoal {
257258
Box::new(goal)
258259
}
259260

260-
fn goal_data<'a>(&self, goal: &'a Self::InternedGoal) -> &'a chalk_ir::GoalData<Self> {
261+
fn goal_data<'a>(self, goal: &'a Self::InternedGoal) -> &'a chalk_ir::GoalData<Self> {
261262
&goal
262263
}
263264

264265
fn intern_goals<E>(
265-
&self,
266+
self,
266267
data: impl IntoIterator<Item = Result<chalk_ir::Goal<Self>, E>>,
267268
) -> Result<Self::InternedGoals, E> {
268269
data.into_iter().collect::<Result<Vec<_>, _>>()
269270
}
270271

271-
fn goals_data<'a>(&self, goals: &'a Self::InternedGoals) -> &'a [chalk_ir::Goal<Self>] {
272+
fn goals_data<'a>(self, goals: &'a Self::InternedGoals) -> &'a [chalk_ir::Goal<Self>] {
272273
goals
273274
}
274275

275276
fn intern_substitution<E>(
276-
&self,
277+
self,
277278
data: impl IntoIterator<Item = Result<chalk_ir::GenericArg<Self>, E>>,
278279
) -> Result<Self::InternedSubstitution, E> {
279280
data.into_iter().collect::<Result<Vec<_>, _>>()
280281
}
281282

282283
fn substitution_data<'a>(
283-
&self,
284+
self,
284285
substitution: &'a Self::InternedSubstitution,
285286
) -> &'a [chalk_ir::GenericArg<Self>] {
286287
substitution
287288
}
288289

289290
fn intern_program_clause(
290-
&self,
291+
self,
291292
data: chalk_ir::ProgramClauseData<Self>,
292293
) -> Self::InternedProgramClause {
293294
Box::new(data)
294295
}
295296

296297
fn program_clause_data<'a>(
297-
&self,
298+
self,
298299
clause: &'a Self::InternedProgramClause,
299300
) -> &'a chalk_ir::ProgramClauseData<Self> {
300301
&clause
301302
}
302303

303304
fn intern_program_clauses<E>(
304-
&self,
305+
self,
305306
data: impl IntoIterator<Item = Result<chalk_ir::ProgramClause<Self>, E>>,
306307
) -> Result<Self::InternedProgramClauses, E> {
307308
data.into_iter().collect::<Result<Vec<_>, _>>()
308309
}
309310

310311
fn program_clauses_data<'a>(
311-
&self,
312+
self,
312313
clauses: &'a Self::InternedProgramClauses,
313314
) -> &'a [chalk_ir::ProgramClause<Self>] {
314315
clauses
315316
}
316317

317318
fn intern_quantified_where_clauses<E>(
318-
&self,
319+
self,
319320
data: impl IntoIterator<Item = Result<chalk_ir::QuantifiedWhereClause<Self>, E>>,
320321
) -> Result<Self::InternedQuantifiedWhereClauses, E> {
321322
data.into_iter().collect::<Result<Vec<_>, _>>()
322323
}
323324

324325
fn quantified_where_clauses_data<'a>(
325-
&self,
326+
self,
326327
clauses: &'a Self::InternedQuantifiedWhereClauses,
327328
) -> &'a [chalk_ir::QuantifiedWhereClause<Self>] {
328329
clauses
329330
}
330331

331332
fn intern_generic_arg_kinds<E>(
332-
&self,
333+
self,
333334
data: impl IntoIterator<Item = Result<chalk_ir::VariableKind<Self>, E>>,
334335
) -> Result<Self::InternedVariableKinds, E> {
335336
data.into_iter().collect::<Result<Vec<_>, _>>()
336337
}
337338

338339
fn variable_kinds_data<'a>(
339-
&self,
340+
self,
340341
parameter_kinds: &'a Self::InternedVariableKinds,
341342
) -> &'a [chalk_ir::VariableKind<Self>] {
342343
parameter_kinds
343344
}
344345

345346
fn intern_canonical_var_kinds<E>(
346-
&self,
347+
self,
347348
data: impl IntoIterator<Item = Result<chalk_ir::CanonicalVarKind<Self>, E>>,
348349
) -> Result<Self::InternedCanonicalVarKinds, E> {
349350
data.into_iter().collect::<Result<Vec<_>, _>>()
350351
}
351352

352353
fn canonical_var_kinds_data<'a>(
353-
&self,
354+
self,
354355
canonical_var_kinds: &'a Self::InternedCanonicalVarKinds,
355356
) -> &'a [chalk_ir::CanonicalVarKind<Self>] {
356357
canonical_var_kinds
357358
}
358359

359360
fn intern_constraints<E>(
360-
&self,
361+
self,
361362
data: impl IntoIterator<Item = Result<chalk_ir::InEnvironment<chalk_ir::Constraint<Self>>, E>>,
362363
) -> Result<Self::InternedConstraints, E> {
363364
data.into_iter().collect::<Result<Vec<_>, _>>()
364365
}
365366

366367
fn constraints_data<'a>(
367-
&self,
368+
self,
368369
constraints: &'a Self::InternedConstraints,
369370
) -> &'a [chalk_ir::InEnvironment<chalk_ir::Constraint<Self>>] {
370371
constraints
371372
}
372373

373374
fn intern_variances<E>(
374-
&self,
375+
self,
375376
data: impl IntoIterator<Item = Result<chalk_ir::Variance, E>>,
376377
) -> Result<Self::InternedVariances, E> {
377378
data.into_iter().collect::<Result<Vec<_>, _>>()
378379
}
379380

380381
fn variances_data<'a>(
381-
&self,
382+
self,
382383
variances: &'a Self::InternedVariances,
383384
) -> &'a [chalk_ir::Variance] {
384385
variances

Diff for: compiler/rustc_traits/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ rustc_hir = { path = "../rustc_hir" }
1212
rustc_index = { path = "../rustc_index" }
1313
rustc_ast = { path = "../rustc_ast" }
1414
rustc_span = { path = "../rustc_span" }
15-
chalk-ir = "0.55.0"
16-
chalk-solve = "0.55.0"
17-
chalk-engine = "0.55.0"
15+
chalk-ir = "0.75.0"
16+
chalk-engine = "0.75.0"
17+
chalk-solve = "0.75.0"
1818
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
1919
rustc_infer = { path = "../rustc_infer" }
2020
rustc_trait_selection = { path = "../rustc_trait_selection" }

0 commit comments

Comments
 (0)