Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
ebaebd98
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,发现更多精彩内容 >>
提交
ebaebd98
编写于
11月 07, 2019
作者:
A
Adam Perry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove #[track_caller] from incomplete features list.
上级
207f5208
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
8 addition
and
89 deletion
+8
-89
src/librustc_feature/active.rs
src/librustc_feature/active.rs
+0
-1
src/test/ui/rfc-2091-track-caller/const-caller-location.stderr
...est/ui/rfc-2091-track-caller/const-caller-location.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs
src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs
+1
-1
src/test/ui/rfc-2091-track-caller/error-odd-syntax.stderr
src/test/ui/rfc-2091-track-caller/error-odd-syntax.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.rs
src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.rs
+1
-1
src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr
...st/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/error-with-naked.rs
src/test/ui/rfc-2091-track-caller/error-with-naked.rs
+1
-1
src/test/ui/rfc-2091-track-caller/error-with-naked.stderr
src/test/ui/rfc-2091-track-caller/error-with-naked.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/error-with-trait-decl.rs
src/test/ui/rfc-2091-track-caller/error-with-trait-decl.rs
+1
-1
src/test/ui/rfc-2091-track-caller/error-with-trait-decl.stderr
...est/ui/rfc-2091-track-caller/error-with-trait-decl.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/error-with-trait-default-impl.rs
...ui/rfc-2091-track-caller/error-with-trait-default-impl.rs
+1
-1
src/test/ui/rfc-2091-track-caller/error-with-trait-default-impl.stderr
...fc-2091-track-caller/error-with-trait-default-impl.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/error-with-trait-fn-impl.rs
...test/ui/rfc-2091-track-caller/error-with-trait-fn-impl.rs
+1
-1
src/test/ui/rfc-2091-track-caller/error-with-trait-fn-impl.stderr
.../ui/rfc-2091-track-caller/error-with-trait-fn-impl.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/only-for-fns.rs
src/test/ui/rfc-2091-track-caller/only-for-fns.rs
+1
-1
src/test/ui/rfc-2091-track-caller/only-for-fns.stderr
src/test/ui/rfc-2091-track-caller/only-for-fns.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/pass.rs
src/test/ui/rfc-2091-track-caller/pass.rs
+1
-1
src/test/ui/rfc-2091-track-caller/pass.stderr
src/test/ui/rfc-2091-track-caller/pass.stderr
+0
-8
src/test/ui/rfc-2091-track-caller/track-caller-attribute.stderr
...st/ui/rfc-2091-track-caller/track-caller-attribute.stderr
+0
-8
未找到文件。
src/librustc_feature/active.rs
浏览文件 @
ebaebd98
...
...
@@ -538,5 +538,4 @@ pub fn set(&self, features: &mut Features, span: Span) {
sym
::
or_patterns
,
sym
::
let_chains
,
sym
::
raw_dylib
,
sym
::
track_caller
,
];
src/test/ui/rfc-2091-track-caller/const-caller-location.stderr
已删除
100644 → 0
浏览文件 @
207f5208
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/const-caller-location.rs:3:39
|
LL | #![feature(const_fn, core_intrinsics, track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs
浏览文件 @
ebaebd98
#![feature(track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller(
1
)]
fn
f
()
{}
...
...
src/test/ui/rfc-2091-track-caller/error-odd-syntax.stderr
浏览文件 @
ebaebd98
...
...
@@ -4,13 +4,5 @@ error: malformed `track_caller` attribute input
LL | #[track_caller(1)]
| ^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[track_caller]`
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-odd-syntax.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error: aborting due to previous error
src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.rs
浏览文件 @
ebaebd98
#![feature(track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller]
//~ ERROR Rust ABI is required to use `#[track_caller]`
extern
"C"
fn
f
()
{}
...
...
src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr
浏览文件 @
ebaebd98
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-invalid-abi.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0737]: Rust ABI is required to use `#[track_caller]`
--> $DIR/error-with-invalid-abi.rs:3:1
|
...
...
src/test/ui/rfc-2091-track-caller/error-with-naked.rs
浏览文件 @
ebaebd98
#![feature(naked_functions,
track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(naked_functions,
track_caller)]
#[track_caller]
#[naked]
...
...
src/test/ui/rfc-2091-track-caller/error-with-naked.stderr
浏览文件 @
ebaebd98
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-naked.rs:1:29
|
LL | #![feature(naked_functions, track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0736]: cannot use `#[track_caller]` with `#[naked]`
--> $DIR/error-with-naked.rs:3:1
|
...
...
src/test/ui/rfc-2091-track-caller/error-with-trait-decl.rs
浏览文件 @
ebaebd98
#![feature(track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
trait
Trait
{
#[track_caller]
//~ ERROR: `#[track_caller]` may not be used on trait methods
...
...
src/test/ui/rfc-2091-track-caller/error-with-trait-decl.stderr
浏览文件 @
ebaebd98
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-trait-decl.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0738]: `#[track_caller]` may not be used on trait methods
--> $DIR/error-with-trait-decl.rs:4:5
|
...
...
src/test/ui/rfc-2091-track-caller/error-with-trait-default-impl.rs
浏览文件 @
ebaebd98
#![feature(track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
trait
Trait
{
#[track_caller]
//~ ERROR: `#[track_caller]` may not be used on trait methods
...
...
src/test/ui/rfc-2091-track-caller/error-with-trait-default-impl.stderr
浏览文件 @
ebaebd98
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-trait-default-impl.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0738]: `#[track_caller]` may not be used on trait methods
--> $DIR/error-with-trait-default-impl.rs:4:5
|
...
...
src/test/ui/rfc-2091-track-caller/error-with-trait-fn-impl.rs
浏览文件 @
ebaebd98
// check-fail
#![feature(track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
trait
Trait
{
fn
unwrap
(
&
self
);
...
...
src/test/ui/rfc-2091-track-caller/error-with-trait-fn-impl.stderr
浏览文件 @
ebaebd98
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-trait-fn-impl.rs:3:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0738]: `#[track_caller]` may not be used on trait methods
--> $DIR/error-with-trait-fn-impl.rs:10:5
|
...
...
src/test/ui/rfc-2091-track-caller/only-for-fns.rs
浏览文件 @
ebaebd98
#![feature(track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller]
struct
S
;
...
...
src/test/ui/rfc-2091-track-caller/only-for-fns.stderr
浏览文件 @
ebaebd98
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/only-for-fns.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0739]: attribute should be applied to function
--> $DIR/only-for-fns.rs:3:1
|
...
...
src/test/ui/rfc-2091-track-caller/pass.rs
浏览文件 @
ebaebd98
// run-pass
#![feature(track_caller)]
//~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller]
fn
f
()
{}
...
...
src/test/ui/rfc-2091-track-caller/pass.stderr
已删除
100644 → 0
浏览文件 @
207f5208
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/pass.rs:2:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
src/test/ui/rfc-2091-track-caller/track-caller-attribute.stderr
已删除
100644 → 0
浏览文件 @
207f5208
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/track-caller-attribute.rs:3:39
|
LL | #![feature(const_fn, core_intrinsics, track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录