diff options
author | Nikos Alexandris <nikos-alexandris@protonmail.com> | 2023-03-02 03:14:46 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:19:02 +0100 |
commit | 9d1d633099ba51c161209890de6102373660f3ff (patch) | |
tree | 9e54afcce8abf8acc690b826d2b50e7025d9a043 /gcc/rust/hir/tree/rust-hir.h | |
parent | d17c95a05210ecf4437eb97261b7f97de4383b8b (diff) | |
download | gcc-9d1d633099ba51c161209890de6102373660f3ff.zip gcc-9d1d633099ba51c161209890de6102373660f3ff.tar.gz gcc-9d1d633099ba51c161209890de6102373660f3ff.tar.bz2 |
gccrs: Add location info when opening a file fails in include_str and include_bytes. Resolves issue #1872
gcc/rust/ChangeLog:
* expand/rust-macro-builtins.cc (load_file_bytes): Add location parameter.
(MacroBuiltin::include_bytes_handler): Pass location to load_file_bytes.
(MacroBuiltin::include_str_handler): Pass location to load_file_bytes.
gcc/testsuite/ChangeLog:
* rust/compile/builtin_macro_include_bytes_location_info.rs: New test.
* rust/compile/builtin_macro_include_str_location_info.rs: New test.
Signed-off-by: Nikos Alexandris <nikos-alexandris@protonmail.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
0 files changed, 0 insertions, 0 deletions