Skip to content

Commit c19c65e

Browse files
committed
C/QotW+notable changes
1 parent 25ece24 commit c19c65e

File tree

1 file changed

+42
-51
lines changed

1 file changed

+42
-51
lines changed

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

Lines changed: 42 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Find all #Rust2020 posts at [Read Rust](https://readrust.net/rust-2020/).
2222

2323
# Crate of the Week
2424

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

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

2929
[Submit your suggestions and votes for next week][submit_crate]!
3030

@@ -48,46 +48,43 @@ If you are a Rust project owner and are looking for contributors, please submit
4848

4949
# Updates from Rust Core
5050

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

9289
## Approved RFCs
9390

@@ -156,17 +153,11 @@ Email the [Rust Community Team][community] for access.
156153

157154
# Quote of the Week
158155

159-
This week, we have two quotes:
156+
> 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.
160157
161-
> Telling a programmer there's already a library to do X is like telling a songwriter there's already a song about love.
158+
[llogiq on /r/rust](https://www.reddit.com/r/rust/comments/dyr8ps/rust_from_a_cc_point_of_view_viceversa/f835w7h)
162159

163-
[PeteCordell on twitter](https://twitter.com/petecordell/status/428542622844477441), as [quoted in a recent Rust Gamedev meetup](https://www.youtube.com/watch?v=lpOg2nl3kr0)
164-
165-
> Well a Museum purpose is also memory safety, I guess.
166-
167-
[/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
168-
169-
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!
160+
Thanks to [Dmitry Kashitsyn](https://users.rust-lang.org/t/twir-quote-of-the-week/328/741) for the suggestion!
170161

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

0 commit comments

Comments
 (0)