Skip to content

doc: Update std and extra crate docs - #7176

Closed
brson wants to merge 1 commit into
rust-lang:masterfrom
brson:stddoc
Closed

doc: Update std and extra crate docs#7176
brson wants to merge 1 commit into
rust-lang:masterfrom
brson:stddoc

Conversation

@brson

Copy link
Copy Markdown
Contributor

Fix a few inaccuracies and bring things more up to date.

Comment threadsrc/libstd/core.rc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think defining would work better than that define.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks for review.

Fix a few inaccuracies and bring things more up to date.
@kud1ing

Copy link
Copy Markdown

Do we want the Sqlite-bindings in extra?

@rkbodenner

Copy link
Copy Markdown
Contributor

Saw this PR after I'd submitted #7197, so I updated mine with your text changes (it adds a few more small fixes).

@brson

Copy link
Copy Markdown
ContributorAuthor

Ok closing this.

@kud1ing I don't want to pull in any new dependencies right now. Eventually I hope that extra gets broken up into individual packages, some of them granted 'supported' status, some not. Once we have that infrastructure we can start making guarantees about supported sqlite bindings, etc.

@brsonbrson closed this Jun 17, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 20, 2021
…r=llogiq
New lint: `unused_async`
changelog: Adds a lint, `unused_async`, which checks for async functions with no await statements
`unused_async` is a lint that reduces code smell and overhead by encouraging async functions to be refactored into synchronous functions.
Fixesrust-lang#7176
### Examples
```rust
async fn get_random_number() -> i64 {
4 // Chosen by fair dice roll. Guaranteed to be random.
}
```
Could be written as:
```rust
fn get_random_number() -> i64 {
4 // Chosen by fair dice roll. Guaranteed to be random.
}
```
Something like this, however, should **not** be caught by clippy:
```rust
#[async_trait]
trait AsyncTrait {
async fn foo();
}
struct Bar;
#[async_trait]
impl AsyncTrait for Bar {
async fn foo() {
println!("bar");
}
}
```
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
7176: Attribute completion r=matklad a=FlowerBOII
Solve rust-lang#7167.
I removed the optional args for the attributes ```deprecated```, ```must_use``` and ```should_panic```.
I also updated their respective tests.
Please let me know if I missed something.
Co-authored-by: FlowerBOII <42295129+FlowerBOII@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.

4 participants

@brson@kud1ing@rkbodenner@thestinger