Replace Box::{from,into}_unique with {from,into}_nonnull_raw
Thew `_raw` prefix is included because the fact that `Box`’s ownership semantics are "dissolved" or recreated seem more important than the exact parameter type or return type.
This commit is contained in:
parent
fb03a49c25
commit
a2f878a084
5 changed files with 38 additions and 32 deletions
|
|
@ -15,7 +15,6 @@ const EXPECTED = {
|
|||
{ 'path': 'std::char', 'name': 'from_u32' },
|
||||
{ 'path': 'std::str', 'name': 'from_utf8' },
|
||||
{ 'path': 'std::string::String', 'name': 'from_utf8' },
|
||||
{ 'path': 'std::boxed::Box', 'name': 'from_unique' },
|
||||
{ 'path': 'std::i32', 'name': 'from_unsigned' },
|
||||
{ 'path': 'std::i128', 'name': 'from_unsigned' },
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue