aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-diagnostics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-diagnostics.cc')
-rw-r--r--gcc/rust/rust-diagnostics.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/rust-diagnostics.cc b/gcc/rust/rust-diagnostics.cc
index bdff7a6..4847f6f 100644
--- a/gcc/rust/rust-diagnostics.cc
+++ b/gcc/rust/rust-diagnostics.cc
@@ -119,7 +119,7 @@ expand_message (const char *fmt, va_list ap)
if (nwr == -1)
{
// memory allocation failed
- rust_be_error_at (Linemap::unknown_location (),
+ rust_be_error_at (UNKNOWN_LOCATION,
"memory allocation failed in vasprintf");
rust_assert (0);
}
@@ -323,7 +323,7 @@ rust_debug_loc (const Location location, const char *fmt, ...)
va_end (ap);
if (nwr == -1)
{
- rust_be_error_at (Linemap::unknown_location (),
+ rust_be_error_at (UNKNOWN_LOCATION,
"memory allocation failed in vasprintf");
rust_assert (0);
}