Skip to content

Commit

Permalink
Prepare v0.3.4 release (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored Feb 18, 2023
1 parent c0fcab7 commit bf41b96
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
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

0 comments on commit bf41b96

Please sign in to comment.