]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Rename "rust_error_codes.def" to "rust-error-codes.def"
authorOwen Avery <powerboat9.gamer@gmail.com>
Wed, 13 Sep 2023 04:36:06 +0000 (00:36 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:04:36 +0000 (19:04 +0100)
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>
gcc/rust/rust-diagnostics.h
gcc/rust/rust-error-codes.def [moved from gcc/rust/rust_error_codes.def with 100% similarity]

index 1ae4a292e77a92c975a194d697d80d9daa7cda52..3da1881bb6caf5e8379d3cb6ec105a5713734fd3 100644 (file)
@@ -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