Skip to content

Conversation

supr
Copy link
Contributor

@supr supr commented Jul 13, 2014

  • Fixes a typo in the libstd documentation, referring UPD instead of UDP

bors added a commit that referenced this pull request Jul 13, 2014
* Fixes a typo in the libstd documentation, referring UPD instead of UDP
@bors bors closed this Jul 13, 2014
@bors bors merged commit 2cf68ba into rust-lang:master Jul 13, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 13, 2023
…re, r=lnicola

Fix inlining closures from local variables and functions

Previously, closures were not properly wrapped in parentheses for the `inline_local_variable` and `inline_call` assists, leading to the usages being incorrectly called:

```rust
fn main() {
    let $0f = || 2;
    let _ = f();
}
```

Now produces:

```rust
fn main() {
    let _ = (|| 2)();
}
```

Instead of:

```rust
fn main() {
    let _ = || 2();
}
```

Closes rust-lang#15639
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