Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark &T params without UnsafeCell<U> as readonly #16525

Merged
merged 1 commit into from
Aug 16, 2014
Merged

mark &T params without UnsafeCell<U> as readonly #16525

merged 1 commit into from
Aug 16, 2014

Conversation

thestinger
Copy link
Contributor

These are already marked as noalias due to the immutability guarantee
(see 4c2d4cd), but more information can
be bubbled up to the caller via readonly.

These are already marked as `noalias` due to the immutability guarantee
(see 4c2d4cd), but more information can
be bubbled up to the caller via `readonly`.
bors added a commit that referenced this pull request Aug 16, 2014
These are already marked as `noalias` due to the immutability guarantee
(see 4c2d4cd), but more information can
be bubbled up to the caller via `readonly`.
@bors bors closed this Aug 16, 2014
@bors bors merged commit 48edb32 into rust-lang:master Aug 16, 2014
@thestinger thestinger deleted the readonly branch September 10, 2014 06:55
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Feb 11, 2024
Abstract more over ItemTreeLoc-like structs

Allows reducing some code duplication by using functions generic over said structs. The diff isn't negative due to me adding some additional impls for completeness.
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.

2 participants