]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/passes/collect_intra_doc_links.rs
Rollup merge of #92559 - durin42:llvm-14-attributemask, r=nikic
[rust.git] / src / librustdoc / passes / collect_intra_doc_links.rs
index 680a74e5aa63c166b8367a2f307bb166a813ee46..7953008628204f3e72b0ff460d14b7260e06ff3d 100644 (file)
@@ -625,6 +625,9 @@ fn primitive_type_to_ty(&mut self, prim: PrimitiveType) -> Option<Ty<'tcx>> {
         use PrimitiveType::*;
         let tcx = self.cx.tcx;
 
+        // FIXME: Only simple types are supported here, see if we can support
+        // other types such as Tuple, Array, Slice, etc.
+        // See https://github.com/rust-lang/rust/issues/90703#issuecomment-1004263455
         Some(tcx.mk_ty(match prim {
             Bool => ty::Bool,
             Str => ty::Str,
@@ -644,14 +647,6 @@ fn primitive_type_to_ty(&mut self, prim: PrimitiveType) -> Option<Ty<'tcx>> {
             U64 => ty::Uint(ty::UintTy::U64),
             U128 => ty::Uint(ty::UintTy::U128),
             Usize => ty::Uint(ty::UintTy::Usize),
-            //ty::Tuple(tys) if tys.is_empty() => Res::Primitive(Unit),
-            //ty::Tuple(_) => Res::Primitive(Tuple),
-            //ty::Array(..) => Res::Primitive(Array),
-            //ty::Slice(_) => Res::Primitive(Slice),
-            //ty::RawPtr(_) => Res::Primitive(RawPointer),
-            //ty::Ref(..) => Res::Primitive(Reference),
-            //ty::FnDef(..) => panic!("type alias to a function definition"),
-            //ty::FnPtr(_) => Res::Primitive(Fn),
             _ => return None,
         }))
     }