# What does \`unsafe\` mean?

**URL:** <https://internals.rust-lang.org/t/what-does-unsafe-mean/6696>\
**Category:** Unsafe Code Guidelines\
**Created:** [February 2, 2018, 9:26pm UTC](https://internals.rust-lang.org/t/what-does-unsafe-mean/6696 "2018-02-02T21:26:20Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![scottmcm](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/scottmcm/32/2355_2.png) [@scottmcm](https://internals.rust-lang.org/u/scottmcm)\
**Post date:** [July 18, 2018, 5:01pm UTC](https://internals.rust-lang.org/t/what-does-unsafe-mean/6696/39 "2018-07-18T17:01:46Z")

</div>

> [@elidupree](#):
>
> What if the fields [...] should be marked unsafe?

Some prior art there:

> <https://github.com/rust-lang/rfcs/issues/381>
>
> Multiple developers have registered a desire to allow public access to fields th…at expose abstraction-breaking impl details (rather than following the current convention of making all such fields private to the structure in question, thus containing the abstraction-breakage to the structure's module).
> 
> See the following postponed (or otherwise closed) RFCs:
> \- #80 
> \- #182
> \- #358

> [@Pre-RFC: Unsafe Types](https://internals.rust-lang.org/t/pre-rfc-unsafe-types/3073):
>
> In the [Reddit](https://www.reddit.com/r/rust/comments/4065l2/the_scope_of_unsafe/) and [Hacker News](https://news.ycombinator.com/item?id=10874974) discussions of my [recent blog post](https://www.ralfj.de/blog/2016/01/09/the-scope-of-unsafe.html), some people raised concerns about the observation I based the post on: That if your program crashes, the bug can be outside of an unsafe block. I think the main concern was that this makes unsafe significantly less useful as a lint. Now, of course unsafe is not a lint, it has a fairly precise definition: Stuff is marked unsafe if it can violate the safety guarantees of your program; in particular, if it can cause a crash. But the…

---

_[View the full topic](https://internals.rust-lang.org/t/what-does-unsafe-mean/6696)._
