Skip to content

Commit 94aa740

Browse files
committed
Use E0724 instead of E0723 as an error code
1 parent fcc0b3e commit 94aa740

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc_typeck/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ fn codegen_fn_attrs<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: DefId) -> Codegen
23962396
struct_span_err!(
23972397
tcx.sess,
23982398
attr.span,
2399-
E0723,
2399+
E0724,
24002400
"`#[ffi_returns_twice]` may only be used on foreign functions"
24012401
).emit();
24022402
}

src/librustc_typeck/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4738,5 +4738,5 @@ register_diagnostics! {
47384738
E0698, // type inside generator must be known in this context
47394739
E0719, // duplicate values for associated type binding
47404740
E0722, // Malformed #[optimize] attribute
4741-
E0723, // `#[ffi_returns_twice]` is only allowed in foreign functions
4741+
E0724, // `#[ffi_returns_twice]` is only allowed in foreign functions
47424742
}

src/test/ui/ffi_returns_twice.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
error[E0723]: `#[ffi_returns_twice]` may only be used on foreign functions
1+
error[E0724]: `#[ffi_returns_twice]` may only be used on foreign functions
22
--> $DIR/ffi_returns_twice.rs:5:1
33
|
44
LL | #[ffi_returns_twice] //~ ERROR `#[ffi_returns_twice]` may only be used on foreign functions
55
| ^^^^^^^^^^^^^^^^^^^^
66

77
error: aborting due to previous error
88

9-
For more information about this error, try `rustc --explain E0723`.
9+
For more information about this error, try `rustc --explain E0724`.

0 commit comments

Comments
 (0)