Skip to content

Commit d245f7e

Browse files
authored
Merge pull request #1300 from llogiq/twir-342
C/QotW + notable changes
2 parents 2da3b2d + 5e6351b commit d245f7e

File tree

1 file changed

+31
-34
lines changed

1 file changed

+31
-34
lines changed

draft/2020-06-09-this-week-in-rust.md

+31-34
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ Check out [this week's *This Week in Rust Podcast*](https://rustacean-station.or
5454

5555
# Crate of the Week
5656

57-
This week's crate is [jql](https://github.com/yamafaktory/jql), a JSON Query Language CLI tool.
57+
This week's crate is [cargo-spellcheck](https://github.com/drahnr/cargo-spellcheck), a cargo subcommand to spell-check your docs.
5858

59-
Thanks to [Davy Duperron](https://users.rust-lang.org/t/crate-of-the-week/2704/775) for the suggestion!
59+
Thanks to [Bernhard Schuster](https://users.rust-lang.org/t/crate-of-the-week/2704/777) for the suggestion!
6060

6161
[Submit your suggestions and votes for next week][submit_crate]!
6262

@@ -81,38 +81,35 @@ If you are a Rust project owner and are looking for contributors, please submit
8181

8282
# Updates from Rust Core
8383

84-
442 pull requests were [merged in the last week][merged]
84+
350 pull requests were [merged in the last week][merged]
8585

86-
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2020-05-25..2020-06-01
86+
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2020-06-01..2020-06-08
8787

88-
* [implement unsafe blocks in unsafe fn](https://github.com/rust-lang/rust/pull/71862) (RFC [#2585](https://rust-lang.github.io/rfcs/2585-unsafe-block-in-unsafe-fn.html))
89-
* [exhaustiveness checking: work around type normalization issues](https://github.com/rust-lang/rust/pull/72506)
90-
* [suggest using `std::mem::drop` function instead of explicit destructor call](https://github.com/rust-lang/rust/pull/72383)
91-
* [add a lint against references to packed fields](https://github.com/rust-lang/rust/pull/72270)
88+
* [InstCombine: don't optimize `&mut *x` into `x`](https://github.com/rust-lang/rust/pull/72820)
89+
* [add `-Z span-debug` to allow for easier debugging of proc macros](https://github.com/rust-lang/rust/pull/72799)
9290
* [avoid setting wrong obligation cause span of associated type mismatch](https://github.com/rust-lang/rust/pull/72807)
93-
* [account for trailing comma when suggesting `where` clauses](https://github.com/rust-lang/rust/pull/72715)
94-
* [fix diagnostics for `@ ..` binding pattern in tuples and tuple structs](https://github.com/rust-lang/rust/pull/72677)
95-
* [chalk: request hidden opaque types lazily](https://github.com/rust-lang/chalk/pull/478)
96-
* [miri: synchronization primitive cleanup](https://github.com/rust-lang/miri/pull/1441)
97-
* [`from_u32_unchecked`: check validity, and fix UB in Wtf8](https://github.com/rust-lang/rust/pull/72683)
98-
* [implement `total_cmp` for `f32`, `f64`](https://github.com/rust-lang/rust/pull/72568)
99-
* [override `Box::<[T]>::clone_from`](https://github.com/rust-lang/rust/pull/72499)
100-
* [add `Extend::`{`extend_one`, `extend_reserve`}](https://github.com/rust-lang/rust/pull/72162)
101-
* [make pointer offset methods/intrinsics const](https://github.com/rust-lang/rust/pull/71500)
102-
* [`impl From<[T; N]> for Box<[T]>`](https://github.com/rust-lang/rust/pull/71095)
103-
* [stabilization of `weak-into-raw`](https://github.com/rust-lang/rust/pull/72288)
104-
* [resolve UB in Arc/Weak interaction, part 2](https://github.com/rust-lang/rust/pull/72533)
105-
* [stabilize `str_strip` feature](https://github.com/rust-lang/rust/pull/72466)
106-
* [`impl Step for char` (make `Range*<char>` iterable)](https://github.com/rust-lang/rust/pull/72413)
107-
* [add `Peekable::next_if`](https://github.com/rust-lang/rust/pull/72310)
108-
* [various minor improvements to `Ipv6Addr::Display`](https://github.com/rust-lang/rust/pull/72407)
109-
* [`SocketAddr` and friends now correctly pad its content](https://github.com/rust-lang/rust/pull/72398)
110-
* [implement PartialOrd and Ord for SocketAddr*](https://github.com/rust-lang/rust/pull/72239)
111-
* [tweak and stabilize `Atomic`N`::fetch_update`](https://github.com/rust-lang/rust/pull/71843)
112-
* [stabilize `Atomic`N`::fetch_`{`min`, `max`}](https://github.com/rust-lang/rust/pull/72324)
113-
* [stdarch: add 64 bit integer AVX512f comparisons and the intrinsics needed to test them](https://github.com/rust-lang/stdarch/pull/856)
114-
* [stdarch: add 64 bit AVX512f le and ge comparisons](https://github.com/rust-lang/stdarch/pull/861)
115-
* [libm: use macros for more division/array checks](https://github.com/rust-lang/libm/pull/244)
91+
* [be more careful around `ty::Error` in generators](https://github.com/rust-lang/rust/pull/72764)
92+
* [fulfill: try using `SmallVec` or `Box` for `stalled_on`](https://github.com/rust-lang/rust/pull/72776)
93+
* [`impl AsRef<[T]> for vec::IntoIter<T>`](https://github.com/rust-lang/rust/pull/72583)
94+
* [chalk: get ready for the first publish](https://github.com/rust-lang/chalk/pull/483)
95+
* [free `default()` forwarding to `Default::default()`](https://github.com/rust-lang/rust/pull/73001)
96+
* [stabilize `std::io::Buf{Reader, Writer}::capacity`](https://github.com/rust-lang/rust/pull/72924)
97+
* [add associated consts `MIN`/`MAX` for `Wrapping<Int>`](https://github.com/rust-lang/rust/pull/72891)
98+
* [de-promote Duration::from_secs](https://github.com/rust-lang/rust/pull/71796)
99+
* [compiler-builtins: manually patch ret instruction for LVI](https://github.com/rust-lang/compiler-builtins/pull/359)
100+
* [cargo: add environment variables to identify the binary and crate name](https://github.com/rust-lang/cargo/pull/8270)
101+
* [cargo: allow Windows dylibs without dll suffix](https://github.com/rust-lang/cargo/pull/8310)
102+
* [cargo: better error message when passing in relative path to `Workspace::new`](https://github.com/rust-lang/cargo/pull/8321)
103+
* [cargo: don't hash executable filenames on apple platforms](https://github.com/rust-lang/cargo/pull/8329)
104+
* [cargo: support `{prefix}` and `{lowerprefix}` markers in `config.json` `dl` key](https://github.com/rust-lang/cargo/pull/8267)
105+
* [cargo: warn if using hash in git URL](https://github.com/rust-lang/cargo/pull/8297)
106+
* [cargo: reset lockfile information between resolutions](https://github.com/rust-lang/cargo/pull/8274)
107+
* [crates.io: fix issue where crates.io allowed the plus sign in crate names](https://github.com/rust-lang/crates.io/pull/2551)
108+
* [docs.rs: print a backtrace for crates which fail to build](https://github.com/rust-lang/docs.rs/pull/823)
109+
* [rustfmt: pick up comments between visibility modifier and item name](https://github.com/rust-lang/rustfmt/pull/4239)
110+
* [rustfmt: preserve Markdown line breaks in inner and outer block doc comments](https://github.com/rust-lang/rustfmt/pull/4233)
111+
* [rustfmt: use rewrite buffer to determine if comment should be on a newline](https://github.com/rust-lang/rustfmt/pull/4229)
112+
* [rustfmt: feat: conditionally allow unstable opts on stable/beta](https://github.com/rust-lang/rustfmt/pull/4228)
116113

117114
## Rust Compiler Performance Triage
118115

@@ -178,11 +175,11 @@ Email the [Rust Community Team][community] for access.
178175

179176
# Quote of the Week
180177

181-
> Rust enables belligerent refactoring – making dramatic changes and then working with the compiler to bring the project back to a working state.
178+
> You don't declare lifetimes. Lifetimes come from the shape of your code, so to change what the lifetimes are, you must change the shape of the code.
182179
183-
[Pankaj Chaudhary on Knoldus Blog](https://blog.knoldus.com/some-extensive-projects-working-with-rust)
180+
[Alice Ryhl on rust-users](https://users.rust-lang.org/t/lifetime-of-a-returned-iterator/43732/2)
184181

185-
Thanks to [Maxim Vorobjov](https://users.rust-lang.org/t/twir-quote-of-the-week/328/880) for the suggestions!
182+
Thanks to [RustyYato](https://users.rust-lang.org/t/twir-quote-of-the-week/328/883) for the suggestions!
186183

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

0 commit comments

Comments
 (0)