-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Milestone
Description
In Rust, const means several things:
constitems (document const items #3341)- The
constkind (Add deep const kind #2421), which represents deep immutability constpointers, which can point to mutable or immutable data, but cannot be used to mutate it
I think const pointers are the most confusing and should be renamed to something else (perhaps read pointers). This confusion may have contributed to the unsoundness fixed in 5d540de#L7L1206
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.