You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft/2022-05-11-this-week-in-rust.md
+61-3Lines changed: 61 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,9 @@ and just ask the editors to select the category.
54
54
55
55
## Crate of the Week
56
56
57
-
<!-- COTW goes here -->
57
+
This week's crate is [enum\_dispatch](https://crates.io/crates/enum_dispatch), a proc-macro-attribute to replace dynamic dispatch with enum dispatch to gain performance.
58
+
59
+
Thanks to [David Mason](https://users.rust-lang.org/t/crate-of-the-week/2704/1059) for the suggestion!
58
60
59
61
[Please submit your suggestions and votes for next week][submit_crate]!
60
62
@@ -73,7 +75,57 @@ If you are a Rust project owner and are looking for contributors, please submit
73
75
74
76
## Updates from the Rust Project
75
77
76
-
<!-- Rust updates go here -->
78
+
377 pull requests were [merged in the last week][merged]
*[rustc + avr = ❤️❤️ back again](https://github.com/rust-lang/llvm-project/pull/139)
83
+
*[support tool lints with the `#[expect]` attribute](https://github.com/rust-lang/rust/pull/95542) (RFC [#2383](https://rust-lang.github.io/rfcs/2383-lint-reasons.html))
*[clippy: create lint against unexpectedly late drop for temporaries in match scrutinee expressions](https://github.com/rust-lang/rust/pull/94206)
121
+
*[clippy: fix `cast_lossless` to avoid warning on `usize` to `f64` conversion](https://github.com/rust-lang/rust-clippy/pull/8778)
122
+
*[clippy: ignore type aliases in `init_numbered_fields`](https://github.com/rust-lang/rust-clippy/pull/8780)
123
+
*[clippy: lint `empty_lint_after_outer_attr` on argumentless macros](https://github.com/rust-lang/rust-clippy/pull/8790)
124
+
*[clippy: move `only_used_in_recursion` to nursery](https://github.com/rust-lang/rust-clippy/pull/8783)
125
+
*[clippy: optionally allow `expect` and `unwrap` in tests](https://github.com/rust-lang/rust-clippy/pull/8802)
126
+
*[clippy: support negative ints in `manual_range_contains`](https://github.com/rust-lang/rust-clippy/pull/8763)
127
+
*[clippy: `identity_op` false positive in front of if](https://github.com/rust-lang/rust-clippy/pull/8730)
128
+
*[rustfmt: fix `wrap_comments` breaking up type links](https://github.com/rust-lang/rustfmt/pull/5262)
77
129
78
130
### Rust Compiler Performance Triage
79
131
@@ -215,7 +267,13 @@ They should be of the form:
215
267
216
268
# Quote of the Week
217
269
218
-
<!-- QOTW goes here -->
270
+
> At Cloudflare we have big Rust projects/teams and onboard new developers regularly.
271
+
>
272
+
> There is a learning curve. Rust is rigid and unforgiving, and noobs need assistance when the compiler says “no” (although error messages and Clippy do a good job for common mistakes).
273
+
>
274
+
> However, the big upside is that noobs can contribute safely to Rust projects. Rust limits severity of the damage an inexperienced programmer can cause. Once they manage to get the code to compile, it already has lots of correctness guarantees. “Bad” Rust code may just clone more than strictly necessary, or write 10 lines of code for something that has a helper method in the stdlib, but it won’t corrupt memory or blindly run the happy path without checking for errors. Rust prefers to be locally explicit, so it’s also easy to review.
275
+
276
+
– [Kornel.Lesiński on lobste.rs](https://lobste.rs/s/ksj3ii/rust_is_hard_yes_does_it_matter)
219
277
220
278
[Please submit quotes and vote for next week!](https://users.rust-lang.org/t/twir-quote-of-the-week/328)
0 commit comments