diff options
| author | Adam Perry <adam.n.perry@gmail.com> | 2019-10-03 18:49:35 -0700 |
|---|---|---|
| committer | Adam Perry <adam.n.perry@gmail.com> | 2019-10-07 08:05:33 -0700 |
| commit | 8992c30db41ceda8eb07c36080f2f1926013c2ac (patch) | |
| tree | 1d0f5b20f74a38b6216e8425c3dfe38a7c9a9233 | |
| parent | 53096c575d0e17449e3b86919b96aa0e66ca9c48 (diff) | |
| download | rust-8992c30db41ceda8eb07c36080f2f1926013c2ac.tar.gz rust-8992c30db41ceda8eb07c36080f2f1926013c2ac.zip | |
E0735 -> E0739
Prevents number collision with another approved PR.
| -rw-r--r-- | src/librustc/error_codes.rs | 2 | ||||
| -rw-r--r-- | src/librustc/hir/check_attr.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/rfc-2091-track-caller/only-for-fns.stderr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs index 6be1b6a54fb..8bc472aa028 100644 --- a/src/librustc/error_codes.rs +++ b/src/librustc/error_codes.rs @@ -2145,5 +2145,5 @@ See [RFC 2091] for details on this and other limitations. 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 } diff --git a/src/librustc/hir/check_attr.rs b/src/librustc/hir/check_attr.rs index 35c7ffbf14e..c37fec982b1 100644 --- a/src/librustc/hir/check_attr.rs +++ b/src/librustc/hir/check_attr.rs @@ -143,7 +143,7 @@ impl CheckAttrVisitor<'tcx> { struct_span_err!( self.tcx.sess, attr.span, - E0735, + E0739, "attribute should be applied to function" ) .span_label(item.span, "not a function") diff --git a/src/test/ui/rfc-2091-track-caller/only-for-fns.stderr b/src/test/ui/rfc-2091-track-caller/only-for-fns.stderr index e2d3d57f0ad..3301da7ff47 100644 --- a/src/test/ui/rfc-2091-track-caller/only-for-fns.stderr +++ b/src/test/ui/rfc-2091-track-caller/only-for-fns.stderr @@ -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] |
