rust/compiler/rustc_interface/src
Matthias Krüger 86d39a0673
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
2025-09-10 20:29:09 +02:00
..
callbacks.rs Represent diagnostic side effects as dep nodes 2025-03-14 16:01:58 +01:00
errors.rs fixup limit handling code 2025-09-08 15:07:12 -07:00
interface.rs Strip frontmatter in fewer places 2025-09-09 19:49:40 +02:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
limits.rs fixup limit handling code 2025-09-08 15:07:12 -07:00
passes.rs Rollup merge of #146340 - fmease:frontmatter-containment, r=fee1-dead,Urgau 2025-09-10 20:29:09 +02:00
proc_macro_decls.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
queries.rs Save metadata among work products. 2025-07-04 14:02:17 +00:00
tests.rs Move NativeLibKind from rustc_session to rustc_hir 2025-08-27 20:24:59 +02:00
util.rs Port crate name to the new attribute system 2025-08-24 09:20:57 +02:00