diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2025-07-30 19:37:45 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-08-05 16:36:59 +0200 |
commit | 7f520ecc0c0eda5b0e649293759da392cf7f9284 (patch) | |
tree | 291d4d220709191883fd13da0b318995dbbf391f /gcc | |
parent | 697025acf8bedcc59a2e34035ddb6f17a69b8c52 (diff) | |
download | gcc-7f520ecc0c0eda5b0e649293759da392cf7f9284.zip gcc-7f520ecc0c0eda5b0e649293759da392cf7f9284.tar.gz gcc-7f520ecc0c0eda5b0e649293759da392cf7f9284.tar.bz2 |
gccrs: Error message field member was not properly updated
gcc/rust/ChangeLog:
* rust-diagnostics.h (struct Error): Add disambiguation.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-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 0b83e8c..09d5e24 100644 --- a/gcc/rust/rust-diagnostics.h +++ b/gcc/rust/rust-diagnostics.h @@ -183,7 +183,7 @@ struct Error Error (Kind kind, location_t locus, std::string message) : kind (kind), locus (locus), message (std::move (message)) { - message.shrink_to_fit (); + this->message.shrink_to_fit (); } // simple location + error code Error (Kind kind, location_t locus, ErrorCode code, std::string message) @@ -191,13 +191,13 @@ struct Error message (std::move (message)) { is_errorcode = true; - message.shrink_to_fit (); + this->message.shrink_to_fit (); } // rich location Error (Kind kind, rich_location *richlocus, std::string message) : kind (kind), richlocus (richlocus), message (std::move (message)) { - message.shrink_to_fit (); + this->message.shrink_to_fit (); } // rich location + error code Error (Kind kind, rich_location *richlocus, ErrorCode code, @@ -206,7 +206,7 @@ struct Error message (std::move (message)) { is_errorcode = true; - message.shrink_to_fit (); + this->message.shrink_to_fit (); } // simple location Error (location_t locus, std::string message) |