]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/ty/contents.rs
Split TyBareFn into TyFnDef and TyFnPtr.
[rust.git] / src / librustc / middle / ty / contents.rs
index 8dfa0262f2b0d553cf8e7e6d3fe6bc5b77272605..47a15a14b41ee43fb74b2532e022ed7e4952b1b1 100644 (file)
@@ -187,7 +187,7 @@ fn tc_ty<'tcx>(cx: &TyCtxt<'tcx>,
                 // Scalar and unique types are sendable, and durable
                 ty::TyInfer(ty::FreshIntTy(_)) | ty::TyInfer(ty::FreshFloatTy(_)) |
                 ty::TyBool | ty::TyInt(_) | ty::TyUint(_) | ty::TyFloat(_) |
-                ty::TyBareFn(..) | ty::TyChar => {
+                ty::TyFnDef(..) | ty::TyFnPtr(_) | ty::TyChar => {
                     TC::None
                 }