Change src/test to tests in source files, fix tidy and tests

This commit is contained in:
Albert Larsan 2023-01-05 09:45:44 +01:00
parent cf2dff2b1e
commit 40ba0e84d5
No known key found for this signature in database
GPG key ID: 92709B88BB8F13EA
137 changed files with 315 additions and 311 deletions

View file

@ -95,7 +95,7 @@ impl<'tcx> Visitor<'tcx> for CheckLiveDrops<'_, 'tcx> {
}
// Drop elaboration is not precise enough to accept code like
// `src/test/ui/consts/control-flow/drop-pass.rs`; e.g., when an `Option<Vec<T>>` is
// `tests/ui/consts/control-flow/drop-pass.rs`; e.g., when an `Option<Vec<T>>` is
// initialized with `None` and never changed, it still emits drop glue.
// Hence we additionally check the qualifs here to allow more code to pass.
if self.qualifs.needs_non_const_drop(self.ccx, dropped_place.local, location) {