aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorNikos Alexandris <nikos-alexandris@protonmail.com>2023-03-02 03:14:46 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-03-02 09:19:00 +0000
commit6d25dac7370289ef8e44f1f8370572aebac6e8e4 (patch)
tree0d18cb3e16c6814673fd3016afb2de229eb2deba /gcc/rust/hir
parent9ec974b93e7442b5babbea91683de64bf1b02dbd (diff)
downloadgcc-6d25dac7370289ef8e44f1f8370572aebac6e8e4.zip
gcc-6d25dac7370289ef8e44f1f8370572aebac6e8e4.tar.gz
gcc-6d25dac7370289ef8e44f1f8370572aebac6e8e4.tar.bz2
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')
0 files changed, 0 insertions, 0 deletions