Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
45aca119
R
Rust
项目概览
int
/
Rust
12 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
45aca119
编写于
9月 23, 2019
作者:
J
Jon Gjengset
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Stabilize mem::take (mem_take)
Tracking issue:
https://github.com/rust-lang/rust/issues/61129
上级
2748a9fd
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
1 addition
and
18 deletion
+1
-18
src/liballoc/lib.rs
src/liballoc/lib.rs
+0
-1
src/libcore/lib.rs
src/libcore/lib.rs
+0
-1
src/libcore/mem/mod.rs
src/libcore/mem/mod.rs
+1
-5
src/libproc_macro/lib.rs
src/libproc_macro/lib.rs
+0
-1
src/librustc/lib.rs
src/librustc/lib.rs
+0
-1
src/librustc_codegen_llvm/lib.rs
src/librustc_codegen_llvm/lib.rs
+0
-1
src/librustc_codegen_ssa/lib.rs
src/librustc_codegen_ssa/lib.rs
+0
-1
src/librustc_mir/lib.rs
src/librustc_mir/lib.rs
+0
-1
src/librustc_resolve/lib.rs
src/librustc_resolve/lib.rs
+0
-1
src/librustc_typeck/lib.rs
src/librustc_typeck/lib.rs
+0
-1
src/librustdoc/lib.rs
src/librustdoc/lib.rs
+0
-1
src/libstd/lib.rs
src/libstd/lib.rs
+0
-1
src/libsyntax/lib.rs
src/libsyntax/lib.rs
+0
-1
src/libsyntax_ext/lib.rs
src/libsyntax_ext/lib.rs
+0
-1
未找到文件。
src/liballoc/lib.rs
浏览文件 @
45aca119
...
...
@@ -121,7 +121,6 @@
#![feature(maybe_uninit_extra,
maybe_uninit_slice)]
#![feature(alloc_layout_extra)]
#![feature(try_trait)]
#![feature(mem_take)]
#![feature(associated_type_bounds)]
// Allow testing this library
...
...
src/libcore/lib.rs
浏览文件 @
45aca119
...
...
@@ -127,7 +127,6 @@
#![feature(adx_target_feature)]
#![feature(maybe_uninit_slice)]
#![feature(external_doc)]
#![feature(mem_take)]
#![feature(associated_type_bounds)]
#[prelude_import]
...
...
src/libcore/mem/mod.rs
浏览文件 @
45aca119
...
...
@@ -520,8 +520,6 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
/// A simple example:
///
/// ```
/// #![feature(mem_take)]
///
/// use std::mem;
///
/// let mut v: Vec<i32> = vec![1, 2];
...
...
@@ -552,8 +550,6 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
/// `self`, allowing it to be returned:
///
/// ```
/// #![feature(mem_take)]
///
/// use std::mem;
///
/// # struct Buffer<T> { buf: Vec<T> }
...
...
@@ -572,7 +568,7 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
///
/// [`Clone`]: ../../std/clone/trait.Clone.html
#[inline]
#[
unstable(feature
=
"mem_take"
,
issue
=
"61129
"
)]
#[
stable(feature
=
"mem_take"
,
since
=
"1.40.0
"
)]
pub
fn
take
<
T
:
Default
>
(
dest
:
&
mut
T
)
->
T
{
replace
(
dest
,
T
::
default
())
}
...
...
src/libproc_macro/lib.rs
浏览文件 @
45aca119
...
...
@@ -25,7 +25,6 @@
#![feature(extern_types)]
#![feature(in_band_lifetimes)]
#![feature(optin_builtin_traits)]
#![feature(mem_take)]
#![feature(non_exhaustive)]
#![feature(rustc_attrs)]
#![feature(specialization)]
...
...
src/librustc/lib.rs
浏览文件 @
45aca119
...
...
@@ -58,7 +58,6 @@
#![feature(crate_visibility_modifier)]
#![feature(proc_macro_hygiene)]
#![feature(log_syntax)]
#![feature(mem_take)]
#![feature(associated_type_bounds)]
#![feature(rustc_attrs)]
...
...
src/librustc_codegen_llvm/lib.rs
浏览文件 @
45aca119
...
...
@@ -19,7 +19,6 @@
#![feature(link_args)]
#![feature(static_nobundle)]
#![feature(trusted_len)]
#![feature(mem_take)]
use
back
::
write
::{
create_target_machine
,
create_informational_target_machine
};
use
syntax_pos
::
symbol
::
Symbol
;
...
...
src/librustc_codegen_ssa/lib.rs
浏览文件 @
45aca119
...
...
@@ -10,7 +10,6 @@
#![feature(in_band_lifetimes)]
#![feature(nll)]
#![feature(trusted_len)]
#![feature(mem_take)]
#![feature(associated_type_bounds)]
#![recursion_limit=
"256"
]
...
...
src/librustc_mir/lib.rs
浏览文件 @
45aca119
...
...
@@ -22,7 +22,6 @@
#![feature(slice_concat_ext)]
#![feature(trusted_len)]
#![feature(try_blocks)]
#![feature(mem_take)]
#![feature(associated_type_bounds)]
#![feature(range_is_empty)]
#![feature(stmt_expr_attributes)]
...
...
src/librustc_resolve/lib.rs
浏览文件 @
45aca119
...
...
@@ -11,7 +11,6 @@
#![feature(crate_visibility_modifier)]
#![feature(label_break_value)]
#![feature(mem_take)]
#![feature(nll)]
#![recursion_limit=
"256"
]
...
...
src/librustc_typeck/lib.rs
浏览文件 @
45aca119
...
...
@@ -67,7 +67,6 @@
#![feature(nll)]
#![feature(slice_patterns)]
#![feature(never_type)]
#![feature(mem_take)]
#![recursion_limit=
"256"
]
...
...
src/librustdoc/lib.rs
浏览文件 @
45aca119
...
...
@@ -15,7 +15,6 @@
#![feature(const_fn)]
#![feature(drain_filter)]
#![feature(never_type)]
#![feature(mem_take)]
#![feature(unicode_internals)]
#![recursion_limit=
"256"
]
...
...
src/libstd/lib.rs
浏览文件 @
45aca119
...
...
@@ -277,7 +277,6 @@
#![feature(log_syntax)]
#![feature(maybe_uninit_ref)]
#![feature(maybe_uninit_slice)]
#![feature(mem_take)]
#![feature(needs_panic_runtime)]
#![feature(never_type)]
#![feature(nll)]
...
...
src/libsyntax/lib.rs
浏览文件 @
45aca119
...
...
@@ -12,7 +12,6 @@
#![feature(const_transmute)]
#![feature(crate_visibility_modifier)]
#![feature(label_break_value)]
#![feature(mem_take)]
#![feature(nll)]
#![feature(proc_macro_diagnostic)]
#![feature(proc_macro_internals)]
...
...
src/libsyntax_ext/lib.rs
浏览文件 @
45aca119
...
...
@@ -5,7 +5,6 @@
#![feature(crate_visibility_modifier)]
#![feature(decl_macro)]
#![feature(mem_take)]
#![feature(nll)]
#![feature(proc_macro_internals)]
#![feature(proc_macro_quote)]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录