Skip to content

Commit db7af2b

Browse files
committed
E0735 -> E0739
Prevents number collision with another approved PR.
1 parent 00df81c commit db7af2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc/error_codes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,5 +2305,5 @@ See [RFC 2091] for details on this and other limitations.
23052305
E0726, // non-explicit (not `'_`) elided lifetime in unsupported position
23062306
E0727, // `async` generators are not yet supported
23072307
E0728, // `await` must be in an `async` function or block
2308-
E0735, // invalid track_caller application/syntax
2308+
E0739, // invalid track_caller application/syntax
23092309
}

src/librustc/hir/check_attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl CheckAttrVisitor<'tcx> {
143143
struct_span_err!(
144144
self.tcx.sess,
145145
attr.span,
146-
E0735,
146+
E0739,
147147
"attribute should be applied to function"
148148
)
149149
.span_label(item.span, "not a function")

src/test/ui/rfc-2091-track-caller/only-for-fns.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | #![feature(track_caller)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88

9-
error[E0735]: attribute should be applied to function
9+
error[E0739]: attribute should be applied to function
1010
--> $DIR/only-for-fns.rs:3:1
1111
|
1212
LL | #[track_caller]

0 commit comments

Comments
 (0)