From: Owen Avery Date: Wed, 13 Sep 2023 04:36:06 +0000 (-0400) Subject: gccrs: Rename "rust_error_codes.def" to "rust-error-codes.def" X-Git-Tag: basepoints/gcc-15~2130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1b42beea3d16d9b129ee53d173a299c5c8d33e2;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h index 1ae4a292e77a..3da1881bb6ca 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 similarity index 100% rename from gcc/rust/rust_error_codes.def rename to gcc/rust/rust-error-codes.def