Title: This Week in Rust 249 Number: 249 Date: 2018-08-28 Category: This Week in Rust Hello and welcome to another issue of *This Week in Rust*! [Rust](http://rust-lang.org) is a systems language pursuing the trifecta: safety, concurrency, and speed. This is a weekly summary of its progress and community. Want something mentioned? Tweet us at [@ThisWeekInRust](https://twitter.com/ThisWeekInRust) or [send us a pull request](https://github.com/cmr/this-week-in-rust). Want to get involved? [We love contributions](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md). *This Week in Rust* is openly developed [on GitHub](https://github.com/cmr/this-week-in-rust). If you find any errors in this week's issue, [please submit a PR](https://github.com/cmr/this-week-in-rust/pulls). # Updates from Rust Community ## News & Blog Posts * [Experimental async / await support for Tokio](https://tokio.rs/blog/2018-08-async-await/). [[discuss](https://www.reddit.com/r/rust/comments/9as61i/tokio_experimental_async_await_support/)] * [Nightly Rust is switching to use LLD (LLVM's new built-in linker) as the default linker for ARM microcontrollers](https://rust-embedded.github.io/blog/2018-08-2x-psa-cortex-m-breakage/). [[discuss](https://www.reddit.com/r/rust/comments/9a7te2/nightly_rust_is_switching_to_use_lld_llvms_new/)] * [CVE-2018-1000657: buffer overflow in VecDeque::reserve() in Rust 1.3 through 1.21 allows arbitrary code execution](https://www.reddit.com/r/rust/comments/9926jq/cve20181000657_buffer_overflow_in_vecdequereserve/). [[discuss](https://www.reddit.com/r/rust/comments/9926jq/cve20181000657_buffer_overflow_in_vecdequereserve/)] * [More on the RLS and a 1.0 release](https://www.ncameron.org/blog/more-on-the-rls-and-a-1-0-release/). [[discuss](https://www.reddit.com/r/rust/comments/99ltpr/more_on_the_rls_and_a_10_release/)] * [Another look at the pinning API](https://boats.gitlab.io/blog/post/rethinking-pin/). [[discuss](https://www.reddit.com/r/rust/comments/99iqdy/another_look_at_the_pinning_api/)] * [Oxidizing sourmash: Python and FFI](https://blog.luizirber.org/2018/08/23/sourmash-rust/). [[discuss](https://www.reddit.com/r/rust/comments/99vakd/blog_post_converting_c_to_rust_and_interoperate)] * [Reading files quickly in Rust](https://boyter.org/posts/reading-files-quickly-in-rust/). [[discuss](https://www.reddit.com/r/rust/comments/99e4tq/reading_files_quickly_in_rust/)] * [Calling C# natively from Rust](https://medium.com/@chyyran/calling-c-natively-from-rust-1f92c506289d). [[discuss](https://www.reddit.com/r/rust/comments/99z7bd/calling_c_natively_from_rust/)] * [Programming Servo: the makings of a task-queue](https://medium.com/programming-servo/programming-servo-the-makings-of-a-task-queue-b4138cd246ca). [[discuss](https://www.reddit.com/r/rust/comments/9axo53/programming_servo_the_makings_of_a_taskqueue/)] * [Programming Servo: The debug way](https://medium.com/coding-neutrino-blog/programming-servo-the-debug-way-5db01f09b7f4). [[discuss](https://www.reddit.com/r/rust/comments/9anveo/programming_servo_the_debug_way_debug_servo_and/)] * [Easy `proc_macro_derive`s with `synstructure`](https://llogiq.github.io/2018/08/25/synstruct.html). [[discuss](https://llogiq.github.io/2018/08/25/synstruct.html)] * [Two kinds of invariants](https://www.ralfj.de/blog/2018/08/22/two-kinds-of-invariants.html), proposing rules for unsafe code concerning uninitialized data. [[discuss](https://www.reddit.com/r/rust/comments/99g5b1/two_kinds_of_invariants/)] * [Next Rust Fest to take place in Rome on 24 and 25 November](https://blog.rustfest.eu/next-stop-rome). [[discuss](https://www.reddit.com/r/rust/comments/99w5vp/let_rome_rust_festnext_rustfest_november_24th_25th/)] # Crate of the Week This week's crate is [generational-arena](https://github.com/fitzgen/generational-arena), a safe arena allocator that allows deletion without suffering from the ABA problem by using generational indices. Thanks to [Willi Kappler](https://users.rust-lang.org/t/crate-of-the-week/2704/447) for the suggestion! [Submit your suggestions and votes for next week][submit_crate]! [submit_crate]: https://users.rust-lang.org/t/crate-of-the-week/2704 # Call for Participation Always wanted to contribute to open-source projects but didn't know where to start? Every week we highlight some tasks from the Rust community for you to pick and get started! Some of these tasks may also have mentors available, visit the task page for more information. * [png: Unbounded memory consumption on malformed inputs](https://github.com/PistonDevelopers/image-png/issues/80). If you are a Rust project owner and are looking for contributors, please submit tasks [here][guidelines]. [guidelines]: https://users.rust-lang.org/t/twir-call-for-participation/4821 # Updates from Rust Core 140 pull requests were [merged in the last week][merged] [merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2018-08-20..2018-08-27 * [Stablize Iterator::find_map](https://github.com/rust-lang/rust/pull/53385) * [Stabilise raw_identifiers feature](https://github.com/rust-lang/rust/pull/53236) * [Stabilize 'attr_literals' feature](https://github.com/rust-lang/rust/pull/53044) * [Exhaustive integer matching](https://github.com/rust-lang/rust/pull/50912) * [Unify E0243, E0244, E0087, E0088, E0089, and E0090 into E0107](https://github.com/rust-lang/rust/pull/53584) * [Change `Rc::inc_{weak,strong}` to better hint optimization to LLVM](https://github.com/rust-lang/rust/pull/53080) * [add `#[panic_handler]`; deprecate `#[panic_implementation]`](https://github.com/rust-lang/rust/pull/53619) * [wasm: remove --strip-debug argument to LLD](https://github.com/rust-lang/rust/pull/53434) * [resolve: overhaul `#![feature(uniform_paths)]` error reporting](https://github.com/rust-lang/rust/pull/53427) * [visit all attributes for feature collection](https://github.com/rust-lang/rust/pull/53397) * [`{to,from}_{ne,le,be}_bytes` for unsigned integer types](https://github.com/rust-lang/rust/pull/53358) * [fix error for unsized packed struct field](https://github.com/rust-lang/rust/pull/53342) * [various changes to `rustc_on_unimplemented`](https://github.com/rust-lang/rust/pull/53295) * [implement Iterator::size_hint for Elaborator](https://github.com/rust-lang/rust/pull/52858) * [Fix unsoundness for VecDeque](https://github.com/rust-lang/rust/pull/53571) * [Use optimized SmallVec implementation](https://github.com/rust-lang/rust/pull/53384) * [Feature gate where clauses on associated type impls](https://github.com/rust-lang/rust/pull/53235) * [resolve suggestions should use `crate::` when enabled](https://github.com/rust-lang/rust/pull/51456) * [Allow panicking with string literal messages inside constants](https://github.com/rust-lang/rust/pull/52011) * [Implement try block expressions](https://github.com/rust-lang/rust/pull/52602) * [Stabilize a few secondary macro features](https://github.com/rust-lang/rust/pull/53459) * [Merge `IdxSet` and `IdxSetBuf`](https://github.com/rust-lang/rust/pull/53520) * [syntax: Optimize some literal parsing](https://github.com/rust-lang/rust/pull/53521) * [Buffer LLVM's object output stream](https://github.com/rust-lang/rust/pull/53524) * [Fix NLL ICEs](https://github.com/rust-lang/rust/pull/53580) * [Rename TyVariants and variants](https://github.com/rust-lang/rust/pull/53581) * [Use SmallVec for SmallCStr](https://github.com/rust-lang/rust/pull/53644) ## Approved RFCs Changes to Rust follow the Rust [RFC (request for comments) process](https://github.com/rust-lang/rfcs#rust-rfcs). These are the RFCs that were approved for implementation this week: * [RFC 2497: if- and while-let-chains, take 2](https://github.com/rust-lang/rfcs/pull/2497). ## Final Comment Period Every week [the team](https://www.rust-lang.org/team.html) announces the 'final comment period' for RFCs and key PRs which are reaching a decision. Express your opinions now. ### [RFCs](https://github.com/rust-lang/rfcs/labels/final-comment-period) * [disposition: merge] [Unify std::os::raw::c_void and libc::c_void via libcore](https://github.com/rust-lang/rfcs/pull/2521). * [disposition: merge] [Add lint warning for inner function marked as `#[test]`](https://github.com/rust-lang/rfcs/pull/2471). * [disposition: merge] [Rustfmt stability](https://github.com/rust-lang/rfcs/pull/2437). ### [Tracking Issues & PRs](https://github.com/rust-lang/rust/labels/final-comment-period) * [disposition: merge] [Add Error::source method per RFC 2504.](https://github.com/rust-lang/rust/pull/53533). * [disposition: merge] [set cfg(rustdoc) when rustdoc is running on a crate](https://github.com/rust-lang/rust/pull/53076). * [disposition: merge] [Tracking issue for RFC#1685: Deprecate anonymous parameters ](https://github.com/rust-lang/rust/issues/41686). * [disposition: merge] [Tracking issue for lifetime elision for impl headers (feature impl_header_lifetime_elision)](https://github.com/rust-lang/rust/issues/15872). * [disposition: merge] [Tracking issue for RFC 2070: stable mechanism to specify the behavior of panic! in no-std applications](https://github.com/rust-lang/rust/issues/44489). ## New RFCs * [Type-changing struct update syntax](https://github.com/rust-lang/rfcs/pull/2528). * [Hidden trait implementations](https://github.com/rust-lang/rfcs/pull/2529). * [Amend RFC 2175 to support for loops and leading vert](https://github.com/rust-lang/rfcs/pull/2530). * [Associated type defaults and Default groups](https://github.com/rust-lang/rfcs/pull/2532). # Upcoming Events ### Online * [Sep 5. Rust Community Team Meeting in Discord](https://discordapp.com/channels/442252698964721669/443773747350994945). * [Sep 11. Rust Community Content Subteam Meeting at channel #rust-community](irc://irc.mozilla.org/rust-community). * [Sep 12. Rust Community Team Meeting in Discord](https://discordapp.com/channels/442252698964721669/443773747350994945). * [Sep 12. Rust Events Team Meeting in Telegram](https://t.me/joinchat/EkKINhHCgZ9llzvPidOssA). ### Africa * [Sep 4. Johannesburg, ZA - Monthly Meetup of the Johannesburg Rustaceans](https://www.meetup.com/Johannesburg-Rust-Meetup/events/cpblrnyxmbgb/). ### Asia * [Sep 2. Tel Aviv, IL - Cargo, Production and N00bing](https://www.meetup.com/Rust-TLV/events/253408497/). ### Europe * [Sep 4. Brussels, BE - #3 futures/async/tokio && Gotham-rs](https://www.meetup.com/Belgium-Rust-user-group/events/249899651/). * [Sep 5. Berlin, DE - Berlin Rust Hack and Learn](https://www.meetup.com/opentechschool-berlin/events/253541000/). * [Sep 5. Cologne, DE - Rust Cologne](http://rust.cologne/2018/09/05/fun-traits.html). ### North America * [Sep 2. Mountain View, US - Open Table / Icebreaker: what projects are you working on](https://www.meetup.com/Rust-Dev-in-Mountain-View/events/glnfcpyxmbdb/). * [Sep 5. Indianapolis, US - Indy.rs](https://www.meetup.com/indyrs/events/mffbtpyxmbhb/). * [Sep 5. Atlanta, US - Grab a beer with fellow Rustaceans](https://www.meetup.com/Rust-ATL/events/cbcmbqyxmbhb/). * [Sep 5. Vancouver, CA - Rust Study/Hack/Hang-out night](https://www.meetup.com/Vancouver-Rust/events/dqldspyxmbhb/). * [Sep 9. Mountain View, US - Rust Dev in Mountain View!](https://www.meetup.com/Rust-Dev-in-Mountain-View/events/glnfcpyxmbmb/). * [Sep 10. Seattle, US - Seattle Rust Meetup](https://www.meetup.com/Seattle-Rust-Meetup/events/pkggvpyxmbnb/). * [Sep 13. Columbus, US - Columbus Rust Society - Monthly Meeting](https://www.meetup.com/columbus-rs/events/dbcfrpyxmbrb/). * [Sep 13. Arlington, US - Rust DC - Mid-month Rustful](https://www.meetup.com/RustDC/events/253787454). * [Sep 13. San Diego, US - San Diego Rust September Meetup - WASM, "failure" library, or ???](https://www.meetup.com/San-Diego-Rust/events/253862312/). ### South America * [Sep 3. Montevideo, UY - Rust meetup - WebAssembly](https://www.meetup.com/Rust-Uruguay/events/253617627/). If you are running a Rust event please add it to the [calendar] to get it mentioned here. Email the [Rust Community Team][community] for access. [calendar]: https://www.google.com/calendar/embed?src=apd9vmbc22egenmtu5l6c5jbfc%40group.calendar.google.com [community]: mailto:community-team@rust-lang.org # Rust Jobs * [Rust Engineer at Anixe, Wrocław, Poland](https://anixe.bamboohr.co.uk/jobs/view.php?id=17). * [Rust Engineer at TagiFi, Remote](https://www.reddit.com/r/rust/comments/994fcg/job_tagnifi_is_looking_for_a_rust_engineer/). *Tweet us at [@ThisWeekInRust](https://twitter.com/ThisWeekInRust) to get your job offers listed here!* # Quote of the Week > # Bastion of the Turbofish > > Beware travellers, lest you venture into waters callous and unforgiving, where hope must abandoned, ere it is cruelly torn from you. For here stands the bastion of the Turbofish: an impenetrable fortress holding unshaking against those who would dare suggest the supererogation of the Turbofish. > > Once I was young and foolish and had the impudence to imagine that I could shake free from the coils by which that creature had us tightly bound. I dared to suggest that there was a better way: a brighter future, in which Rustaceans both new and old could be rid of that vile beast. But alas! In my foolhardiness my ignorance was unveiled and my dreams were dashed unforgivingly against the rock of syntactic ambiguity. > > This humble program, small and insignificant though it might seem, demonstrates that to which we had previously cast a blind eye: an ambiguity in permitting generic arguments to be provided without the consent of the Great Turbofish. Should you be so naïve as to try to revolt against its mighty clutches, here shall its wrath be indomitably displayed. This program must pass for all eternity, fundamentally at odds with an impetuous rebellion against the Turbofish. > > My heart aches in sorrow, for I know I am defeated. Let this be a warning to all those who come after. Here stands the bastion of the Turbofish. – [varkor on the rust github](https://github.com/rust-lang/rust/pull/53562). Thanks to [Mazdak Farrokhzad](https://users.rust-lang.org/u/Centril) for the suggestion! [Please submit your quotes for next week](http://users.rust-lang.org/t/twir-quote-of-the-week/328)! *This Week in Rust is edited by: [nasa42](https://github.com/nasa42), [llogiq](https://github.com/llogiq), and [Flavsditz](https://github.com/Flavsditz).* [Discuss on r/rust](https://www.reddit.com/r/rust/comments/9b6i15/this_week_in_rust_249/).