提交 8992c30d 编写于 作者: A Adam Perry

E0735 -> E0739

Prevents number collision with another approved PR.
上级 53096c57
......@@ -2145,5 +2145,5 @@ fn foo(){}
E0726, // non-explicit (not `'_`) elided lifetime in unsupported position
E0727, // `async` generators are not yet supported
E0728, // `await` must be in an `async` function or block
E0735, // invalid track_caller application/syntax
E0739, // invalid track_caller application/syntax
}
......@@ -143,7 +143,7 @@ fn check_track_caller(&self, attr: &hir::Attribute, item: &hir::Item, target: Ta
struct_span_err!(
self.tcx.sess,
attr.span,
E0735,
E0739,
"attribute should be applied to function"
)
.span_label(item.span, "not a function")
......
......@@ -6,7 +6,7 @@ LL | #![feature(track_caller)]
|
= note: `#[warn(incomplete_features)]` on by default
error[E0735]: attribute should be applied to function
error[E0739]: attribute should be applied to function
--> $DIR/only-for-fns.rs:3:1
|
LL | #[track_caller]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册