We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8771282 commit c2158a4Copy full SHA for c2158a4
compiler/rustc_smir/src/rustc_smir/mod.rs
@@ -525,13 +525,17 @@ impl<'tcx> Stable<'tcx> for ty::GenericArgs<'tcx> {
525
}
526
527
528
-impl<'tcx> Stable<'tcx> for ty::PolyFnSig<'tcx> {
529
- type T = stable_mir::ty::PolyFnSig;
+impl<'tcx, S, V> Stable<'tcx> for ty::Binder<'tcx, S>
+where
530
+ S: Stable<'tcx, T = V>,
531
+{
532
+ type T = stable_mir::ty::Binder<V>;
533
+
534
fn stable(&self, tables: &mut Tables<'tcx>) -> Self::T {
535
use stable_mir::ty::Binder;
536
537
Binder {
- value: self.skip_binder().stable(tables),
538
+ value: self.as_ref().skip_binder().stable(tables),
539
bound_vars: self
540
.bound_vars()
541
.iter()
0 commit comments