Merge pull request #85 from mbrubeck/fn

Add fn to the list of invalid primitive values
pull/90/head
Steve Klabnik 6 years ago committed by GitHub
commit 80ccb196c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,6 +20,7 @@ language cares about is preventing the following things:
* Breaking the [pointer aliasing rules][] * Breaking the [pointer aliasing rules][]
* Producing invalid primitive values: * Producing invalid primitive values:
* dangling/null references * dangling/null references
* null `fn` pointers
* a `bool` that isn't 0 or 1 * a `bool` that isn't 0 or 1
* an undefined `enum` discriminant * an undefined `enum` discriminant
* a `char` outside the ranges [0x0, 0xD7FF] and [0xE000, 0x10FFFF] * a `char` outside the ranges [0x0, 0xD7FF] and [0xE000, 0x10FFFF]

Loading…
Cancel
Save