Skip to content

fix(lexer): Don't require frontmatters to be escaped with indented fences - #145754

Merged
bors merged 1 commit into
rust-lang:masterfrom
epage:escape
Sep 1, 2025
Merged

fix(lexer): Don't require frontmatters to be escaped with indented fences#145754
bors merged 1 commit into
rust-lang:masterfrom
epage:escape

Conversation

@epage

@epageepage commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

The RFC only limits hyphens at the beginning of lines and not if they are indented or embedded in other content.

Sticking to that approach was confirmed by the T-lang liason at #141367 (comment)

There is a regression in error message quality which I'm leaving for someone if they feel this needs improving.

Tracking issue: #136889

Fixes#141367

@epageepage added the F-frontmatter `#![feature(frontmatter)]` label Aug 22, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

r? @SparrowLii

rustbot has assigned @SparrowLii.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 22, 2025
@epageepage mentioned this pull request Aug 22, 2025
14 tasks
@rustbot

This comment has been minimized.

…nces
The RFC only limits hyphens at the beginning of lines and not if they
are indented or embedded in other content.
Sticking to that approach was confirmed by the T-lang liason at
rust-lang#141367 (comment)
There is a regression in error message quality which I'm leaving for
someone if they feel this needs improving.
@rustbot

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@SparrowLiiSparrowLii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SparrowLii

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Sep 1, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 142e25e has been approved by SparrowLii

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 1, 2025
@ZalatharZalathar mentioned this pull request Sep 1, 2025
bors added a commit that referenced this pull request Sep 1, 2025
Rollup of 5 pull requests
Successful merges:
- #145468 (dedup recip, powi, to_degrees, and to_radians float tests)
- #145643 (coverage: Build an "expansion tree" and use it to unexpand raw spans)
- #145754 (fix(lexer): Don't require frontmatters to be escaped with indented fences)
- #146060 (fixup nix dev shell again)
- #146068 (compiletest: Capture panic messages via a custom panic hook)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 0972fd9 into rust-lang:masterSep 1, 2025
10 checks passed
@rustbotrustbot added this to the 1.91.0 milestone Sep 1, 2025
rust-timer added a commit that referenced this pull request Sep 1, 2025
Rollup merge of #145754 - epage:escape, r=SparrowLii
fix(lexer): Don't require frontmatters to be escaped with indented fences
The RFC only limits hyphens at the beginning of lines and not if they are indented or embedded in other content.
Sticking to that approach was confirmed by the T-lang liason at #141367 (comment)
There is a regression in error message quality which I'm leaving for someone if they feel this needs improving.
Tracking issue: #136889Fixes#141367
@epage
epage deleted the escape branch September 2, 2025 01:49
github-actionsBot pushed a commit to model-checking/verify-rust-std that referenced this pull request Sep 9, 2025
Rollup of 5 pull requests
Successful merges:
- rust-lang#145468 (dedup recip, powi, to_degrees, and to_radians float tests)
- rust-lang#145643 (coverage: Build an "expansion tree" and use it to unexpand raw spans)
- rust-lang#145754 (fix(lexer): Don't require frontmatters to be escaped with indented fences)
- rust-lang#146060 (fixup nix dev shell again)
- rust-lang#146068 (compiletest: Capture panic messages via a custom panic hook)
r? `@ghost`
`@rustbot` modify labels: rollup
@epageepage mentioned this pull request Sep 16, 2025
11 tasks
@epageepage mentioned this pull request Oct 23, 2025
10 tasks
Kobzol pushed a commit to Kobzol/rustc_codegen_cranelift that referenced this pull request Dec 29, 2025
Rollup of 5 pull requests
Successful merges:
- rust-lang/rust#145468 (dedup recip, powi, to_degrees, and to_radians float tests)
- rust-lang/rust#145643 (coverage: Build an "expansion tree" and use it to unexpand raw spans)
- rust-lang/rust#145754 (fix(lexer): Don't require frontmatters to be escaped with indented fences)
- rust-lang/rust#146060 (fixup nix dev shell again)
- rust-lang/rust#146068 (compiletest: Capture panic messages via a custom panic hook)
r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-frontmatter`#![feature(frontmatter)]`S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature(frontmatter) rejects frontmatters with dashes with leading spaces

4 participants

@epage@rustbot@SparrowLii@bors