Skip to content

Commit 7dfb1c4

Browse files
committed
minor: Yet another rustc crates bump
1 parent 15070dc commit 7dfb1c4

File tree

9 files changed

+62
-49
lines changed

9 files changed

+62
-49
lines changed

Cargo.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8989
vfs = { path = "./crates/vfs", version = "0.0.0" }
9090
edition = { path = "./crates/edition", version = "0.0.0" }
9191

92-
ra-ap-rustc_lexer = { version = "0.130", default-features = false }
93-
ra-ap-rustc_parse_format = { version = "0.130", default-features = false }
94-
ra-ap-rustc_index = { version = "0.130", default-features = false }
95-
ra-ap-rustc_abi = { version = "0.130", default-features = false }
96-
ra-ap-rustc_pattern_analysis = { version = "0.130", default-features = false }
97-
ra-ap-rustc_ast_ir = { version = "0.130", default-features = false }
98-
ra-ap-rustc_type_ir = { version = "0.130", default-features = false }
99-
ra-ap-rustc_next_trait_solver = { version = "0.130", default-features = false }
92+
ra-ap-rustc_lexer = { version = "0.131", default-features = false }
93+
ra-ap-rustc_parse_format = { version = "0.131", default-features = false }
94+
ra-ap-rustc_index = { version = "0.131", default-features = false }
95+
ra-ap-rustc_abi = { version = "0.131", default-features = false }
96+
ra-ap-rustc_pattern_analysis = { version = "0.131", default-features = false }
97+
ra-ap-rustc_ast_ir = { version = "0.131", default-features = false }
98+
ra-ap-rustc_type_ir = { version = "0.131", default-features = false }
99+
ra-ap-rustc_next_trait_solver = { version = "0.131", default-features = false }
100100

101101
# local crates that aren't published to crates.io. These should not have versions.
102102

crates/hir-ty/src/infer/unify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ impl<'db> InferenceTable<'db> {
910910
match result {
911911
Ok((_, Certainty::Yes)) => {}
912912
Err(rustc_type_ir::solve::NoSolution) => {}
913-
Ok((_, Certainty::Maybe(_))) => {
913+
Ok((_, Certainty::Maybe { .. })) => {
914914
self.fulfillment_cx.register_predicate_obligation(
915915
&self.infer_ctxt,
916916
Obligation::new(

crates/hir-ty/src/next_solver/fulfill.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl<'db> FulfillmentCtxt<'db> {
182182
if let Some(certainty) = delegate.compute_goal_fast_path(goal, Span::dummy()) {
183183
match certainty {
184184
Certainty::Yes => {}
185-
Certainty::Maybe(_) => {
185+
Certainty::Maybe { .. } => {
186186
self.obligations.register(obligation, None);
187187
}
188188
}
@@ -211,7 +211,7 @@ impl<'db> FulfillmentCtxt<'db> {
211211

212212
match certainty {
213213
Certainty::Yes => {}
214-
Certainty::Maybe(_) => self.obligations.register(obligation, stalled_on),
214+
Certainty::Maybe { .. } => self.obligations.register(obligation, stalled_on),
215215
}
216216
}
217217

crates/hir-ty/src/next_solver/fulfill/errors.rs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,17 @@ pub(super) fn fulfillment_error_for_stalled<'db>(
153153
Span::dummy(),
154154
None,
155155
) {
156-
Ok(GoalEvaluation { certainty: Certainty::Maybe(MaybeCause::Ambiguity), .. }) => {
157-
(FulfillmentErrorCode::Ambiguity { overflow: None }, true)
158-
}
156+
Ok(GoalEvaluation {
157+
certainty: Certainty::Maybe { cause: MaybeCause::Ambiguity, .. },
158+
..
159+
}) => (FulfillmentErrorCode::Ambiguity { overflow: None }, true),
159160
Ok(GoalEvaluation {
160161
certainty:
161-
Certainty::Maybe(MaybeCause::Overflow {
162-
suggest_increasing_limit,
163-
keep_constraints: _,
164-
}),
162+
Certainty::Maybe {
163+
cause:
164+
MaybeCause::Overflow { suggest_increasing_limit, keep_constraints: _ },
165+
..
166+
},
165167
..
166168
}) => (
167169
FulfillmentErrorCode::Ambiguity { overflow: Some(suggest_increasing_limit) },
@@ -314,7 +316,8 @@ impl<'db> BestObligation<'db> {
314316
.instantiate_proof_tree_for_nested_goal(GoalSource::Misc, obligation.as_goal());
315317
// Skip nested goals that aren't the *reason* for our goal's failure.
316318
match (self.consider_ambiguities, nested_goal.result()) {
317-
(true, Ok(Certainty::Maybe(MaybeCause::Ambiguity))) | (false, Err(_)) => {}
319+
(true, Ok(Certainty::Maybe { cause: MaybeCause::Ambiguity, .. }))
320+
| (false, Err(_)) => {}
318321
_ => continue,
319322
}
320323

@@ -456,7 +459,8 @@ impl<'db> ProofTreeVisitor<'db> for BestObligation<'db> {
456459
let interner = goal.infcx().interner;
457460
// Skip goals that aren't the *reason* for our goal's failure.
458461
match (self.consider_ambiguities, goal.result()) {
459-
(true, Ok(Certainty::Maybe(MaybeCause::Ambiguity))) | (false, Err(_)) => {}
462+
(true, Ok(Certainty::Maybe { cause: MaybeCause::Ambiguity, .. })) | (false, Err(_)) => {
463+
}
460464
_ => return ControlFlow::Continue(()),
461465
}
462466

crates/hir-ty/src/next_solver/infer/context.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,13 @@ impl<'db> rustc_type_ir::InferCtxtLike for InferCtxt<'db> {
321321
fn sub_unify_ty_vids_raw(&self, a: rustc_type_ir::TyVid, b: rustc_type_ir::TyVid) {
322322
self.sub_unify_ty_vids_raw(a, b);
323323
}
324+
325+
fn opaques_with_sub_unified_hidden_type(
326+
&self,
327+
_ty: TyVid,
328+
) -> Vec<rustc_type_ir::AliasTy<Self::Interner>> {
329+
// FIXME: I guess we are okay without this for now since currently r-a lacks of
330+
// detailed checks over opaque types. Might need to implement this in future.
331+
vec![]
332+
}
324333
}

crates/hir-ty/src/next_solver/infer/select.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl<'db> ProofTreeVisitor<'db> for Select {
208208

209209
// Don't winnow until `Certainty::Yes` -- we don't need to winnow until
210210
// codegen, and only on the good path.
211-
if matches!(goal.result().unwrap(), Certainty::Maybe(..)) {
211+
if matches!(goal.result().unwrap(), Certainty::Maybe { .. }) {
212212
return ControlFlow::Break(Ok(None));
213213
}
214214

@@ -241,7 +241,7 @@ fn candidate_should_be_dropped_in_favor_of<'db>(
241241
) -> bool {
242242
// Don't winnow until `Certainty::Yes` -- we don't need to winnow until
243243
// codegen, and only on the good path.
244-
if matches!(other.result().unwrap(), Certainty::Maybe(..)) {
244+
if matches!(other.result().unwrap(), Certainty::Maybe { .. }) {
245245
return false;
246246
}
247247

@@ -284,13 +284,13 @@ fn candidate_should_be_dropped_in_favor_of<'db>(
284284
}
285285

286286
fn to_selection<'db>(cand: InspectCandidate<'_, 'db>) -> Option<Selection<'db>> {
287-
if let Certainty::Maybe(..) = cand.shallow_certainty() {
287+
if let Certainty::Maybe { .. } = cand.shallow_certainty() {
288288
return None;
289289
}
290290

291291
let nested = match cand.result().expect("expected positive result") {
292292
Certainty::Yes => Vec::new(),
293-
Certainty::Maybe(_) => cand
293+
Certainty::Maybe { .. } => cand
294294
.instantiate_nested_goals()
295295
.into_iter()
296296
.map(|nested| {

crates/hir-ty/src/next_solver/inspect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ impl<'a, 'db> InspectGoal<'a, 'db> {
350350
inspect::ProbeStep::MakeCanonicalResponse { shallow_certainty: c } => {
351351
assert!(matches!(
352352
shallow_certainty.replace(c),
353-
None | Some(Certainty::Maybe(MaybeCause::Ambiguity))
353+
None | Some(Certainty::Maybe { cause: MaybeCause::Ambiguity, .. })
354354
));
355355
}
356356
inspect::ProbeStep::NestedProbe(ref probe) => {

crates/hir-ty/src/traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pub fn next_trait_solve(
277277
Ok((_, Certainty::Yes, args)) => NextTraitSolveResult::Certain(
278278
convert_canonical_args_for_result(DbInterner::new_with(db, Some(krate), block), args),
279279
),
280-
Ok((_, Certainty::Maybe(_), args)) => {
280+
Ok((_, Certainty::Maybe { .. }, args)) => {
281281
let subst = convert_canonical_args_for_result(
282282
DbInterner::new_with(db, Some(krate), block),
283283
args,
@@ -316,7 +316,7 @@ pub fn next_trait_solve_canonical_in_ctxt<'db>(
316316
Ok((_, Certainty::Yes, args)) => NextTraitSolveResult::Certain(
317317
convert_canonical_args_for_result(infer_ctxt.interner, args),
318318
),
319-
Ok((_, Certainty::Maybe(_), args)) => {
319+
Ok((_, Certainty::Maybe { .. }, args)) => {
320320
let subst = convert_canonical_args_for_result(infer_ctxt.interner, args);
321321
NextTraitSolveResult::Uncertain(chalk_ir::Canonical {
322322
binders: subst.binders,

0 commit comments

Comments
 (0)