-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes some content for const_refs_to_static which seems to duplicate content elsewhere. In particular: * Remove the examples of allowed use of `static` in `const_eval.md`. We don't show examples for any of the other permitted uses. Additionally, I believe the other points in the list already cover concerns such as interior mutability (and possibly more precise way, since the existing content mentions things like transient places). * I think a single statement that reads of `extern` statics is sufficient to follow the pattern of all the other allowed behaviors. * Removed the examples from the `constant-items.md` chapter about allowing use of `static`s. Again, we generally don't duplicate what is allowed unless there is some explicit statement indicating that it is not. Also, I am reluctant to duplicate what is allowed between `const_eval.md` and `constant-items.md`.
- Loading branch information
Showing
2 changed files
with
2 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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