aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-diagnostics.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-07-10 14:05:09 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:49:36 +0100
commitffadba42b3022855db48bdd94e0c95a8480bc278 (patch)
tree25a1be3c74a4a1d7e7288e7844347d07c68033e5 /gcc/rust/rust-diagnostics.cc
parentfc91e2b3c68621a7315621f46445322835b2316a (diff)
downloadgcc-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.cc')
-rw-r--r--gcc/rust/rust-diagnostics.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/rust-diagnostics.cc b/gcc/rust/rust-diagnostics.cc
index 0f9eb79..f612273 100644
--- a/gcc/rust/rust-diagnostics.cc
+++ b/gcc/rust/rust-diagnostics.cc
@@ -235,7 +235,7 @@ rust_error_at (const Location location, const ErrorCode code, const char *fmt,
}
void
-rust_be_error_at (const RichLocation &location, const ErrorCode code,
+rust_be_error_at (const rich_location &location, const ErrorCode code,
const std::string &errmsg)
{
/* TODO: 'error_at' would like a non-'const' 'rich_location *'. */
@@ -247,7 +247,7 @@ rust_be_error_at (const RichLocation &location, const ErrorCode code,
}
void
-rust_error_at (const RichLocation &location, const ErrorCode code,
+rust_error_at (const rich_location &location, const ErrorCode code,
const char *fmt, ...)
{
va_list ap;
@@ -308,7 +308,7 @@ rust_inform (const Location location, const char *fmt, ...)
// Rich Locations
void
-rust_be_error_at (const RichLocation &location, const std::string &errmsg)
+rust_be_error_at (const rich_location &location, const std::string &errmsg)
{
/* TODO: 'error_at' would like a non-'const' 'rich_location *'. */
rich_location &gcc_loc = const_cast<rich_location &> (location);
@@ -316,7 +316,7 @@ rust_be_error_at (const RichLocation &location, const std::string &errmsg)
}
void
-rust_error_at (const RichLocation &location, const char *fmt, ...)
+rust_error_at (const rich_location &location, const char *fmt, ...)
{
va_list ap;