Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
81932be5
R
Rust
项目概览
int
/
Rust
接近 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
81932be5
编写于
2月 26, 2021
作者:
M
Mara Bos
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "Revert stabilizing integer::BITS."
上级
f5fe425c
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
2 addition
and
11 deletion
+2
-11
compiler/rustc_data_structures/src/lib.rs
compiler/rustc_data_structures/src/lib.rs
+0
-1
compiler/rustc_serialize/src/lib.rs
compiler/rustc_serialize/src/lib.rs
+0
-1
compiler/rustc_serialize/tests/leb128.rs
compiler/rustc_serialize/tests/leb128.rs
+0
-1
library/alloc/src/lib.rs
library/alloc/src/lib.rs
+0
-1
library/alloc/tests/lib.rs
library/alloc/tests/lib.rs
+0
-1
library/core/src/num/int_macros.rs
library/core/src/num/int_macros.rs
+1
-2
library/core/src/num/uint_macros.rs
library/core/src/num/uint_macros.rs
+1
-2
library/core/tests/lib.rs
library/core/tests/lib.rs
+0
-1
library/panic_unwind/src/lib.rs
library/panic_unwind/src/lib.rs
+0
-1
未找到文件。
compiler/rustc_data_structures/src/lib.rs
浏览文件 @
81932be5
...
...
@@ -13,7 +13,6 @@
#![feature(unboxed_closures)]
#![feature(generator_trait)]
#![feature(fn_traits)]
#![feature(int_bits_const)]
#![feature(min_specialization)]
#![feature(auto_traits)]
#![feature(nll)]
...
...
compiler/rustc_serialize/src/lib.rs
浏览文件 @
81932be5
...
...
@@ -16,7 +16,6 @@
#![feature(min_specialization)]
#![feature(vec_spare_capacity)]
#![feature(core_intrinsics)]
#![feature(int_bits_const)]
#![feature(maybe_uninit_array_assume_init)]
#![feature(maybe_uninit_uninit_array)]
#![feature(maybe_uninit_slice)]
...
...
compiler/rustc_serialize/tests/leb128.rs
浏览文件 @
81932be5
#![feature(int_bits_const)]
#![feature(maybe_uninit_slice)]
#![feature(maybe_uninit_uninit_array)]
...
...
library/alloc/src/lib.rs
浏览文件 @
81932be5
...
...
@@ -103,7 +103,6 @@
#![feature(fn_traits)]
#![feature(fundamental)]
#![feature(inplace_iteration)]
#![feature(int_bits_const)]
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
// that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs
...
...
library/alloc/tests/lib.rs
浏览文件 @
81932be5
...
...
@@ -16,7 +16,6 @@
#![feature(binary_heap_retain)]
#![feature(inplace_iteration)]
#![feature(iter_map_while)]
#![feature(int_bits_const)]
#![feature(vecdeque_binary_search)]
#![feature(slice_group_by)]
#![feature(slice_partition_dedup)]
...
...
library/core/src/num/int_macros.rs
浏览文件 @
81932be5
...
...
@@ -32,10 +32,9 @@
/// # Examples
///
/// ```
/// #![feature(int_bits_const)]
#[doc
=
concat
!
(
"assert_eq!("
,
stringify
!
(
$
SelfT),
"::BITS, "
,
stringify
!
(
$
BITS),
");"
)]
/// ```
#[
unstable(feature
=
"int_bits_const"
,
issue
=
"76904
"
)]
#[
stable(feature
=
"int_bits_const"
,
since
=
"1.51.0
"
)]
pub
const
BITS
:
u32
=
$BITS
;
/// Converts a string slice in a given base to an integer.
...
...
library/core/src/num/uint_macros.rs
浏览文件 @
81932be5
...
...
@@ -32,10 +32,9 @@
/// # Examples
///
/// ```
/// #![feature(int_bits_const)]
#[doc
=
concat
!
(
"assert_eq!("
,
stringify
!
(
$
SelfT),
"::BITS, "
,
stringify
!
(
$
BITS),
");"
)]
/// ```
#[
unstable(feature
=
"int_bits_const"
,
issue
=
"76904
"
)]
#[
stable(feature
=
"int_bits_const"
,
since
=
"1.51.0
"
)]
pub
const
BITS
:
u32
=
$BITS
;
/// Converts a string slice in a given base to an integer.
...
...
library/core/tests/lib.rs
浏览文件 @
81932be5
...
...
@@ -73,7 +73,6 @@
#![cfg_attr(not(bootstrap),
feature(ptr_metadata))]
#![feature(once_cell)]
#![feature(unsized_tuple_coercion)]
#![feature(int_bits_const)]
#![feature(nonzero_leading_trailing_zeros)]
#![feature(const_option)]
#![feature(integer_atomics)]
...
...
library/panic_unwind/src/lib.rs
浏览文件 @
81932be5
...
...
@@ -18,7 +18,6 @@
issue_tracker_base_url
=
"https://github.com/rust-lang/rust/issues/"
)]
#![feature(core_intrinsics)]
#![feature(int_bits_const)]
#![feature(lang_items)]
#![feature(nll)]
#![feature(panic_unwind)]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录