

Add `await_holding_invalid_type` lint by lilymara-onesignal · Pull Request #8707...
source link: https://github.com/rust-lang/rust-clippy/pull/8707
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

changelog: [await_holding_invalid_type
]
This lint allows users to create a denylist of types which are not allowed to be
held across await points. This is essentially a re-implementation of the
language-level must_not_suspend
lint. That lint has a lot of
work still to be done before it will reach Rust stable, and in the meantime
there are a lot of types which can trip up developers if they are used
improperly.
I originally implemented this specifically for tracing::span::Entered
, until I discovered #8434 and read the commentary on that PR. Given this implementation is fully user configurable, doesn't tie clippy to any one particular crate, and introduces no additional dependencies, it seems more appropriate.
Recommend
-
96
README.md Laravel OneSignal
-
14
OneSignal has been using Rust extensively in production since 2016, and a lot has changed in the last four years – both in the wider Rust ecosystem and at OneSignal. At OneSignal, we use Rust to write several bus...
-
10
Add some extra help to `cargo new` and invalid package names. #9098
-
14
Collaborator rust-highfive
-
9
Everything You’re Looking For It’s never been easier to connect with customers. 15 Minute Setup Our users are always shocked at how easy it is to get star...
-
14
Conversation Copy link Contributor ...
-
3
Open Roles Positions we're hiring for today At OneSignal, Senior Engineers have the option of working remotely or in an office. In the United States, we currently support remote work in C...
-
6
Copy link Member flip1995 ...
-
4
Easiest way to implement Apple's new Live Activities feature👋 Hey Product Hunters! Ruby here, Principal Product Manager at OneSignal. We’re so excited for you to check out Live Activities! Here at OneSignal, we’ve been the market lead...
-
7
Grow Your Career at OneSignal Our mission is to democratize customer engagement for all businesses around the world and we’re looking for creative, self-driven people to help enhance our produ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK