Fix region-related unsafety in arc::get's signature
This commit is contained in:
parent
330311658f
commit
a831726b94
2 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ fn arc<T: const send>(+data: T) -> ARC<T> {
|
|||
* Access the underlying data in an atomically reference counted
|
||||
* wrapper.
|
||||
*/
|
||||
fn get<T: const send>(rc: &ARC<T>) -> &T {
|
||||
fn get<T: const send>(rc: &a/ARC<T>) -> &a/T {
|
||||
unsafe { get_shared_immutable_state(&rc.x) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue