diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 14:05:09 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:36 +0100 |
commit | ffadba42b3022855db48bdd94e0c95a8480bc278 (patch) | |
tree | 25a1be3c74a4a1d7e7288e7844347d07c68033e5 /gcc/rust/rust-diagnostics.h | |
parent | fc91e2b3c68621a7315621f46445322835b2316a (diff) | |
download | gcc-ffadba42b3022855db48bdd94e0c95a8480bc278.zip gcc-ffadba42b3022855db48bdd94e0c95a8480bc278.tar.gz gcc-ffadba42b3022855db48bdd94e0c95a8480bc278.tar.bz2 |
gccrs: Remove RichLocation typedef
gcc/rust/ChangeLog:
* rust-location.h
(typedef RichLocation): Remove.
* expand/rust-macro-expand.cc: Replace RichLocation with rich_location.
* hir/rust-ast-lower-base.cc: Likewise.
* resolve/rust-ast-resolve-implitem.h: Likewise.
* resolve/rust-ast-resolve-stmt.h: Likewise.
* resolve/rust-ast-resolve-toplevel.h: Likewise.
* rust-diagnostics.cc: Likewise.
* rust-diagnostics.h: Likewise.
* rust-session-manager.cc: Likewise.
* typecheck/rust-casts.cc: Likewise.
* typecheck/rust-coercion.cc: Likewise.
* typecheck/rust-hir-inherent-impl-overlap.h: Likewise.
* typecheck/rust-hir-path-probe.h: Likewise.
* typecheck/rust-hir-trait-reference.cc: Likewise.
* typecheck/rust-hir-type-check-expr.cc: Likewise.
* typecheck/rust-hir-type-check-implitem.cc: Likewise.
* typecheck/rust-hir-type-check-item.cc: Likewise.
* typecheck/rust-hir-type-check-pattern.cc: Likewise.
* typecheck/rust-tyty-cmp.h: Likewise.
* typecheck/rust-tyty-subst.cc: Likewise.
* typecheck/rust-tyty.cc: Likewise.
* typecheck/rust-unify.cc: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-diagnostics.h')
-rw-r--r-- | gcc/rust/rust-diagnostics.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h index 50097ef..316d3e0 100644 --- a/gcc/rust/rust-diagnostics.h +++ b/gcc/rust/rust-diagnostics.h @@ -85,10 +85,10 @@ rust_inform (const Location, const char *fmt, ...) // rich locations extern void -rust_error_at (const RichLocation &, const char *fmt, ...) +rust_error_at (const rich_location &, const char *fmt, ...) RUST_ATTRIBUTE_GCC_DIAG (2, 3); extern void -rust_error_at (const RichLocation &, const ErrorCode, const char *fmt, ...) +rust_error_at (const rich_location &, const ErrorCode, const char *fmt, ...) RUST_ATTRIBUTE_GCC_DIAG (3, 4); // clang-format on @@ -116,9 +116,9 @@ extern void rust_be_error_at (const Location, const ErrorCode, const std::string &errmsg); extern void -rust_be_error_at (const RichLocation &, const std::string &errmsg); +rust_be_error_at (const rich_location &, const std::string &errmsg); extern void -rust_be_error_at (const RichLocation &, const ErrorCode, +rust_be_error_at (const rich_location &, const ErrorCode, const std::string &errmsg); extern void rust_be_warning_at (const Location, int opt, const std::string &warningmsg); |