mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
rustfmt
This commit is contained in:
@@ -529,7 +529,9 @@ fn validate_place(&self, place: PlaceRef<'tcx>) -> Result<(), Unpromotable> {
|
||||
// https://github.com/rust-lang/rust/pull/74945#discussion_r463063247
|
||||
// There may be opportunity for generalization, but this needs to be
|
||||
// accounted for.
|
||||
if proj_base.is_empty() && !self.tcx.is_thread_local_static(did) {
|
||||
if proj_base.is_empty()
|
||||
&& !self.tcx.is_thread_local_static(did)
|
||||
{
|
||||
not_promotable = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user