]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/astconv_util.rs
Auto merge of #30696 - steveklabnik:gh30655, r=brson
[rust.git] / src / librustc / middle / astconv_util.rs
index 3b837277203972d0a789f9e8abd5e9ce540237e0..2bf749d93cec471c63cdc31b47dc39f4f74cc950 100644 (file)
@@ -60,6 +60,8 @@ pub fn prim_ty_to_ty<'tcx>(tcx: &ty::ctxt<'tcx>,
     }
 }
 
+/// If a type in the AST is a primitive type, return the ty::Ty corresponding
+/// to it.
 pub fn ast_ty_to_prim_ty<'tcx>(tcx: &ty::ctxt<'tcx>, ast_ty: &ast::Ty)
                                -> Option<Ty<'tcx>> {
     if let ast::TyPath(None, ref path) = ast_ty.node {