diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-09-13 00:36:06 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:36 +0100 |
commit | b1b42beea3d16d9b129ee53d173a299c5c8d33e2 (patch) | |
tree | 029c123c104e40e6d0b1b51061daa44d5da4d795 /gcc | |
parent | f538c29d78646c060e391770b6e5e821b99c7685 (diff) | |
download | gcc-b1b42beea3d16d9b129ee53d173a299c5c8d33e2.zip gcc-b1b42beea3d16d9b129ee53d173a299c5c8d33e2.tar.gz gcc-b1b42beea3d16d9b129ee53d173a299c5c8d33e2.tar.bz2 |
gccrs: 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 1ae4a29..3da1881 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 |