Skip to content

librustc: Correct #[always_inline] -> #[inline(always)] - #6447

Closed
luqmana wants to merge 1 commit into
rust-lang:incomingfrom
luqmana:6446
Closed

librustc: Correct #[always_inline] -> #[inline(always)]#6447
luqmana wants to merge 1 commit into
rust-lang:incomingfrom
luqmana:6446

Conversation

@luqmana

Copy link
Copy Markdown
Contributor

bors added a commit that referenced this pull request May 13, 2013
@borsbors closed this May 13, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 11, 2021
…msteffen
Fix false positive for unit_arg lint
Fixesrust-lang#6447
To avoid false positives don't complain about unit args when they come from a path expression, e.g. a local variable.
**Note:** This is my first contribution to Clippy, so I might have messed up somewhere. Any feedback is welcome and I'm happy to work out any kinks.
---
changelog: Do not lint unit arguments when they come from a path expression.
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6447: Textmate grammar: allow function declarations without curly brackets r=lnicola a=dustypomerleau
Functions inside trait declarations can break subsequent highlighting, because they have no curly brackets. In a case such as:
```rust
pub trait Summary {
fn summarize(&self) -> String;
}
```
the scope `meta.function.definition.rust` will continue past the end of the block looking for `{` after `fn`. This PR allows `meta.function.definition.rust` to terminate with `;` in these cases. Co-authored-by: Dusty Pomerleau <dustypomerleau@users.noreply.github.com>
Sign up for freeto 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

@luqmana@thestinger@bors