Merge branch 'trunk' into NumBytesTo

This commit is contained in:
Richard Feldman 2021-08-19 01:37:39 -04:00 committed by GitHub
commit 0bebb64bae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 555 additions and 325 deletions

View file

@ -10,10 +10,7 @@ pub const OWNED: bool = false;
pub const BORROWED: bool = true;
fn should_borrow_layout(layout: &Layout) -> bool {
match layout {
Layout::Closure(_, _, _) => false,
_ => layout.is_refcounted(),
}
layout.is_refcounted()
}
pub fn infer_borrow<'a>(