-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Replace always_inline
with inline(always)
?
#6446
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
Comments
It doesn't seem like |
Maybe this is a special or an ancient form? |
Yep, but those are for c++ in the runtime. |
I am not sure whether |
They wouldn't, |
Fix `await_holding_lock` not linting `parking_lot` Mutex/RwLock This adds tests for `RwLock` and `parking_lot::{Mutex, RwLock}`, which were added before in rust-lang/rust-clippy@2dc8c08, but never tested in UI tests. I noticed this while reading [fasterthanli.me](https://fasterthanli.me/articles/a-rust-match-made-in-hell) latest blog post, complaining that Clippy doesn't catch this for `parking_lot`. (Too many people read his blog, he's too powerful) Some more things: - Adds a test for rust-lang#6446 - Improves the lint message changelog: [`await_holding_lock`]: Now also lints for `parking_lot::{Mutex, RwLock}`
librustc/middle/trans/adt.rs
is the only place to use the form#[always_inline]
.Other places uses
#[inline(always)]
.Could this be unified?
The text was updated successfully, but these errors were encountered: