diff options
| author | bors <bors@rust-lang.org> | 2023-03-30 16:38:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-03-30 16:38:50 +0000 |
| commit | d43714a1016c13851338a7e56f5c9de9455815e7 (patch) | |
| tree | 47c40ac0c4bfb363de7563705ad864dfd9409e28 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 799732cbd8c1b6ce650fa2093dbbf6579c37c1f6 (diff) | |
| parent | 17f80456d18c954cd82a1232807ae8c5bc1cb5cb (diff) | |
| download | rust-d43714a1016c13851338a7e56f5c9de9455815e7.tar.gz rust-d43714a1016c13851338a7e56f5c9de9455815e7.zip | |
Auto merge of #10573 - Alexendoo:print-literal-file-macro, r=Jarcho
Ignore `file!()` macro in `print_literal`, `write_literal` changelog: [`print_literal`], [`write_literal`]: Ignore the `file!()` macro `file!()` expands to a string literal with its span set to that of the `file!()` callsite, but isn't marked as coming from an expansion. To fix this we make sure we actually find a string/char literal instead of assuming it's one and slicing It would also ignore any other macros that result in the same situation, but that shouldn't be common as `proc_macro::Span::call_site()` returns a span that is marked as from expansion Fixes #10544
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
