diff options
| author | gnzlbg <gonzalobg88@gmail.com> | 2019-02-23 16:24:14 +0100 |
|---|---|---|
| committer | gnzlbg <gonzalobg88@gmail.com> | 2019-02-23 16:24:14 +0100 |
| commit | 94aa74004efddf0cfb6fe4bb65eee9effbe40ae8 (patch) | |
| tree | 90d0630b5fdcafd45632a3b04f64255c8dcad46c /src | |
| parent | fcc0b3e398265f173bc668c11b87ca98b74185bd (diff) | |
| download | rust-94aa74004efddf0cfb6fe4bb65eee9effbe40ae8.tar.gz rust-94aa74004efddf0cfb6fe4bb65eee9effbe40ae8.zip | |
Use E0724 instead of E0723 as an error code
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/collect.rs | 2 | ||||
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/ffi_returns_twice.stderr | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 1a03af4398d..ba3df76050a 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -2396,7 +2396,7 @@ fn codegen_fn_attrs<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: DefId) -> Codegen struct_span_err!( tcx.sess, attr.span, - E0723, + E0724, "`#[ffi_returns_twice]` may only be used on foreign functions" ).emit(); } diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 6104c521412..caad342c138 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -4738,5 +4738,5 @@ register_diagnostics! { E0698, // type inside generator must be known in this context E0719, // duplicate values for associated type binding E0722, // Malformed #[optimize] attribute - E0723, // `#[ffi_returns_twice]` is only allowed in foreign functions + E0724, // `#[ffi_returns_twice]` is only allowed in foreign functions } diff --git a/src/test/ui/ffi_returns_twice.stderr b/src/test/ui/ffi_returns_twice.stderr index 5a6026c403d..c2105ae1dac 100644 --- a/src/test/ui/ffi_returns_twice.stderr +++ b/src/test/ui/ffi_returns_twice.stderr @@ -1,4 +1,4 @@ -error[E0723]: `#[ffi_returns_twice]` may only be used on foreign functions +error[E0724]: `#[ffi_returns_twice]` may only be used on foreign functions --> $DIR/ffi_returns_twice.rs:5:1 | LL | #[ffi_returns_twice] //~ ERROR `#[ffi_returns_twice]` may only be used on foreign functions @@ -6,4 +6,4 @@ LL | #[ffi_returns_twice] //~ ERROR `#[ffi_returns_twice]` may only be used on f error: aborting due to previous error -For more information about this error, try `rustc --explain E0723`. +For more information about this error, try `rustc --explain E0724`. |
