Repository navigation
Plan documents spell mutation as the language does: mut receivers, mut parameters, fn(mut T), []mut u8 (#739) - #3500
Merged
Merged
Conversation
…t parameters, fn(mut T), []mut u8 (#739)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #739. Docs only.
Eight plan and sketch documents still wrote
&mutsignatures from before §15.1. Each site is respelled by the issue's rule, with the forms the language has gained since (D172mutparameters, D218fn(mut T)):fn m(self: &mut Self, …)→mut fn m(…);fn drop(self: &mut Self)→move fn drop().x: &mut T→mut x: T; an argument&mut place→ the place.fn(&mut T)→fn(mut T);buf: &mut [u8]→buf: []mut u8.FlagSet.add_subcommand(…) -> &mut FlagSet), which nothing in the language spells. In this non-normative sketch it now takes the caller's closure,configure: fn(mut FlagSet).Pin<&mut Self>) stays.The conformance banners are removed from the eight.
with-implementation-notes.mdis a historical notebook: its banner now says so and it is not respelled, as the issue asked.The rewrite was a With script, read as a full diff before commit.
spec-inventory-checkanddoc-path-checkgreen.