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

Add noalias to safe shared reference parameters #15970

Merged
merged 1 commit into from
Jul 25, 2014

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Jul 25, 2014

This add the LLVM noalias attribute to parameters of a
shared reference type (&) which have a safe interior.

This add the LLVM noalias attribute to parameters of a
shared reference type (&) which have a safe interior.
@emberian
Copy link
Member

(The reason being that &T where T doesn't contain Unsafe<T> points to memory that is, for the lifetime of the function call, immutable, and cannot impose a memory dependency on any other arguments of the function)

bors added a commit that referenced this pull request Jul 25, 2014
This add the LLVM noalias attribute to parameters of a
shared reference type (&) which have a safe interior.
@bors bors closed this Jul 25, 2014
@bors bors merged commit 4c2d4cd into rust-lang:master Jul 25, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 4, 2023
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.

3 participants