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 e60016e commit ead96f7Copy full SHA for ead96f7
compiler/rustc_passes/src/stability.rs
@@ -888,10 +888,15 @@ impl<'tcx> Visitor<'tcx> for CheckTraitImplStable<'tcx> {
888
}
889
890
fn visit_ty(&mut self, t: &'tcx Ty<'tcx>) {
891
- if let TyKind::Never = t.kind {
892
- self.fully_stable = false;
+ match t.kind {
+ TyKind::Never => self.fully_stable = false,
893
+ TyKind::BareFn(f) => {
894
+ if rustc_target::spec::abi::is_stable(f.abi.name()).is_err() {
895
+ self.fully_stable = false;
896
+ }
897
898
+ _ => intravisit::walk_ty(self, t),
899
- intravisit::walk_ty(self, t)
900
901
902
0 commit comments