about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-16 16:03:57 +0000
committerbors <bors@rust-lang.org>2015-10-16 16:03:57 +0000
commit87e26efbf28ab23fceaf1bd7cd06bd8ad066de02 (patch)
tree42580420a7729c911269d82b160d1f557e60fe13 /src
parent24228fee15dec0b2cb620b33a24cf1b07549c88a (diff)
parente184c2daf16f7d77ed82c673de0b0a6e3949e661 (diff)
downloadrust-87e26efbf28ab23fceaf1bd7cd06bd8ad066de02.tar.gz
rust-87e26efbf28ab23fceaf1bd7cd06bd8ad066de02.zip
Auto merge of #29074 - Manishearth:astconv-doc, r=eddyb
Confusion about what this does caused a bug in Servo's lints.

r? @eddyb
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/astconv_util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/middle/astconv_util.rs b/src/librustc/middle/astconv_util.rs
index 3b837277203..2bf749d93ce 100644
--- a/src/librustc/middle/astconv_util.rs
+++ b/src/librustc/middle/astconv_util.rs
@@ -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 {