@@ -625,6 +625,9 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
625625 use PrimitiveType :: * ;
626626 let tcx = self . cx . tcx ;
627627
628+ // FIXME: Only simple types are supported here, see if we can support
629+ // other types such as Tuple, Array, Slice, etc.
630+ // See https://github.com/rust-lang/rust/issues/90703#issuecomment-1004263455
628631 Some ( tcx. mk_ty ( match prim {
629632 Bool => ty:: Bool ,
630633 Str => ty:: Str ,
@@ -644,14 +647,6 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
644647 U64 => ty:: Uint ( ty:: UintTy :: U64 ) ,
645648 U128 => ty:: Uint ( ty:: UintTy :: U128 ) ,
646649 Usize => ty:: Uint ( ty:: UintTy :: Usize ) ,
647- //ty::Tuple(tys) if tys.is_empty() => Res::Primitive(Unit),
648- //ty::Tuple(_) => Res::Primitive(Tuple),
649- //ty::Array(..) => Res::Primitive(Array),
650- //ty::Slice(_) => Res::Primitive(Slice),
651- //ty::RawPtr(_) => Res::Primitive(RawPointer),
652- //ty::Ref(..) => Res::Primitive(Reference),
653- //ty::FnDef(..) => panic!("type alias to a function definition"),
654- //ty::FnPtr(_) => Res::Primitive(Fn),
655650 _ => return None ,
656651 } ) )
657652 }
0 commit comments