rust/compiler/rustc_mir
Yuki Okushi 8ec4e7dfdd
Rollup merge of #86517 - camsteffen:unused-unsafe-async, r=LeSeulArtichaut
Fix `unused_unsafe` around `await`

Enables `unused_unsafe` lint for `unsafe { future.await }`.

The existing test for this is `unsafe { println!() }`, so I assume that `println!` used to contain compiler-generated unsafe but this is no longer true, and so the existing test is broken. I replaced the test with `unsafe { ...await }`. I believe `await` is currently the only instance of compiler-generated unsafe.

Reverts some parts of #85421, but the issue predates that PR.
2021-06-22 20:01:05 +09:00
..
src Rollup merge of #86517 - camsteffen:unused-unsafe-async, r=LeSeulArtichaut 2021-06-22 20:01:05 +09:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00