Commit faab021
authored
Rollup merge of rust-lang#142162 - RalfJung:unsafe-pinned-get, r=workingjubilee,traviscross
UnsafePinned: update get() docs and signature to allow shared mutation
Follow-up to rust-lang#140638, making `get` consistent with the fact that there's an `UnsafeCell` inside this type now by returning `*mut T` instead of `*const T`.
Cc ``@rust-lang/libs-api``
Tracking issue: rust-lang#1257352 files changed
+16
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1914 | 1914 | | |
1915 | 1915 | | |
1916 | 1916 | | |
| 1917 | + | |
| 1918 | + | |
1917 | 1919 | | |
1918 | 1920 | | |
1919 | 1921 | | |
| |||
2167 | 2169 | | |
2168 | 2170 | | |
2169 | 2171 | | |
2170 | | - | |
2171 | | - | |
2172 | | - | |
2173 | | - | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
2174 | 2175 | | |
2175 | 2176 | | |
2176 | 2177 | | |
| |||
2219 | 2220 | | |
2220 | 2221 | | |
2221 | 2222 | | |
2222 | | - | |
2223 | | - | |
2224 | | - | |
2225 | | - | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | 2228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
94 | 93 | | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
| 102 | + | |
104 | 103 | | |
105 | | - | |
| 104 | + | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
0 commit comments