Skip to content

Document the Pattern safety guarantee in string challenges - #815

Open
fromtaoyuanhsinchuuuu wants to merge 1 commit into
model-checking:mainfrom
fromtaoyuanhsinchuuuu:fix/challenge-pattern-safety
Open

fromtaoyuanhsinchuuuu wants to merge 1 commit into
model-checking:mainfrom
fromtaoyuanhsinchuuuu:fix/challenge-pattern-safety

Conversation

@fromtaoyuanhsinchuuuu

Copy link
Copy Markdown

Describe the haystack guarantee as part of the unsafe Pattern trait in Challenges 20 and 21. Challenges 10 and 22 now also say that custom patterns used in proofs must return a searcher for the same slice. The pinned nightly already includes the upstream trait change from rust-lang#165681.

Validation

  • Ran mdbook build doc with the link checker and metrics preprocessor.
  • Checked the four rendered chapters and confirmed the linked Rustdoc safety section exists.

Resolves #753

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@fromtaoyuanhsinchuuuu
fromtaoyuanhsinchuuuu requested a review from a team as a code owner December 2, 2026 20:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Challenges 20/21/22/10: "Assumption 3" is now a safety requirement of unsafe trait Pattern (rust-lang/rust#165681)

1 participant