Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
76d9b309
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,发现更多精彩内容 >>
提交
76d9b309
编写于
12月 10, 2017
作者:
T
Tommy Ip
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add must-compile-successfully comment to appropriate ui tests.
上级
81b8db21
变更
33
隐藏空白更改
内联
并排
Showing
33 changed file
with
44 addition
and
0 deletion
+44
-0
src/test/ui/check_match/issue-43253.rs
src/test/ui/check_match/issue-43253.rs
+2
-0
src/test/ui/codemap_tests/unicode_3.rs
src/test/ui/codemap_tests/unicode_3.rs
+2
-0
src/test/ui/explain.rs
src/test/ui/explain.rs
+1
-0
src/test/ui/hello_world/main.rs
src/test/ui/hello_world/main.rs
+2
-0
src/test/ui/lint/command-line-lint-group-allow.rs
src/test/ui/lint/command-line-lint-group-allow.rs
+1
-0
src/test/ui/lint/command-line-lint-group-warn.rs
src/test/ui/lint/command-line-lint-group-warn.rs
+1
-0
src/test/ui/lint/not_found.rs
src/test/ui/lint/not_found.rs
+2
-0
src/test/ui/lint/unreachable_pub-pub_crate.rs
src/test/ui/lint/unreachable_pub-pub_crate.rs
+2
-0
src/test/ui/lint/unreachable_pub.rs
src/test/ui/lint/unreachable_pub.rs
+2
-0
src/test/ui/lint/unused_parens_json_suggestion.rs
src/test/ui/lint/unused_parens_json_suggestion.rs
+1
-0
src/test/ui/macros/trace-macro.rs
src/test/ui/macros/trace-macro.rs
+1
-0
src/test/ui/nll/closure-requirements/propagate-approximated-ref.rs
...ui/nll/closure-requirements/propagate-approximated-ref.rs
+1
-0
src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs
...ents/propagate-approximated-shorter-to-static-no-bound.rs
+1
-0
src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs
...s/propagate-approximated-shorter-to-static-wrong-bound.rs
+1
-0
src/test/ui/nll/closure-requirements/propagate-approximated-val.rs
...ui/nll/closure-requirements/propagate-approximated-val.rs
+1
-0
src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs
...losure-requirements/propagate-despite-same-free-region.rs
+1
-0
src/test/ui/nll/maybe-initialized-drop-uninitialized.rs
src/test/ui/nll/maybe-initialized-drop-uninitialized.rs
+1
-0
src/test/ui/print-fuel/print-fuel.rs
src/test/ui/print-fuel/print-fuel.rs
+1
-0
src/test/ui/print_type_sizes/anonymous.rs
src/test/ui/print_type_sizes/anonymous.rs
+1
-0
src/test/ui/print_type_sizes/generics.rs
src/test/ui/print_type_sizes/generics.rs
+1
-0
src/test/ui/print_type_sizes/multiple_types.rs
src/test/ui/print_type_sizes/multiple_types.rs
+1
-0
src/test/ui/print_type_sizes/niche-filling.rs
src/test/ui/print_type_sizes/niche-filling.rs
+1
-0
src/test/ui/print_type_sizes/no_duplicates.rs
src/test/ui/print_type_sizes/no_duplicates.rs
+1
-0
src/test/ui/print_type_sizes/packed.rs
src/test/ui/print_type_sizes/packed.rs
+1
-0
src/test/ui/print_type_sizes/padding.rs
src/test/ui/print_type_sizes/padding.rs
+1
-0
src/test/ui/print_type_sizes/repr-align.rs
src/test/ui/print_type_sizes/repr-align.rs
+1
-0
src/test/ui/print_type_sizes/uninhabited.rs
src/test/ui/print_type_sizes/uninhabited.rs
+1
-0
src/test/ui/print_type_sizes/variants.rs
src/test/ui/print_type_sizes/variants.rs
+1
-0
src/test/ui/reachable/expr_andand.rs
src/test/ui/reachable/expr_andand.rs
+2
-0
src/test/ui/reachable/expr_oror.rs
src/test/ui/reachable/expr_oror.rs
+2
-0
src/test/ui/rfc_1940-must_use_on_functions/fn_must_use.rs
src/test/ui/rfc_1940-must_use_on_functions/fn_must_use.rs
+2
-0
src/test/ui/span/macro-span-replacement.rs
src/test/ui/span/macro-span-replacement.rs
+2
-0
src/test/ui/span/multispan-import-lint.rs
src/test/ui/span/multispan-import-lint.rs
+2
-0
未找到文件。
src/test/ui/check_match/issue-43253.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
#![feature(exclusive_range_pattern)]
#![warn(unreachable_patterns)]
...
...
src/test/ui/codemap_tests/unicode_3.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
fn
main
()
{
let
s
=
"ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"
;
while
true
{
break
;
}
println!
(
"{}"
,
s
);
...
...
src/test/ui/explain.rs
浏览文件 @
76d9b309
...
...
@@ -9,3 +9,4 @@
// except according to those terms.
// compile-flags: --explain E0591
// must-compile-successfully
src/test/ui/hello_world/main.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
// Test that compiling hello world succeeds with no output of any kind.
fn
main
()
{
...
...
src/test/ui/lint/command-line-lint-group-allow.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -A bad-style
// must-compile-successfully
fn
main
()
{
let
_
InappropriateCamelCasing
=
true
;
...
...
src/test/ui/lint/command-line-lint-group-warn.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -W bad-style
// must-compile-successfully
fn
main
()
{
let
_
InappropriateCamelCasing
=
true
;
...
...
src/test/ui/lint/not_found.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
// this tests the `unknown_lint` lint, especially the suggestions
// the suggestion only appears if a lint with the lowercase name exists
...
...
src/test/ui/lint/unreachable_pub-pub_crate.rs
浏览文件 @
76d9b309
...
...
@@ -14,6 +14,8 @@
// suggestions to use `crate` given when it is on). When that feature becomes
// stable, this test can be deleted.
// must-compile-successfully
#![feature(macro_vis_matcher)]
#![allow(unused)]
...
...
src/test/ui/lint/unreachable_pub.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
#![feature(crate_visibility_modifier)]
#![feature(macro_vis_matcher)]
...
...
src/test/ui/lint/unused_parens_json_suggestion.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: --error-format pretty-json -Zunstable-options
// must-compile-successfully
// The output for humans should just highlight the whole span without showing
// the suggested replacement, but we also want to test that suggested
...
...
src/test/ui/macros/trace-macro.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z trace-macros
// must-compile-successfully
fn
main
()
{
println!
(
"Hello, World!"
);
...
...
src/test/ui/nll/closure-requirements/propagate-approximated-ref.rs
浏览文件 @
76d9b309
...
...
@@ -28,6 +28,7 @@
// requirement, as you can see from the `#[rustc_regions]` output.
// compile-flags:-Znll -Zborrowck=mir -Zverbose
// must-compile-successfully
#![feature(rustc_attrs)]
...
...
src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs
浏览文件 @
76d9b309
...
...
@@ -17,6 +17,7 @@
// these errors are not (yet) reported.
// compile-flags:-Znll -Zborrowck=mir -Zverbose
// must-compile-successfully
#![feature(rustc_attrs)]
...
...
src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs
浏览文件 @
76d9b309
...
...
@@ -18,6 +18,7 @@
// these errors are not (yet) reported.
// compile-flags:-Znll -Zborrowck=mir -Zverbose
// must-compile-successfully
#![feature(rustc_attrs)]
...
...
src/test/ui/nll/closure-requirements/propagate-approximated-val.rs
浏览文件 @
76d9b309
...
...
@@ -16,6 +16,7 @@
// anonymous regions as well.
// compile-flags:-Znll -Zborrowck=mir -Zverbose
// must-compile-successfully
#![feature(rustc_attrs)]
...
...
src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs
浏览文件 @
76d9b309
...
...
@@ -14,6 +14,7 @@
// regions is erased.
// compile-flags:-Znll -Zborrowck=mir -Zverbose
// must-compile-successfully
#![feature(rustc_attrs)]
...
...
src/test/ui/nll/maybe-initialized-drop-uninitialized.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
//compile-flags: -Z emit-end-regions -Zborrowck=mir -Z nll
// must-compile-successfully
#![allow(warnings)]
...
...
src/test/ui/print-fuel/print-fuel.rs
浏览文件 @
76d9b309
...
...
@@ -12,6 +12,7 @@
#![allow(dead_code)]
// compile-flags: -Z print-fuel=foo
// must-compile-successfully
struct
S1
(
u8
,
u16
,
u8
);
struct
S2
(
u8
,
u16
,
u8
);
...
...
src/test/ui/print_type_sizes/anonymous.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// All of the types that occur in this function are uninteresting, in
// that one cannot control the sizes of these types with the same sort
...
...
src/test/ui/print_type_sizes/generics.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates how generics are handled: types have to be
// monomorphized, in the MIR of the original function in which they
...
...
src/test/ui/print_type_sizes/multiple_types.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates that when multiple structural types occur in
// a function, every one of them is included in the output.
...
...
src/test/ui/print_type_sizes/niche-filling.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates how niche-filling enums are handled,
// modelled after cases like `Option<&u32>`, `Option<bool>` and such.
...
...
src/test/ui/print_type_sizes/no_duplicates.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates that when the same type occurs repeatedly
// (even if multiple functions), it is only printed once in the
...
...
src/test/ui/print_type_sizes/packed.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates how packing is handled; it should cause
// the elimination of padding that would normally be introduced
...
...
src/test/ui/print_type_sizes/padding.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates how padding is handled: alignment
// requirements can lead to the introduction of padding, either before
...
...
src/test/ui/print_type_sizes/repr-align.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates how padding is handled: alignment
// requirements can lead to the introduction of padding, either before
...
...
src/test/ui/print_type_sizes/uninhabited.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
#![feature(never_type)]
...
...
src/test/ui/print_type_sizes/variants.rs
浏览文件 @
76d9b309
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
// compile-flags: -Z print-type-sizes
// must-compile-successfully
// This file illustrates two things:
//
...
...
src/test/ui/reachable/expr_andand.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
#![allow(unused_variables)]
#![allow(dead_code)]
#![deny(unreachable_code)]
...
...
src/test/ui/reachable/expr_oror.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
#![allow(unused_variables)]
#![allow(dead_code)]
#![deny(unreachable_code)]
...
...
src/test/ui/rfc_1940-must_use_on_functions/fn_must_use.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
#![feature(fn_must_use)]
#![warn(unused_must_use)]
...
...
src/test/ui/span/macro-span-replacement.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
#![warn(unused)]
macro_rules!
m
{
...
...
src/test/ui/span/multispan-import-lint.rs
浏览文件 @
76d9b309
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// must-compile-successfully
#![warn(unused)]
use
std
::
cmp
::{
Eq
,
Ord
,
min
,
PartialEq
,
PartialOrd
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录