Skip to content

Commit 4fe0611

Browse files
authored
Merge branch 'master' into patch-2
2 parents 98dc2af + 70b1327 commit 4fe0611

File tree

1 file changed

+48
-51
lines changed

1 file changed

+48
-51
lines changed

drafts/2019-11-26-this-week-in-rust.md

Lines changed: 48 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ If you find any errors in this week's issue, [please submit a PR](https://github
2020

2121
Find all #Rust2020 posts at [Read Rust](https://readrust.net/rust-2020/).
2222

23+
[Building a Rust Driver for PineTime’s Touch Controller](https://medium.com/@ly.lee/building-a-rust-driver-for-pinetimes-touch-controller-cbc1a5d5d3e9?source=friends_link&sk=d8cf73fc943d9c0e960627d768f309cb).
24+
2325
# Crate of the Week
2426

25-
This week's crate is [wasmtime](https://github.com/bytecodealliance/wasmtime), a standalone JIT-style runtime for WebAssembly.
27+
This week's crate is [rerast](https://github.com/google/rerast), a rule-based Rust code transformation tool.
2628

27-
Thanks to [Josh Triplett](https://users.rust-lang.org/t/crate-of-the-week/2704/671) for the suggestions!
29+
Thanks to [Jan Riemer](https://users.rust-lang.org/t/crate-of-the-week/2704/674) for the suggestions!
2830

2931
[Submit your suggestions and votes for next week][submit_crate]!
3032

@@ -47,46 +49,43 @@ If you are a Rust project owner and are looking for contributors, please submit
4749

4850
# Updates from Rust Core
4951

50-
252 pull requests were [merged in the last week][merged]
51-
52-
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2019-11-11..2019-11-18
53-
54-
* [add a callback that allows compiler consumers to override queries](https://github.com/rust-lang/rust/pull/66297)
55-
* [update LLVM submodule](https://github.com/rust-lang/rust/pull/66318)
56-
* [expand source_util macros with def-site context](https://github.com/rust-lang/rust/pull/66349)
57-
* [improve errors after re rebalance coherence](https://github.com/rust-lang/rust/pull/66253)
58-
* [move `Session` fields to `CrateStore`](https://github.com/rust-lang/rust/pull/66334)
59-
* [improve non-exhaustiveness handling in usefulness checking](https://github.com/rust-lang/rust/pull/66330)
60-
* [refactor integer range handling in the usefulness algorithm](https://github.com/rust-lang/rust/pull/66326)
61-
* [remove some stack frames from `.async` calls](https://github.com/rust-lang/rust/pull/66398)
62-
* [avoid hashing the key twice in `get_query()`](https://github.com/rust-lang/rust/pull/66013)
63-
* [don't warn labels beginning with `_` on unused_labels lint](https://github.com/rust-lang/rust/pull/66419)
64-
* [only include "already existing ..." comment in gitignore on conflict](https://github.com/rust-lang/cargo/pull/7570)
65-
* [suggest borrowing when it would satisfy an unmet trait bound](https://github.com/rust-lang/rust/pull/65456)
66-
* [fully integrate derive helpers into name resolution](https://github.com/rust-lang/rust/pull/64694)
67-
* [push `ast::{ItemKind, ImplItemKind}::OpaqueTy` hack down into lowering](https://github.com/rust-lang/rust/pull/66197)
68-
* [add a HIR pass to check consts for `if`, `loop`, etc.](https://github.com/rust-lang/rust/pull/66170)
69-
* [fix MIR lowering evaluation order and soundness bug](https://github.com/rust-lang/rust/pull/65608)
70-
* [split `ConstValue` into two enums](https://github.com/rust-lang/rust/pull/66233)
71-
* [fix two OOM issues related to `ConstProp`](https://github.com/rust-lang/rust/pull/66394)
72-
* [make dataflow-based const qualification the canonical one](https://github.com/rust-lang/rust/pull/66385)
73-
* [miri: use new isize_max method in FS accesses](https://github.com/rust-lang/miri/pull/1056)
74-
* [miri panic_unwind: fix hack for SEH platforms](https://github.com/rust-lang/rust/pull/66466)
75-
* [make chalk-rust-ir generic over type-family](https://github.com/rust-lang/chalk/pull/284)
76-
* [chalk: refactor fold](https://github.com/rust-lang/chalk/pull/283)
77-
* [chalk: implement `zip_binders` and add some `dyn Trait`/`impl Trait` tests](https://github.com/rust-lang/chalk/pull/282)
78-
* [add `Result::map_or`](https://github.com/rust-lang/rust/pull/66292)
79-
* [fix `HashSet::union` performance](https://github.com/rust-lang/rust/pull/66280)
80-
* [add raw ptr variant of `UnsafeCell::get`](https://github.com/rust-lang/rust/pull/66248)
81-
* [proposal for `BTree`{`Map`, `Set`}`::`{`min`, `max`}](https://github.com/rust-lang/rust/pull/65637)
82-
* [make the semantics of `Vec::truncate(_)` consistent with slices](https://github.com/rust-lang/rust/pull/64432)
83-
* [libc: add support for making functions `const`](https://github.com/rust-lang/libc/pull/1536)
84-
* [cargo: Don't panic when parsing `/proc/stat`](https://github.com/rust-lang/cargo/pull/7580)
85-
* [stabilize rustdoc theme options](https://github.com/rust-lang/rust/pull/54733)
86-
* [rustup build: make clippy faster by using checking before that operation](https://github.com/rust-lang/rustup/pull/2122)
87-
* [rustup: retry downloads](https://github.com/rust-lang/rustup/pull/2121)
88-
* [rustup: fix/improve human-readable units](https://github.com/rust-lang/rustup/pull/2043)
89-
* [measureme: only use 48 bits for encoding timestamps and 32 bits for encoding thread IDs in `RawEvent` in order to make it smaller](https://github.com/rust-lang/measureme/pull/86)
52+
260 pull requests were [merged in the last week][merged]
53+
54+
[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2019-11-18..2019-11-25
55+
56+
* [stabilize `!`](https://github.com/rust-lang/rust/pull/65355)
57+
* [stabilize `cfg(doc)`](https://github.com/rust-lang/rust/pull/61351)
58+
* [debuginfo: support for `std::collections::Hash*` in windows debuggers](https://github.com/rust-lang/rust/pull/66597)
59+
* [make gdb pretty-printing more robust when printing uninitialized `Vec`](https://github.com/rust-lang/rust/pull/66576)
60+
* [generate DWARF address ranges for faster lookups](https://github.com/rust-lang/rust/pull/66532)
61+
* [fix cycle when debug-printing opaque types](https://github.com/rust-lang/rust/pull/66594)
62+
* [resolve: give derive helpers highest priority during resolution](https://github.com/rust-lang/rust/pull/66529)
63+
* [remove pretty printing of specific nodes in AST](https://github.com/rust-lang/rust/pull/66575)
64+
* [point at type in `let` assignment on type errors](https://github.com/rust-lang/rust/pull/66539)
65+
* [suggest calling async closure when needed](https://github.com/rust-lang/rust/pull/66239)
66+
* [suggest `#[repr(C)]` instead of `#[repr(C, packed, ...)]`](https://github.com/rust-lang/rust/pull/66206)
67+
* [add outlives suggestions for some lifetime errors](https://github.com/rust-lang/rust/pull/58281)
68+
* [use a `SmallVec` for `Candidate::match_pairs`](https://github.com/rust-lang/rust/pull/66540)
69+
* [miri: add `acos`, `asin`, and `atan` foreign functions](https://github.com/rust-lang/miri/pull/1067)
70+
* [mir-opt: asking `?`s in a more optimized fashion](https://github.com/rust-lang/rust/pull/66282)
71+
* [mir-opt: turn on the `ConstProp` pass by default](https://github.com/rust-lang/rust/pull/66074)
72+
* [miri: support unwinding after a panic](https://github.com/rust-lang/miri/pull/693)
73+
* [handle statics in MIR as const pointers](https://github.com/rust-lang/rust/pull/66587)
74+
* [delay an `is_local_ever_initialized` call](https://github.com/rust-lang/rust/pull/66537)
75+
* [reduce size of `hir::Expr` by boxing more of `hir::InlineAsm`](https://github.com/rust-lang/rust/pull/66515)
76+
* [use proc-macro to derive HashStable everywhere](https://github.com/rust-lang/rust/pull/66279)
77+
* [remove `compiler_builtins_lib` feature from libstd](https://github.com/rust-lang/rust/pull/66538)
78+
* [std::error::Chain: remove `Copy`](https://github.com/rust-lang/rust/pull/66511)
79+
* [use `drop_in_place` in `array::IntoIter::drop`](https://github.com/rust-lang/rust/pull/65821)
80+
* [stabilize `Result::map_or_else`](https://github.com/rust-lang/rust/pull/66322)
81+
* [libc: deprecate vfork](https://github.com/rust-lang/libc/pull/1574)
82+
* [libc: add initial support for sparc-unknown-linux-gnu](https://github.com/rust-lang/libc/pull/1567)
83+
* [cargo: extend documentation on security concerns of crate names in a registry](https://github.com/rust-lang/cargo/pull/7616)
84+
* [cargo: turn the new lock file format on by default](https://github.com/rust-lang/cargo/pull/7579)
85+
* [cargo: stabilize install-upgrade](https://github.com/rust-lang/cargo/pull/7560)
86+
* [rustdoc: stabilize `edition` annotation](https://github.com/rust-lang/rust/pull/66238)
87+
* [rustdoc: preserve whitespace inside one-backtick codeblocks](https://github.com/rust-lang/rust/pull/65613)
88+
* [measureme: optimize FileSerializationSink by using parking_lot::Mutex and avoiding heap allocations in write_atomic](https://github.com/rust-lang/measureme/pull/88)
9089

9190
## Approved RFCs
9291

@@ -134,9 +133,11 @@ decision. Express your opinions now.
134133

135134
* [Nov 21. Turin, IT - Mozilla Torino - Gruppo di studio Rust](https://www.meetup.com/Mozilla-Torino/events/265961100).
136135
* [Nov 26. Vienna, AT - Rust Vienna - El rust de vienna](https://www.meetup.com/Rust-Vienna/events/266365092/).
136+
* [Nov 26+28, Rome, Italy - Weekly Rust course at "La Sapienza" University: 2nd lesson!](https://lugsapienza.altervista.org/corsorust-nov2019).
137137
* [Nov 27. Berlin, DE - OpenTechSchool Berlin - Rust Hack and Learn](https://www.meetup.com/opentechschool-berlin/events/nxdpgryzpbkc/).
138138
* [Nov 27. Copenhagen, DK - Copenhagen Rust Hack Night #20](https://cph.rs/).
139139
* [Dec 2. Karlsruhe, DE - Rust Meet-up](https://www.meetup.com/Rust-Hack-Learn-Karlsruhe/events/266554688/).
140+
* [Dec 4. Wroclaw, PL - Rust Wroclaw Meetup #15](https://www.meetup.com/Rust-Wroclaw/events/266756721/).
140141

141142
### North America
142143

@@ -157,21 +158,17 @@ Email the [Rust Community Team][community] for access.
157158

158159
# Rust Jobs
159160

161+
* [PhD, postdoc & intern positions in RustBelt and Iris projects at Max Planck](https://users.rust-lang.org/t/jobs-phd-postdoc-intern-positions-in-rustbelt-and-iris-projects-at-max-planck/35016)
162+
160163
*Tweet us at [@ThisWeekInRust](https://twitter.com/ThisWeekInRust) to get your job offers listed here!*
161164

162165
# Quote of the Week
163166

164-
This week, we have two quotes:
165-
166-
> Telling a programmer there's already a library to do X is like telling a songwriter there's already a song about love.
167-
168-
[PeteCordell on twitter](https://twitter.com/petecordell/status/428542622844477441), as [quoted in a recent Rust Gamedev meetup](https://www.youtube.com/watch?v=lpOg2nl3kr0)
169-
170-
> Well a Museum purpose is also memory safety, I guess.
167+
> I said it before, and I'll say it again: If one views Rust as a critique on C++, one should view it as a constructive critique.
171168
172-
[/u/xav_19 on /r/rust](https://www.reddit.com/r/rust/comments/dxh6pg/why_is_trpl_sold_in_the_gift_shop_at_the_spy/f7r8d3k?utm_source=share&utm_medium=web2x) commenting on a post asking why "The Rust Programming Language" is sold in Washington D.C.'s spy museum's gift shop
169+
[llogiq on /r/rust](https://www.reddit.com/r/rust/comments/dyr8ps/rust_from_a_cc_point_of_view_viceversa/f835w7h)
173170

174-
Thanks to [Matthieu M.](https://users.rust-lang.org/t/twir-quote-of-the-week/328/737) and [ZiCog](https://users.rust-lang.org/t/twir-quote-of-the-week/328/739) for the suggestion!
171+
Thanks to [Dmitry Kashitsyn](https://users.rust-lang.org/t/twir-quote-of-the-week/328/741) for the suggestion!
175172

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

0 commit comments

Comments
 (0)