Skip to content
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

Prepare v0.3.4 release #92

Merged
merged 2 commits into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion async-stream-impl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-stream-impl"
version = "0.3.3"
version = "0.3.4"
edition = "2018"
rust-version = "1.45"
license = "MIT"
Expand Down
5 changes: 5 additions & 0 deletions async-stream/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.3.4

* Improve support for `#[track_caller]` (#72)
* Reduce unsafe code (#77)

# 0.3.3

* Fix a bug where `yield` and `?` cannot be used on the same line (#66)
Expand Down
4 changes: 2 additions & 2 deletions async-stream/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "async-stream"
# When releasing to crates.io:
# - Update CHANGELOG.md
# - Create git tag
version = "0.3.3"
version = "0.3.4"
edition = "2018"
rust-version = "1.45"
license = "MIT"
Expand All @@ -12,7 +12,7 @@ description = "Asynchronous streams using async & await notation"
repository = "https://github.com/tokio-rs/async-stream"

[dependencies]
async-stream-impl = { version = "=0.3.3", path = "../async-stream-impl" }
async-stream-impl = { version = "=0.3.4", path = "../async-stream-impl" }
futures-core = "0.3"
pin-project-lite = "0.2"

Expand Down
19 changes: 5 additions & 14 deletions async-stream/tests/ui/yield_in_async.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,8 @@ error[E0727]: `async` generators are not yet supported
6 | yield 123;
| ^^^^^^^^^

error[E0271]: type mismatch resolving `<[static generator@$DIR/tests/ui/yield_in_async.rs:5:23: 7:10] as Generator<ResumeTy>>::Yield == ()`
--> tests/ui/yield_in_async.rs:5:23
|
5 | let f = async {
| _______________________^
6 | | yield 123;
7 | | };
| |_________^ expected `()`, found integer
|
note: required by a bound in `std::future::from_generator`
--> $RUST/core/src/future/mod.rs
|
| T: Generator<ResumeTy, Yield = ()>,
| ^^^^^^^^^^ required by this bound in `std::future::from_generator`
error[E0308]: mismatched types
--> tests/ui/yield_in_async.rs:6:19
|
6 | yield 123;
| ^^^ expected `()`, found integer