aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-tree.cc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-08-20 17:32:29 +0500
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-08-29 08:29:30 +0000
commitf2fc29d45662d4b8004dee62cf25b228db2ebc59 (patch)
treef8589876b7561a5f26ace3b2760b21f7b0d6474c /gcc/rust/backend/rust-tree.cc
parente493d7e0db925720e9b48c9b2fc329cc9b8c7a4e (diff)
downloadgcc-f2fc29d45662d4b8004dee62cf25b228db2ebc59.zip
gcc-f2fc29d45662d4b8004dee62cf25b228db2ebc59.tar.gz
gcc-f2fc29d45662d4b8004dee62cf25b228db2ebc59.tar.bz2
diagnostics: Added non-const `rich_location *` function
Currently, gccrs using the const `rich_location &`, and then using the cast to convert it to the functions which was used to emit the errors, having the overloaded is good, similiar to other frontends. gcc/rust/ChangeLog: * rust-diagnostics.cc (rust_be_error_at): Added overload function. (rust_error_at): non-const `rich_location *` function. * rust-diagnostics.h (rust_error_at): Implementation of overloaded function. (rust_be_error_at): likewise. * rust_error_codes.def: Added GNU license. Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-tree.cc')
0 files changed, 0 insertions, 0 deletions