From 715585b421e2fc8df4c95412d4ed27fb953c963c Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Mon, 13 Aug 2018 10:23:00 -0700 Subject: [PATCH] Add fn to the list of invalid primitive values --- src/what-unsafe-does.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/what-unsafe-does.md b/src/what-unsafe-does.md index 91f9145..9b94136 100644 --- a/src/what-unsafe-does.md +++ b/src/what-unsafe-does.md @@ -20,6 +20,7 @@ language cares about is preventing the following things: * Breaking the [pointer aliasing rules][] * Producing invalid primitive values: * dangling/null references + * null `fn` pointers * a `bool` that isn't 0 or 1 * an undefined `enum` discriminant * a `char` outside the ranges [0x0, 0xD7FF] and [0xE000, 0x10FFFF]