提交 ead96f7f 编写于 作者: M Mara Bos

Allow #[unstable] impls for fn() with unstable abi.

上级 e60016eb
......@@ -888,10 +888,15 @@ fn visit_trait_ref(&mut self, t: &'tcx TraitRef<'tcx>) {
}
fn visit_ty(&mut self, t: &'tcx Ty<'tcx>) {
if let TyKind::Never = t.kind {
self.fully_stable = false;
match t.kind {
TyKind::Never => self.fully_stable = false,
TyKind::BareFn(f) => {
if rustc_target::spec::abi::is_stable(f.abi.name()).is_err() {
self.fully_stable = false;
}
}
_ => intravisit::walk_ty(self, t),
}
intravisit::walk_ty(self, t)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册