mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add commit hash to be reverted in FIXME comment.
This commit is contained in:
parent
f7f81e0ed0
commit
6807bb615f
1 changed files with 6 additions and 4 deletions
|
@ -9,8 +9,9 @@
|
||||||
|
|
||||||
//! A fork of std::cell::RefCell that makes `as_unsafe_cell` usable on stable Rust.
|
//! A fork of std::cell::RefCell that makes `as_unsafe_cell` usable on stable Rust.
|
||||||
//!
|
//!
|
||||||
//! FIXME(https://github.com/rust-lang/rust/issues/27708): Remove this when
|
//! FIXME(https://github.com/rust-lang/rust/issues/27708): Remove this
|
||||||
//! `std::cell::RefCell::as_unsafe_cell` is in Rust’s stable channel.
|
//! (revert commit f7f81e0ed0b62402db291e28a9bb16f7194ebf78 / PR #11835)
|
||||||
|
//! when `std::cell::RefCell::as_unsafe_cell` is in Rust’s stable channel.
|
||||||
|
|
||||||
#![allow(unsafe_code)]
|
#![allow(unsafe_code)]
|
||||||
|
|
||||||
|
@ -20,8 +21,9 @@ use std::ops::{Deref, DerefMut};
|
||||||
|
|
||||||
/// A fork of std::cell::RefCell that makes `as_unsafe_cell` usable on stable Rust.
|
/// A fork of std::cell::RefCell that makes `as_unsafe_cell` usable on stable Rust.
|
||||||
///
|
///
|
||||||
/// FIXME(https://github.com/rust-lang/rust/issues/27708): Remove this when
|
/// FIXME(https://github.com/rust-lang/rust/issues/27708): Remove this
|
||||||
/// `std::cell::RefCell::as_unsafe_cell` is in Rust’s stable channel.
|
/// (revert commit f7f81e0ed0b62402db291e28a9bb16f7194ebf78 / PR #11835)
|
||||||
|
/// when `std::cell::RefCell::as_unsafe_cell` is in Rust’s stable channel.
|
||||||
pub struct RefCell<T: ?Sized> {
|
pub struct RefCell<T: ?Sized> {
|
||||||
borrow: Cell<BorrowFlag>,
|
borrow: Cell<BorrowFlag>,
|
||||||
value: UnsafeCell<T>,
|
value: UnsafeCell<T>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue