aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-08-20 17:32:29 +0500
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:33 +0100
commit8c04cf4cb19400aec9b51bd76e735f07bb28be07 (patch)
treeece88207ecb9e654a4c65ad39a4e843e9d7415ae /gcc/rust/rust-gcc.cc
parent0e65b1f9b377eb6a2464905c4060dc86d972d9d9 (diff)
downloadgcc-8c04cf4cb19400aec9b51bd76e735f07bb28be07.zip
gcc-8c04cf4cb19400aec9b51bd76e735f07bb28be07.tar.gz
gcc-8c04cf4cb19400aec9b51bd76e735f07bb28be07.tar.bz2
gccrs: 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/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions