Skip to content

Commit 5fc0395

Browse files
varkoryodaldevoid
andcommitted
Resolve a couple of unimplemented!()s
Co-Authored-By: Gabriel Smith <[email protected]>
1 parent c0454f0 commit 5fc0395

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/librustc/infer/canonical/query_response.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
318318
obligations.extend(ok.into_obligations());
319319
}
320320

321-
(UnpackedKind::Const(..), UnpackedKind::Const(..)) => {
322-
unimplemented!() // FIXME(const_generics)
321+
(UnpackedKind::Const(v1), UnpackedKind::Const(v2)) => {
322+
let ok = self.at(cause, param_env).eq(v1, v2)?;
323+
obligations.extend(ok.into_obligations());
323324
}
324325

325326
_ => {
@@ -626,8 +627,9 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
626627
obligations
627628
.extend(self.at(cause, param_env).eq(v1, v2)?.into_obligations());
628629
}
629-
(UnpackedKind::Const(..), UnpackedKind::Const(..)) => {
630-
unimplemented!() // FIXME(const_generics)
630+
(UnpackedKind::Const(v1), UnpackedKind::Const(v2)) => {
631+
let ok = self.at(cause, param_env).eq(v1, v2)?;
632+
obligations.extend(ok.into_obligations());
631633
}
632634
_ => {
633635
bug!("kind mismatch, cannot unify {:?} and {:?}", value1, value2,);

0 commit comments

Comments
 (0)