Skip to content

Commit 3a5912f

Browse files
authored
Merge pull request #1378 from llogiq/twir-348
C/QotW + notable changes
2 parents e09a28c + 3608918 commit 3a5912f

File tree

1 file changed

+31
-26
lines changed

1 file changed

+31
-26
lines changed

draft/2020-07-21-this-week-in-rust.md

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Check out [this week's *This Week in Rust Podcast*](https://rustacean-station.or
6464

6565
# Crate of the Week
6666

67-
This week's crate is [nnnoiseless](https://jneem.github.io/nnnoiseless), a filter for audio noise removal ported from C.
67+
This week's crate is [pre](https://github.com/aticu/pre), a library for declaring and checking the assurance of precondition, useful for unsafe functions.
6868

69-
Thanks to [mmmmib](https://users.rust-lang.org/t/crate-of-the-week/2704/790) for the suggestion!
69+
Thanks to [Zicklag](https://users.rust-lang.org/t/crate-of-the-week/2704/792) for the suggestion!
7070

7171
[Submit your suggestions and votes for next week][submit_crate]!
7272

@@ -91,24 +91,33 @@ If you are a Rust project owner and are looking for contributors, please submit
9191

9292
# Updates from Rust Core
9393

94-
273 pull requests were [merged in the last week][merged]
95-
96-
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2020-07-06..2020-07-13
97-
98-
* [shrink `ParamEnv` to 16 bytes](https://github.com/rust-lang/rust/pull/73978)
99-
* [stabilize const `mem::forget`](https://github.com/rust-lang/rust/pull/73887)
100-
* [typeck: adding type information to projection](https://github.com/rust-lang/rust/pull/73870)
101-
* [clippy: some accuracy lints for floating point operations](https://github.com/rust-lang/rust-clippy/pull/5443)
102-
* [correctly mark the ending span of a match arm](https://github.com/rust-lang/rust/pull/74125)
103-
* [only allow `repr(i128/u128)` on enum](https://github.com/rust-lang/rust/pull/74109)
104-
* [hide `&mut self` methods from Deref in sidebar if there are no `DerefMut` impl for the type](https://github.com/rust-lang/rust/pull/74107)
105-
* [only add CFGuard on `windows-msvc` targets](https://github.com/rust-lang/rust/pull/74103)
106-
* [add `VecDeque::range*` methods](https://github.com/rust-lang/rust/pull/74099)
107-
* [add `read_exact_at` and `write_all_at` to WASI's `FileExt`](https://github.com/rust-lang/rust/pull/74076)
108-
* [clippy: new lint: `match_like_matches_macro`](https://github.com/rust-lang/rust-clippy/pull/5769)
109-
* [Optimize `is_ascii` for `str` and `[u8]`](https://github.com/rust-lang/rust/pull/74066)
110-
* [arch: added `f32` and `f64` unaligned stores and loads from avx512f set](https://github.com/rust-lang/stdarch/pull/873)
111-
* [hashbrown: add `HashSet::drain_filter` method](https://github.com/rust-lang/hashbrown/pull/179)
94+
394 pull requests were [merged in the last week][merged]
95+
96+
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2020-07-13..2020-07-20
97+
98+
* [do not try fetching the ancestors of errored trait impls](https://github.com/rust-lang/rust/pull/74516)
99+
* [only skip impls of foreign unstable traits](https://github.com/rust-lang/rust/pull/74534)
100+
* [don't assign `()` to `!` MIR locals](https://github.com/rust-lang/rust/pull/74411)
101+
* [some `Symbol` related improvements](https://github.com/rust-lang/rust/pull/74357)
102+
* [use `ArrayVec` in `SparseBitSet`](https://github.com/rust-lang/rust/pull/74310)
103+
* [change `SymbolName::name` to a `&str`](https://github.com/rust-lang/rust/pull/74214)
104+
* [enforce the static symbol order](https://github.com/rust-lang/rust/pull/74203)
105+
* [reduce the amount of interning and `layout_of` calls in const eval](https://github.com/rust-lang/rust/pull/74202)
106+
* [add `Arguments::as_str()`](https://github.com/rust-lang/rust/pull/74056)
107+
* [`impl Index<RangeFrom> for CStr`](https://github.com/rust-lang/rust/pull/74021)
108+
* [add (unchecked) indexing methods to raw (and NonNull) slices](https://github.com/rust-lang/rust/pull/73986)
109+
* [make some `Option` methods const](https://github.com/rust-lang/rust/pull/73930)
110+
* [use `step_unchecked` more liberally in range iter impls](https://github.com/rust-lang/rust/pull/73490)
111+
* [add `core::task::ready!` macro](https://github.com/rust-lang/rust/pull/70817)
112+
* [backtrace: use noop backends on Miri](https://github.com/rust-lang/backtrace-rs/pull/360)
113+
* [stdarch: update and revamp wasm32 SIMD intrinsics](https://github.com/rust-lang/stdarch/pull/874)
114+
* [stdarch: implement AVX512f floating point comparisons](https://github.com/rust-lang/stdarch/pull/869)
115+
* [stdarch: constify all x86 `rustc_args_required_const` intrinsics](https://github.com/rust-lang/stdarch/pull/876)
116+
* [make `unreachable_unchecked` a const fn](https://github.com/rust-lang/rust/pull/74459)
117+
* [cargo: fix freshness checks for build scripts on renamed dirs](https://github.com/rust-lang/cargo/pull/8497)
118+
* [crates.io: generate API tokens with a secure RNG, store hashed](https://github.com/rust-lang/crates.io/pull/2637)
119+
* [add Ayu theme to rustdoc](https://github.com/rust-lang/rust/pull/71237)
120+
* [clippy: `unnecessary_sort_by`: avoid linting if key borrows](https://github.com/rust-lang/rust-clippy/pull/5756)
112121

113122
## Rust Compiler Performance Triage
114123

@@ -183,13 +192,9 @@ Email the [Rust Community Team][community] for access.
183192

184193
# Quote of the Week
185194

186-
> Ownership in Rust is entirely a type system fiction.
195+
> `unsafe` Rust is all about flirting with UB but never giving in.
187196
188-
— dodomorandi
189-
190-
> I'm not sure what is meant there. "ownership" in many languages is a very real thing to me.
191-
192-
– and [ZiCog on rust-users](https://users.rust-lang.org/t/twir-quote-of-the-week/328/900)
197+
[Ralf Jung on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/136281-t-lang.2Fwg-unsafe-code-guidelines/topic/Language.20UB.20vs.20library.20UB/near/204212193)
193198

194199
Thanks to [Stephan Sokolow](https://users.rust-lang.org/t/twir-quote-of-the-week/328/903) for the suggestions!
195200

0 commit comments

Comments
 (0)