Skip to content

Commit 50a7183

Browse files
authored
Merge pull request #1228 from llogiq/twir-337
C/QotW + notable changes
2 parents 8b41a22 + 356bfbe commit 50a7183

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed

drafts/2020-05-05-this-week-in-rust.md

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ and Issues in Real-World Rust Programs](https://cseweb.ucsd.edu/~yiying/RustStud
4949

5050
# Crate of the Week
5151

52-
This week's crate is [coercible_errors](https://crates.io/crates/coercible_errors), a library that allows generic trait implementations to omit the size cost of `Result::Err` if errors never happen.
52+
This week's crate is [WinRT-rs](https://github.com/microsoft/winrt-rs), Microsoft™'s official WinRT API for Rust.
5353

54-
Thanks to [Zac Burns](https://users.rust-lang.org/t/crate-of-the-week/2704/763) for the suggestion!
54+
Thanks to [JLalu](https://users.rust-lang.org/t/crate-of-the-week/2704/767) for the suggestion!
5555

5656
[Submit your suggestions and votes for next week][submit_crate]!
5757

@@ -70,36 +70,33 @@ If you are a Rust project owner and are looking for contributors, please submit
7070

7171
# Updates from Rust Core
7272

73-
367 pull requests were [merged in the last week][merged]
74-
75-
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2020-04-20..2020-04-27
76-
77-
* [don't run various MIR optimizations at mir-opt-level=0](https://github.com/rust-lang/rust/pull/70073)
78-
* [replace thread_local with generator resume arguments in `box_region`](https://github.com/rust-lang/rust/pull/71554)
79-
* [fix `-Zast-json` to output correct JSON form](https://github.com/rust-lang/rust/pull/71284)
80-
* [allow wasm32 compilation of `librustc_data_structures/profiling.rs`](https://github.com/rust-lang/rust/pull/71369)
81-
* [`proc_macro::is_available()`](https://github.com/rust-lang/rust/pull/71400)
82-
* [proc_macro: stabilize `Span::resolved_at` and `Span::located_at`](https://github.com/rust-lang/rust/pull/69041)
83-
* [attempt to recover perf by removing `exports_all_green`](https://github.com/rust-lang/rust/pull/71267)
84-
* [chalk: use `FxHashMap`/`FxHashSet` and add well-formed clause for tuples](https://github.com/rust-lang/chalk/pull/411)
85-
* [ConstProp: use a `BitSet<Local>` instead of `IndexVec<Local, bool>`](https://github.com/rust-lang/rust/pull/71312)
86-
* [fix span of `while` (`let`) expressions after lowering](https://github.com/rust-lang/rust/pull/71494)
87-
* [Miri Frame: use `mir::Location` to represent position in function](https://github.com/rust-lang/rust/pull/71475)
88-
* [add `BinaryHeap::retain`](https://github.com/rust-lang/rust/pull/71485)
89-
* [add a function to turn `Box<T>` into `Box<[T]>`](https://github.com/rust-lang/rust/pull/71421)
90-
* [add missing `Send` and `Sync` impls for linked list `Cursor` and `CursorMut`](https://github.com/rust-lang/rust/pull/71548)
91-
* [implement `BitOr` and `BitOrAssign` for the `NonZero` integer types](https://github.com/rust-lang/rust/pull/69813)
92-
* [stabilize most common subset of `alloc_layout_extras`](https://github.com/rust-lang/rust/pull/69362)
93-
* [stabilize `Span::mixed_site`](https://github.com/rust-lang/rust/pull/68716)
94-
* [stabilize `BTreeMap::remove_entry`](https://github.com/rust-lang/rust/pull/70712)
95-
* [futures: introduce `ready_chunks` adaptor](https://github.com/rust-lang/futures-rs/pull/2123)
96-
* [backport to 0.1: Avoid starvation from `FuturesUnordered::poll_next`](https://github.com/rust-lang/futures-rs/pull/2122)
97-
* [futures: add `AsyncWriteExt::write_all_vectored` utility](https://github.com/rust-lang/futures-rs/pull/1741)
98-
* [hashbrown: future-proof specialization code](https://github.com/rust-lang/hashbrown/pull/147)
99-
* [hashbrown: remove unsound use of specialization](https://github.com/rust-lang/hashbrown/pull/154)
100-
* [cargo: fix warning for `resolve` mismatch in workspace](https://github.com/rust-lang/cargo/pull/8169)
101-
* [cargo: add `resolver` opt-in for new feature resolver](https://github.com/rust-lang/cargo/pull/8129)
102-
* [rustdoc: replace big JS dict with JSON parsing](https://github.com/rust-lang/rust/pull/71250)
73+
372 pull requests were [merged in the last week][merged]
74+
75+
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2020-04-27..2020-05-04
76+
77+
* implement RFC [#2523](https://rust-lang.github.io/rfcs/2523-cfg-path-version.html), [`#[cfg(version(..))]`](https://github.com/rust-lang/rust/pull/71314)
78+
* [have the per-query caches store the results on arenas](https://github.com/rust-lang/rust/pull/70674)
79+
* [avoid duplicating code for each query](https://github.com/rust-lang/rust/pull/69808)
80+
* [forbid `dyn Trait` in patterns](https://github.com/rust-lang/rust/pull/71038)
81+
* [fix wrong argument in autoderef process](https://github.com/rust-lang/rust/pull/71627)
82+
* [suggest `into` instead of `try_into` if possible with int types](https://github.com/rust-lang/rust/pull/71617)
83+
* [tweak some suggestions in `rustc_resolve`](https://github.com/rust-lang/rust/pull/71438)
84+
* [add message for resolution failure because wrong namespace](https://github.com/rust-lang/rust/pull/71419)
85+
* [point at the return type on `.into()` failure caused by `?`](https://github.com/rust-lang/rust/pull/71409)
86+
* [suggest `;` or assignment to drop borrows in tail exprs](https://github.com/rust-lang/rust/pull/71217)
87+
* [on type mismatch involving associated type, suggest constraint](https://github.com/rust-lang/rust/pull/71108)
88+
* [minimize parameter of `coerce_borrowed_pointer`](https://github.com/rust-lang/rust/pull/71524)
89+
* [remove some `Vec` allocations to improve performance](https://github.com/rust-lang/rust/pull/71268)
90+
* [allow `Unreachable` terminators unconditionally in const-checking](https://github.com/rust-lang/rust/pull/71691)
91+
* [allow `Downcast` projections unconditionally in const-checking](https://github.com/rust-lang/rust/pull/71688)
92+
* [added MIR constant propagation of Scalars into function call arguments](https://github.com/rust-lang/rust/pull/71697)
93+
* [Miri: unleash all feature gates](https://github.com/rust-lang/rust/pull/71631)
94+
* [use existing framework for backward dataflow analyses](https://github.com/rust-lang/rust/pull/71006)
95+
* [add Read/Write::can_read/write_vectored](https://github.com/rust-lang/rust/pull/67841)
96+
* [add `RefCell::take`](https://github.com/rust-lang/rust/pull/71398)
97+
* [`slice::fill`: use `T` instead of generic arg](https://github.com/rust-lang/rust/pull/71165)
98+
* [`Vec` `drop` and `truncate`: drop using raw slice `*mut [T]`](https://github.com/rust-lang/rust/pull/71148)
99+
* [hashbrown: mark `RawTable::par_iter` `unsafe`](https://github.com/rust-lang/hashbrown/pull/157)
103100

104101
## Approved RFCs
105102

@@ -167,11 +164,12 @@ Email the [Rust Community Team][community] for access.
167164

168165
# Quote of the Week
169166

170-
> Vecs in Rust in general, are crazy fast; faster than I can replicate in C. Amazing.
167+
> I love Rust like I love Dark Souls.
168+
> It's difficult, but fair. I can not praise enough the software developers that realize proper errors are vastly superior to extensive docs.
171169
172-
[Jonathan Eisenzopf on rust-users](https://users.rust-lang.org/t/very-fast-initialization-of-a-vec-of-vecs/41301/17)
170+
[seph-reed on Hacker News](https://news.ycombinator.com/item?id=23032636)
173171

174-
Thanks to [Louis Cloete](https://users.rust-lang.org/t/twir-quote-of-the-week/328/857) for the suggestions!
172+
Thanks to [Armando Pérez Marqués](https://users.rust-lang.org/t/twir-quote-of-the-week/328/864) for the suggestions!
175173

176174
[Please submit quotes and vote for next week!](https://users.rust-lang.org/t/twir-quote-of-the-week/328)
177175

0 commit comments

Comments
 (0)