X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc%2Fmiddle%2Fty%2Fcontents.rs;h=47a15a14b41ee43fb74b2532e022ed7e4952b1b1;hb=b423a0f9ef488ca4cd9ff620a44566bb441eb21f;hp=8dfa0262f2b0d553cf8e7e6d3fe6bc5b77272605;hpb=4b868411afee1208cfb18f7440df991b9f94265f;p=rust.git diff --git a/src/librustc/middle/ty/contents.rs b/src/librustc/middle/ty/contents.rs index 8dfa0262f2b..47a15a14b41 100644 --- a/src/librustc/middle/ty/contents.rs +++ b/src/librustc/middle/ty/contents.rs @@ -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 }