@@ -625,6 +625,9 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
625
625
use PrimitiveType :: * ;
626
626
let tcx = self . cx . tcx ;
627
627
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
628
631
Some ( tcx. mk_ty ( match prim {
629
632
Bool => ty:: Bool ,
630
633
Str => ty:: Str ,
@@ -644,14 +647,6 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
644
647
U64 => ty:: Uint ( ty:: UintTy :: U64 ) ,
645
648
U128 => ty:: Uint ( ty:: UintTy :: U128 ) ,
646
649
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),
655
650
_ => return None ,
656
651
} ) )
657
652
}
0 commit comments