Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rustup fixes #6139

Merged
merged 2 commits into from May 20, 2015
Merged

Rustup fixes #6139

Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Fix borrow_unchecked in LayoutDataRef

  • Loading branch information
michaelwu committed May 19, 2015
commit 7772984e0b5eb48a3e5ee63efa2050baf1a7fef7
@@ -245,7 +245,7 @@ impl LayoutDataRef {
#[inline]
#[allow(unsafe_code)]
pub unsafe fn borrow_unchecked(&self) -> *const Option<LayoutData> {
mem::transmute(&self.data_cell)
self.data_cell.as_unsafe_cell().get() as *const _
}

/// Borrows the layout data immutably. This function is *not* thread-safe.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.