Skip to content

Commit 1968e1b

Browse files
committed
C/QotW and notable changes
1 parent ce15a8c commit 1968e1b

File tree

1 file changed

+111
-3
lines changed

1 file changed

+111
-3
lines changed

draft/2024-04-17-this-week-in-rust.md

Lines changed: 111 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ and just ask the editors to select the category.
4545

4646
## Crate of the Week
4747

48-
<!-- COTW goes here -->
48+
This week's crate is [venndb](https://crates.io/crates/venndb), an append-only memory DB whose tables can be build via a derive macro.
49+
50+
Thanks to [Glen De Cauwsemaecker](https://users.rust-lang.org/t/crate-of-the-week/2704/1303) for the self-suggestion!
4951

5052
[Please submit your suggestions and votes for next week][submit_crate]!
5153

@@ -95,7 +97,105 @@ If you are an event organizer hoping to expand the reach of your event, please s
9597

9698
## Updates from the Rust Project
9799

98-
<!-- Rust updates go here -->
100+
430 pull requests were [merged in the last week][merged]
101+
102+
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2024-04-09..2024-04-16
103+
104+
* [add support for Arm64EC inline assembly (as unstable)](https://github.com/rust-lang/rust/pull/123507)
105+
* [`statx` probe: `ENOSYS` might come from a faulty FUSE driver](https://github.com/rust-lang/rust/pull/123928)
106+
* [account for trait/impl difference when suggesting changing argument from ref to mut ref](https://github.com/rust-lang/rust/pull/123523)
107+
* [add `REDUNDANT_LIFETIMES` lint to detect lifetimes which are semantically redundant](https://github.com/rust-lang/rust/pull/118391)
108+
* [add `unsafe` to two functions with safety invariants](https://github.com/rust-lang/rust/pull/123867)
109+
* [add const generics support for pattern types](https://github.com/rust-lang/rust/pull/123689)
110+
* [add support to intrinsics fallback body](https://github.com/rust-lang/rust/pull/123659)
111+
* [async closure coroutine by move body MirPass refactoring](https://github.com/rust-lang/rust/pull/123668)
112+
* [avoid a panic in `set_output_capture` in the default panic handler](https://github.com/rust-lang/rust/pull/122882)
113+
* [be more specific when flagging imports as redundant due to the extern prelude](https://github.com/rust-lang/rust/pull/122954)
114+
* [call `lower_const_param` instead of duplicating the code](https://github.com/rust-lang/rust/pull/123738)
115+
* [call the panic hook for non-unwind panics in proc-macros](https://github.com/rust-lang/rust/pull/123825)
116+
* [detect borrow checker errors where `.clone()` would be an appropriate user action](https://github.com/rust-lang/rust/pull/122603)
117+
* [disable Ctrl-C handling on WASM](https://github.com/rust-lang/rust/pull/123788)
118+
* [discard overflow obligations in `impl_may_apply`](https://github.com/rust-lang/rust/pull/123618)
119+
* [do not add prolog for variadic naked functions](https://github.com/rust-lang/rust/pull/123249)
120+
* [do not allocate for ZST ThinBox (attempt 2 using `const_allocate`)](https://github.com/rust-lang/rust/pull/123254)
121+
* [don't delay a bug if we suggest adding a semicolon to the RHS of an assign operator](https://github.com/rust-lang/rust/pull/123736)
122+
* [don't do coroutine-closure-specific upvar analysis if tainted by errors](https://github.com/rust-lang/rust/pull/123834)
123+
* [don't even parse an intrinsic unless the feature gate is enabled](https://github.com/rust-lang/rust/pull/123603)
124+
* [don't leak unnameable types in `-> _` recover](https://github.com/rust-lang/rust/pull/123931)
125+
* [don't rely on upvars being assigned just because coroutine-closure kind is assigned](https://github.com/rust-lang/rust/pull/123662)
126+
* [fix UB in LLVM FFI when passing zero or \>1 bundle](https://github.com/rust-lang/rust/pull/123941)
127+
* [fix invalid silencing of parsing error](https://github.com/rust-lang/rust/pull/123223)
128+
* [fix various bugs in `ty_kind_suggestion`](https://github.com/rust-lang/rust/pull/123924)
129+
* [generic associated consts: Check regions earlier when comparing impl with trait item def](https://github.com/rust-lang/rust/pull/123898)
130+
* [improve diagnostic by suggesting to remove visibility qualifier](https://github.com/rust-lang/rust/pull/123841)
131+
* [just use `type_dependent_def_id` to figure out what the method is for an expr](https://github.com/rust-lang/rust/pull/123989)
132+
* [linker flavors next steps: linker features](https://github.com/rust-lang/rust/pull/123656)
133+
* [linker: avoid some allocations in search directory iteration](https://github.com/rust-lang/rust/pull/123827)
134+
* [linker: remove laziness and caching from native search directory walks](https://github.com/rust-lang/rust/pull/123854)
135+
* [make `PlaceRef` and `OperandValue::Ref` share a common `PlaceValue` type](https://github.com/rust-lang/rust/pull/123775)
136+
* [make the computation of `coroutine_captures_by_ref_ty` more sophisticated](https://github.com/rust-lang/rust/pull/123660)
137+
* [only assert for child/parent projection compatibility AFTER checking that theyre coming from the same place](https://github.com/rust-lang/rust/pull/123701)
138+
* [only collect mono items from reachable blocks](https://github.com/rust-lang/rust/pull/123272)
139+
* [openBSD fix long socket addresses](https://github.com/rust-lang/rust/pull/123779)
140+
* [panic on overflow in `BorrowedCursor::advance`](https://github.com/rust-lang/rust/pull/123806)
141+
* [propagate temporary lifetime extension into if and match](https://github.com/rust-lang/rust/pull/121346)
142+
* [provide suggestion to dereference closure tail if appropriate](https://github.com/rust-lang/rust/pull/122213)
143+
* [refactor `panic_unwind/seh.rs` pointer use](https://github.com/rust-lang/rust/pull/123490)
144+
* [remove `From` impls for unstable types that break inference](https://github.com/rust-lang/rust/pull/123830)
145+
* [rework ptr-to-ref conversion suggestion for method calls](https://github.com/rust-lang/rust/pull/123007)
146+
* [set target-abi module flag for RISC-V targets](https://github.com/rust-lang/rust/pull/123612)
147+
* [skip `unused_parens` report for `Paren(Path(..))` in macro](https://github.com/rust-lang/rust/pull/123314)
148+
* [stop making any assumption about the projections applied to the upvars in the `ByMoveBody` pass](https://github.com/rust-lang/rust/pull/123658)
149+
* [stop using `HirId` for fn-like parents since closures are not `OwnerNode`s](https://github.com/rust-lang/rust/pull/123804)
150+
* [stop using `PolyTraitRef` for closure/coroutine predicates already instantiated w placeholders](https://github.com/rust-lang/rust/pull/123900)
151+
* [store all args in the unsupported Command implementation](https://github.com/rust-lang/rust/pull/123633)
152+
* [suppress `let else` suggestion for uninitialized refutable `let`s](https://github.com/rust-lang/rust/pull/123847)
153+
* [tweak value suggestions in `borrowck` and `hir_analysis`](https://github.com/rust-lang/rust/pull/123704)
154+
* [typeck: fix `?` suggestion span](https://github.com/rust-lang/rust/pull/123654)
155+
* [use `fn` ptr signature instead of `{closure@..}` in infer error](https://github.com/rust-lang/rust/pull/123703)
156+
* [use `suggest_impl_trait` in return type suggestion on type error](https://github.com/rust-lang/rust/pull/123761)
157+
* [miri: `MIRI_REPLACE_LIBRS_IF_NOT_TEST`: also apply to crates.io crates](https://github.com/rust-lang/miri/pull/3457)
158+
* [miri: add some basic support for GetFullPathNameW](https://github.com/rust-lang/miri/pull/3466)
159+
* [miri: fix error display for './miri run --dep'](https://github.com/rust-lang/miri/pull/3465)
160+
* [miri: handle Miri sysroot entirely outside the Miri driver](https://github.com/rust-lang/miri/pull/3411)
161+
* [miri: make `split_simd_to_128bit_chunks` take only one operand](https://github.com/rust-lang/miri/pull/3462)
162+
* [miri on Windows: run .CRT$XLB linker section on thread-end](https://github.com/rust-lang/rust/pull/123937)
163+
* [miri: windows: add basic support for FormatMessageW](https://github.com/rust-lang/miri/pull/3464)
164+
* [stabilize --json `unused-externs(-silent)`](https://github.com/rust-lang/rust/pull/115717)
165+
* [stabilize `(const_)slice_ptr_len` and `(const_)slice_ptr_is_empty_nonnull`](https://github.com/rust-lang/rust/pull/123868)
166+
* [stabilize `cstr_count_bytes`](https://github.com/rust-lang/rust/pull/123661)
167+
* [implement `FromIterator` for `(impl Default + Extend, impl Default + Extend)`](https://github.com/rust-lang/rust/pull/107462)
168+
* [re-enable `has_thread_local` for i686-msvc](https://github.com/rust-lang/rust/pull/123257)
169+
* [`std::net`: TcpListener shrinks the backlog argument to 32 for Haiku](https://github.com/rust-lang/rust/pull/123857)
170+
* [show `mode_t` as octal in `std::fs` Debug impls](https://github.com/rust-lang/rust/pull/122812)
171+
* [add `A: 'static` bound for `Arc/Rc::pin_in`](https://github.com/rust-lang/rust/pull/120092)
172+
* [`f16` and `f128` step 4: basic library support](https://github.com/rust-lang/rust/pull/122470)
173+
* [add a `Debug` impl and some basic functions to `f16` and `f128`](https://github.com/rust-lang/rust/pull/123783)
174+
* [specialize many implementations of `Read::read_buf_exact`](https://github.com/rust-lang/rust/pull/122393)
175+
* [windows: set main thread name without re-encoding](https://github.com/rust-lang/rust/pull/123534)
176+
* [cargo: make sure to also wrap the initial `-vV` invocation](https://github.com/rust-lang/cargo/pull/13659)
177+
* [cargo resolve: Respect '--ignore-rust-version'](https://github.com/rust-lang/cargo/pull/13738)
178+
* [cargo resolve: Fallback to 'rustc -V' for MSRV resolving](https://github.com/rust-lang/cargo/pull/13743)
179+
* [cargo fix: dont apply same suggestion twice](https://github.com/rust-lang/cargo/pull/13728)
180+
* [cargo package: Normalize paths in `Cargo.toml`](https://github.com/rust-lang/cargo/pull/13729)
181+
* [cargo test: don't compress test registry crates](https://github.com/rust-lang/cargo/pull/13744)
182+
* [rustdoc: correctly handle inlining of doc hidden foreign items](https://github.com/rust-lang/rust/pull/123459)
183+
* [rustdoc: check redundant explicit links with correct itemid](https://github.com/rust-lang/rust/pull/123905)
184+
* [rustdoc: point at span in `include_str!`-ed md file](https://github.com/rust-lang/rust/pull/123204)
185+
* [rustdoc: reduce per-page HTML overhead](https://github.com/rust-lang/rust/pull/123706)
186+
* [clippy: `module_name_repetition` Recognize common prepositions](https://github.com/rust-lang/rust-clippy/pull/12573)
187+
* [clippy: fix: incorrect suggestions when `.then` and `.then_some` is used](https://github.com/rust-lang/rust-clippy/pull/12094)
188+
* [clippy: pin `remark-lint-maximum-line-length` version](https://github.com/rust-lang/rust-clippy/pull/12668)
189+
* [clippy: turn `duplicated_attributes` into a late lint](https://github.com/rust-lang/rust-clippy/pull/12646)
190+
* [clippy: use `check_attributes` in doc lints](https://github.com/rust-lang/rust-clippy/pull/12635)
191+
* [rust-analyzer: add static and const highlighting token types](https://github.com/rust-lang/rust-analyzer/pull/17074)
192+
* [rust-analyzer: better inline preview for postfix completion](https://github.com/rust-lang/rust-analyzer/pull/17073)
193+
* [rust-analyzer: wrap/Unwrap `cfg_attr`](https://github.com/rust-lang/rust-analyzer/pull/16813)
194+
* [rust-analyzer: VFS should not confuse paths with source roots that have the same prefix](https://github.com/rust-lang/rust-analyzer/pull/17019)
195+
* [rust-analyzer: fix `impl Trait<Self>` causing stack overflows](https://github.com/rust-lang/rust-analyzer/pull/16877)
196+
* [rust-analyzer: fix inlay hint resolution being broken](https://github.com/rust-lang/rust-analyzer/pull/17063)
197+
* [rust-analyzer: fix: support auto-closing for triple backticks](https://github.com/rust-lang/rust-analyzer/pull/17051)
198+
* [rust-analyzer: run cargo test per workspace in the test explorer](https://github.com/rust-lang/rust-analyzer/pull/17056)
99199

100200
### Rust Compiler Performance Triage
101201

@@ -309,7 +409,15 @@ Please see the latest [Who's Hiring thread on r/rust](INSERT_LINK_HERE)
309409

310410
# Quote of the Week
311411

312-
<!-- QOTW goes here -->
412+
> There is absolutely no way I can imagine that `Option` is causing that error. That'd be like turning on the "Hide Taskbar" setting causing your GPU to catch fire.
413+
>
414+
> [...]
415+
>
416+
> If it's not any of those, consider an exorcist because your machine *might* be haunted.
417+
418+
[Daniel Keep on rust-users](https://users.rust-lang.org/t/access-is-denied-os-error-5/109515/2)
419+
420+
Thanks to [Hayden Brown](https://users.rust-lang.org/t/twir-quote-of-the-week/328/1561) for the suggestion!
313421

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

0 commit comments

Comments
 (0)