From 423f6b926dac8f439dd4b93c0fce65a15a616aa5 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 20 Jul 2019 15:26:23 +0200 Subject: [PATCH] list more ptr offset computations --- src/what-unsafe-does.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/what-unsafe-does.md b/src/what-unsafe-does.md index 4f081c0..62da5ba 100644 --- a/src/what-unsafe-does.md +++ b/src/what-unsafe-does.md @@ -17,8 +17,8 @@ Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core language cares about is preventing the following things: * Dereferencing null, dangling, or unaligned references or raw pointers -* Performing out-of-bounds arithmetic for the computation of a struct/tuple - field address +* Performing out-of-bounds arithmetic for the computation of an + `enum`/`struct`/array/slice/tuple field address * Reading [uninitialized memory][] * Breaking the [pointer aliasing rules][] * Producing/obtaining invalid primitive values: