rust/compiler/rustc_middle/src
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
..
dep_graph Remove projection_ty_from_predicates 2021-06-16 16:33:03 +09:00
hir Revert "Merge CrateDisambiguator into StableCrateId" 2021-06-07 10:37:45 +02:00
ich Hash DefId in rustc_span. 2021-06-11 12:25:02 +02:00
infer Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
middle Auto merge of #85910 - cjgillot:no-meta-version, r=Aaron1011 2021-06-10 00:39:25 +00:00
mir Fix unused_unsafe with compiler-generated unsafe 2021-06-21 17:25:45 -05:00
query Rollup merge of #86353 - JohnTitor:remove-projection_ty_from_predicates, r=oli-obk 2021-06-17 05:54:59 +09:00
traits Make traits with GATs not object safe 2021-04-27 14:34:23 -04:00
ty Auto merge of #86437 - nikomatsakis:tait-docs, r=oli-obk 2021-06-19 12:41:10 +00:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Make THIR building a stealable query 2021-05-22 14:36:22 +02:00
lib.rs Remove unused feature gates 2021-05-31 13:55:43 +02:00
lint.rs Add a page on force-warns in unstable book 2021-06-02 18:07:39 +02:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Fix unused_unsafe with compiler-generated unsafe 2021-06-21 17:25:45 -05:00