diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 11:42:12 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:36 +0100 |
commit | eb241224a9f63afc92dcd744d74de8a8ec007f95 (patch) | |
tree | da54fd6f7d6dceb543e4010906fb6b604907c928 /gcc/rust/rust-session-manager.cc | |
parent | 75763b4c50e6d1ffb8cae6d34d5ffd40add1f8d4 (diff) | |
download | gcc-eb241224a9f63afc92dcd744d74de8a8ec007f95.zip gcc-eb241224a9f63afc92dcd744d74de8a8ec007f95.tar.gz gcc-eb241224a9f63afc92dcd744d74de8a8ec007f95.tar.bz2 |
gccrs: Change class RichLocation into typedef
gcc/rust/ChangeLog:
* rust-linemap.cc
(RichLocation::RichLocation): Remove.
(RichLocation::~RichLocation): Remove.
(RichLocation::add_range): Remove.
(RichLocation::add_fixit_insert_before): Remove.
(RichLocation::add_fixit_insert_after): Remove.
* rust-location.h
(class RichLocation): Remove.
* rust-diagnostics.cc
(rust_be_error_at): Remove RichLocation::get invocation.
* expand/rust-macro-expand.cc: Fix RichLocation constructor.
* 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-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-session-manager.cc')
-rw-r--r-- | gcc/rust/rust-session-manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc index fb856c6..6de15655 100644 --- a/gcc/rust/rust-session-manager.cc +++ b/gcc/rust/rust-session-manager.cc @@ -882,7 +882,7 @@ Session::expansion (AST::Crate &crate) rust_assert (last_def && last_invoc); - RichLocation range (last_invoc->get_locus ()); + RichLocation range (line_table, last_invoc->get_locus ()); range.add_range (last_def->get_locus ()); rust_error_at (range, "reached recursion limit"); |