bors
6340607aca
Auto merge of #79485 - EllenNyan:stabilize_unsafe_cell_get_mut, r=m-ou-se
...
Stabilize `unsafe_cell_get_mut`
Tracking issue: #76943
r? `@m-ou-se`
2020-12-18 11:39:26 +00:00
Petar Dambovaliev
2b9ba46111
fix indefinite article in cell.rs
2020-12-12 23:08:04 +01:00
Alexis Bourget
5bdd640913
Fix several broken links in doc that used the wrong qualifier or Self::
2020-11-30 21:21:15 +01:00
Alexis Bourget
a5726eb28d
Use Self:: in links
2020-11-30 21:18:56 +01:00
Alexis Bourget
19fb4fec50
Intra doc links for cell.rs
2020-11-30 21:18:55 +01:00
Ellen
1a1a99ccb7
Change "non-unsafe" to "safe" in UnsafeCell docs
2020-11-29 20:27:14 +00:00
Ellen
9db1f42fa2
Stabilize unsafe_cell_get_mut
2020-11-28 00:30:26 +00:00
ThinkChaos
5c6689baff
Stabilize refcell_take
2020-11-22 20:13:31 +01:00
Mara Bos
96975e515a
Rollup merge of #78852 - camelid:intra-doc-bonanza, r=jyn514
...
Convert a bunch of intra-doc links
An intra-doc link bonanza!
This was accomplished using a bunch of trial-and-error with sed.
2020-11-08 13:36:28 +01:00
Mara Bos
2967e58be3
Rollup merge of #78728 - a1phyr:const_cell_into_inner, r=dtolnay
...
Constantify `UnsafeCell::into_inner` and related
Tracking issue: #78729
This PR constantifies:
- `UnsafeCell::into_inner`
- `Cell::into_inner`
- `RefCell::into_inner`
- `Atomic*::into_inner`
r? `````@dtolnay`````
2020-11-08 13:36:14 +01:00
Camelid
8258cf285f
Convert a bunch of intra-doc links
2020-11-07 12:50:57 -08:00
Daniel Henry-Mantilla
69e5729c58
Simplify the implementation of get_mut (no unsafe)
2020-11-04 14:54:22 +01:00
Benoît du Garreau
795bbfe056
Add tracking issue
2020-11-04 11:58:41 +01:00
Benoît du Garreau
9a12d727df
Constantify UnsafeCell::into_inner and related
...
Also includes:
- Cell::into_inner
- RefCell::into_inner
- Atomic*::into_inner
2020-11-04 11:41:57 +01:00
Camelid
95221b4eb5
Use intra-doc links for links to module-level docs
2020-10-12 19:22:47 -07:00
Dylan DPC
c3c03f2f05
Rollup merge of #77055 - est31:more_track_caller, r=Mark-Simulacrum
...
Add #[track_caller] to more panicking Cell functions
Continuation of #74526
Adds the #[track_caller] attribute to almost all panicking Cell
functions. The ones that borrow two Cells in their function
body are spared, because the panic location helps pinpoint
which of the two borrows failed. You'd need to have
full debuginfo and backtraces enabled together with column
info in order to be able to discern the cases.
Column info in debuginfo is only available on non-Windows platforms.
2020-09-23 14:54:15 +02:00
est31
05c3a2b07d
Add #[track_caller] to more panicking Cell functions
...
Continuation of #74526
Adds the #[track_caller] attribute to almost all panicking Cell
functions. The ones that borrow two Cells in their function
body are spared, because the panic location helps pinpoint
which of the two borrows failed. You'd need to have
full debuginfo and backtraces enabled together with column
info in order to be able to discern the cases.
Column info is only available on non-Windows platforms.
2020-09-22 15:34:22 +02:00
Daniel Henry-Mantilla
5886c38112
Replace unneeded unsafe calls to .get() with calls to .get_mut()
2020-09-20 18:06:03 +02:00
Daniel Henry-Mantilla
8169989507
Add non-unsafe .get_mut() for UnsafeCell
...
Update the tracking issue number
Updated the documentation for `UnsafeCell`
Address review comments
Address more review comments + minor changes
2020-09-20 18:05:31 +02:00
Erik Desjardins
c596e01b8e
add track_caller to RefCell::{borrow, borrow_mut}
...
So panic messages point at the offending borrow.
2020-07-28 15:45:25 -04:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00