diff options
| author | Chris Wong <lambda.fairy@gmail.com> | 2015-02-13 19:23:28 +1300 |
|---|---|---|
| committer | Chris Wong <lambda.fairy@gmail.com> | 2015-02-13 19:40:22 +1300 |
| commit | b4a286144dfbc587604353be2fb3c9e27d405f9e (patch) | |
| tree | 1ec273c698a9aca695a6a929f80ae58ec72d5b3f /src/libcore | |
| parent | ba2efe96aeada34c1e2dc267a1a35948bdda91f8 (diff) | |
| download | rust-b4a286144dfbc587604353be2fb3c9e27d405f9e.tar.gz rust-b4a286144dfbc587604353be2fb3c9e27d405f9e.zip | |
Rename the "unsafe" lang item to "unsafe_cell"
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cell.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 050b34508ff..cf293ded13f 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -649,7 +649,8 @@ impl<'b, T> DerefMut for RefMut<'b, T> { /// /// **NOTE:** `UnsafeCell<T>`'s fields are public to allow static initializers. It is not /// recommended to access its fields directly, `get` should be used instead. -#[lang="unsafe"] +#[cfg_attr(stage0, lang="unsafe")] // NOTE: remove after next snapshot +#[cfg_attr(not(stage0), lang="unsafe_cell")] #[stable(feature = "rust1", since = "1.0.0")] pub struct UnsafeCell<T> { /// Wrapped value |
