E0735 -> E0739

Prevents number collision with another approved PR.
This commit is contained in:
Adam Perry 2019-10-03 18:49:35 -07:00
parent 53096c575d
commit 8992c30db4
3 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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")

View File

@ -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]