Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
64469ac3
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
64469ac3
编写于
8月 06, 2019
作者:
E
Esteban Küber
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
review comments
上级
613c0a87
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
16 addition
and
10 deletion
+16
-10
src/test/ui/huge-array-simple-32.rs
src/test/ui/huge-array-simple-32.rs
+3
-3
src/test/ui/huge-array-simple-32.stderr
src/test/ui/huge-array-simple-32.stderr
+2
-2
src/test/ui/huge-array-simple-64.rs
src/test/ui/huge-array-simple-64.rs
+3
-3
src/test/ui/huge-array-simple-64.stderr
src/test/ui/huge-array-simple-64.stderr
+2
-2
src/test/ui/issues/issue-15919-32.rs
src/test/ui/issues/issue-15919-32.rs
+3
-0
src/test/ui/issues/issue-15919-64.rs
src/test/ui/issues/issue-15919-64.rs
+3
-0
未找到文件。
src/test/ui/huge-array-simple-32.rs
浏览文件 @
64469ac3
// ignore-
32
bit
// ignore-
64
bit
// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
...
...
@@ -6,6 +6,6 @@
#![allow(exceeding_bitshifts)]
fn
main
()
{
let
_
fat
:
[
u8
;
(
1
<<
61
)
+
(
1
<<
31
)]
=
//~ ERROR too big for the current architecture
[
0
;
(
1u
64
<<
61
)
as
usize
+
(
1u64
<<
31
)
as
usize
];
let
_
fat
:
[
u8
;
(
1
<<
31
)
+
(
1
<<
15
)]
=
//~ ERROR too big for the current architecture
[
0
;
(
1u
32
<<
31
)
as
usize
+
(
1u32
<<
15
)
as
usize
];
}
src/test/ui/huge-array-simple-32.stderr
浏览文件 @
64469ac3
error: the type `[u8; 2
305843011361177600
]` is too big for the current architecture
error: the type `[u8; 2
147516416
]` is too big for the current architecture
--> $DIR/huge-array-simple-32.rs:9:9
|
LL | let _fat: [u8; (1<<
61)+(1<<31
)] =
LL | let _fat: [u8; (1<<
31)+(1<<15
)] =
| ^^^^
error: aborting due to previous error
...
...
src/test/ui/huge-array-simple-64.rs
浏览文件 @
64469ac3
// ignore-
64
bit
// ignore-
32
bit
// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
...
...
@@ -6,6 +6,6 @@
#![allow(exceeding_bitshifts)]
fn
main
()
{
let
_
fat
:
[
u8
;
(
1
<<
31
)
+
(
1
<<
15
)]
=
//~ ERROR too big for the current architecture
[
0
;
(
1u
32
<<
31
)
as
usize
+
(
1u32
<<
15
)
as
usize
];
let
_
fat
:
[
u8
;
(
1
<<
61
)
+
(
1
<<
31
)]
=
//~ ERROR too big for the current architecture
[
0
;
(
1u
64
<<
61
)
as
usize
+
(
1u64
<<
31
)
as
usize
];
}
src/test/ui/huge-array-simple-64.stderr
浏览文件 @
64469ac3
error: the type `[u8; 2
147516416
]` is too big for the current architecture
error: the type `[u8; 2
305843011361177600
]` is too big for the current architecture
--> $DIR/huge-array-simple-64.rs:9:9
|
LL | let _fat: [u8; (1<<
31)+(1<<15
)] =
LL | let _fat: [u8; (1<<
61)+(1<<31
)] =
| ^^^^
error: aborting due to previous error
...
...
src/test/ui/issues/issue-15919-32.rs
浏览文件 @
64469ac3
...
...
@@ -7,3 +7,6 @@
fn
main
()
{
let
x
=
[
0u
size
;
0xffff_ffff
];
//~ ERROR too big
}
// These two tests need to have different literals, as we can't rely on conditional compilation
// for them while retaining the same spans/lines.
src/test/ui/issues/issue-15919-64.rs
浏览文件 @
64469ac3
...
...
@@ -7,3 +7,6 @@
fn
main
()
{
let
x
=
[
0u
size
;
0xffff_ffff_ffff_ffff
];
//~ ERROR too big
}
// These two tests need to have different literals, as we can't rely on conditional compilation
// for them while retaining the same spans/lines.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录