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

librustc: Make sure to add argument attributes to extern fns from non-local crates. #14191

Merged
merged 1 commit into from
May 14, 2014

Conversation

luqmana
Copy link
Member

@luqmana luqmana commented May 14, 2014

We were correctly determining the attributes needed for the parameters for extern fns, but when that extern fn was from another crate we never bothered to pass that information along to LLVM. (i.e never called foreign::add_argument_attributes).

I've just changed both local and non-local (crate) extern fn's to be dealt with together (through foreign::register_foreign_item_fn) so we don't run into something like again.

Fixes #14177.

bors added a commit that referenced this pull request May 14, 2014
We were correctly determining the attributes needed for the parameters for extern fns, but when that extern fn was from another crate we never bothered to pass that information along to LLVM. (i.e never called `foreign::add_argument_attributes`).

I've just changed both local and non-local (crate) extern fn's to be dealt with together (through `foreign::register_foreign_item_fn`) so we don't run into something like again.

Fixes #14177.
@bors bors closed this May 14, 2014
@bors bors merged commit 589f447 into rust-lang:master May 14, 2014
@luqmana luqmana deleted the eu branch May 14, 2014 17:47
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 27, 2025
…4191)

```rust
let mut tmp = vec![1, 2, 3];
for b in &mut tmp {
    *b = !*b;
}
```

must not suggest the invalid `tmp.fill(!*b)`.

In addition, there is another commit which cleans up two function calls
with no effect.

Fix rust-lang#14189

changelog: [`manual_slice_fill`]: ensure that the initialization
expression doesn't reference the iterator
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.

incorrect union passing on 32bit linux
3 participants