rust/compiler/rustc_mir_build/src
bors 61a941b8ba Auto merge of #87737 - LeSeulArtichaut:unsafeck-less-freeze, r=oli-obk
Only compute `is_freeze` for layout-constrained ADTs

Places are usually shallow and quick to visit. By contrast, computing `is_freeze` can be much costlier, involving inference and trait solving. Making sure to call `is_freeze` only when necessary should be beneficial for performance in most cases.

See [this comparison](https://perf.rust-lang.org/compare.html?start=81f08a4763e7537b92506fa5a597e6bf774d20cc&end=56a58d347b1c7dd0c2984b8fc3930c408e26fbc2&stat=instructions%3Au) from #87710.

r? `@oli-obk`
2021-08-05 14:45:09 +00:00
..
build rustc: Fill out remaining parts of C-unwind ABI 2021-08-03 07:06:19 -07:00
thir Auto merge of #86251 - Smittyvb:thir-tree-again, r=oli-obk 2021-07-28 09:01:11 +00:00
check_unsafety.rs Auto merge of #87737 - LeSeulArtichaut:unsafeck-less-freeze, r=oli-obk 2021-08-05 14:45:09 +00:00
lib.rs Support -Z unpretty=thir-tree again 2021-07-24 17:18:15 -04:00
lints.rs Do not store attrs in FnKind. 2021-03-09 19:09:33 +01:00