diff options
| author | bors <bors@rust-lang.org> | 2021-11-03 18:13:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-03 18:13:11 +0000 |
| commit | baba6687df3e83fdb15cc6ec239b4a1c75a30505 (patch) | |
| tree | 6cb8a6c777f99c2dffb8d002b169d27acdde1779 /compiler/rustc_mir_dataflow/src/impls/mod.rs | |
| parent | 7734cb80782e65875994ee4709b7752623ea9ed2 (diff) | |
| parent | bc4931ed7e98084480b82ef236d6c5c713645ea5 (diff) | |
Auto merge of #90413 - tmiasko:addr-of-mutable, r=RalfJung,oli-obk
`addr_of!` grants mutable access, maybe? The exact set of permissions granted when forming a raw reference is currently undecided https://github.com/rust-lang/rust/issues/56604. To avoid presupposing any particular outcome, adjust the const qualification to be compatible with decision where raw reference constructed from `addr_of!` grants mutable access. Additionally, to avoid keeping `MaybeMutBorrowedLocals` in sync with const qualification, remove it. It's no longer used. `@rust-lang/wg-const-eval`
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/impls/mod.rs')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/impls/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/impls/mod.rs b/compiler/rustc_mir_dataflow/src/impls/mod.rs index 474f4f2a79b..91dddc6cd55 100644 --- a/compiler/rustc_mir_dataflow/src/impls/mod.rs +++ b/compiler/rustc_mir_dataflow/src/impls/mod.rs @@ -22,7 +22,7 @@ mod init_locals; mod liveness; mod storage_liveness; -pub use self::borrowed_locals::{MaybeBorrowedLocals, MaybeMutBorrowedLocals}; +pub use self::borrowed_locals::MaybeBorrowedLocals; pub use self::init_locals::MaybeInitializedLocals; pub use self::liveness::MaybeLiveLocals; pub use self::storage_liveness::{MaybeRequiresStorage, MaybeStorageLive}; |
