-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-frontmatter`#![feature(frontmatter)]``#![feature(frontmatter)]`P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
With rustc 1.87, compiling the following pair of files succeeds:
main.rs
:
fn main() {
let _ = include!("expression.inc");
}
expression.inc
:
---1
With rustc 1.88 or 1.89 (or rustc 1.91.0-nightly (160e7623e 2025-08-26)
), compilation fails.
With 1.89 the first error message is
error: invalid infostring for frontmatter
--> src/expression.inc:1:4
|
1 | ---1
| ^
|
= note: frontmatter infostrings must be a single identifier immediately following the opening
See #145520 for a similar issue with TokenStream::from_str
.
fmease
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-frontmatter`#![feature(frontmatter)]``#![feature(frontmatter)]`P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.