diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-10 20:29:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-10 20:29:09 +0200 |
| commit | 5782d9e802790935b5b897d55d4a57613e29667c (patch) | |
| tree | 1bc7f0cdef58b771a522578459a158fd0bd41c8d /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | a6acb29990d09c72f0d13fa61d59f0a0ed50aea4 (diff) | |
| parent | c9ed8a1ced9601bfd96a63be4fa0cdc4c6cb41a7 (diff) | |
| download | rust-5782d9e802790935b5b897d55d4a57613e29667c.tar.gz rust-5782d9e802790935b5b897d55d4a57613e29667c.zip | |
Rollup merge of #146340 - fmease:frontmatter-containment, r=fee1-dead,Urgau
Strip frontmatter in fewer places
* Stop stripping frontmatter in `proc_macro::Literal::from_str` (RUST-146132)
* Stop stripping frontmatter in expr-ctxt (but not item-ctxt!) `include`s (RUST-145945)
* Stop stripping shebang (!) in `proc_macro::Literal::from_str`
* Not a breaking change because it did compare spans already to ensure there wasn't extra whitespace or comments (`Literal::from_str("#!\n0")` already yields `Err(_)` thankfully!)
* Stop stripping frontmatter+shebang inside some rustdoc code where it doesn't make any observable difference (see self review comments)
* (Stop stripping frontmatter+shebang inside internal test code)
Fixes https://github.com/rust-lang/rust/issues/145945.
Fixes https://github.com/rust-lang/rust/issues/146132.
r? fee1-dead
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
