diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-09-13 00:36:06 -0400 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-09-13 10:19:10 +0000 |
commit | c86181cf8c25ebe7f8e6f248bfb7fb2a2e2538fb (patch) | |
tree | 67c78002ee8a70d0cae21c31262e1f84af5a764b /gcc | |
parent | a6e33926b1f6d4fd8e27b35dbf8f8826351198b0 (diff) | |
download | gcc-c86181cf8c25ebe7f8e6f248bfb7fb2a2e2538fb.zip gcc-c86181cf8c25ebe7f8e6f248bfb7fb2a2e2538fb.tar.gz gcc-c86181cf8c25ebe7f8e6f248bfb7fb2a2e2538fb.tar.bz2 |
Rename "rust_error_codes.def" to "rust-error-codes.def"
gcc/rust/ChangeLog:
* rust_error_codes.def: Moved to...
* rust-error-codes.def: ...here...
* rust-diagnostics.h: ...and update references.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/rust-diagnostics.h | 4 | ||||
-rw-r--r-- | gcc/rust/rust-error-codes.def (renamed from gcc/rust/rust_error_codes.def) | 0 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h index e88a762..7a58e7b 100644 --- a/gcc/rust/rust-diagnostics.h +++ b/gcc/rust/rust-diagnostics.h @@ -59,7 +59,7 @@ // We want E0005 to be mapped to the value `5` - this way, we can easily format // it in `make_description`. We also want to keep the value "5" only once when -// defining the error code in rust_error_codes.def, so not have ERROR(E0005, 5) +// defining the error code in rust-error-codes.def, so not have ERROR(E0005, 5) // as that is error prone. If we just use `0005` as the discriminant for the // `E0005` enum variant, then we are actually creating octal values (!) as `0` // is the C/C++ octal prefix. So this does not work for `E0009` for example, @@ -75,7 +75,7 @@ #define ERROR(N) E##N = (1##N - 10000) enum class ErrorCode : unsigned int { -#include "rust_error_codes.def" +#include "rust-error-codes.def" }; #undef ERROR diff --git a/gcc/rust/rust_error_codes.def b/gcc/rust/rust-error-codes.def index bcedbf4..bcedbf4 100644 --- a/gcc/rust/rust_error_codes.def +++ b/gcc/rust/rust-error-codes.def |