Skip to content

Commit 4d42b61

Browse files
committed
Make ops::DerefMut a diagnostic item
1 parent 9b82646 commit 4d42b61

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ symbols! {
219219
Decoder,
220220
Default,
221221
Deref,
222+
DerefMut,
222223
DiagMessage,
223224
Diagnostic,
224225
DirBuilder,

library/core/src/ops/deref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ impl<T: ?Sized> const Deref for &mut T {
266266
#[lang = "deref_mut"]
267267
#[doc(alias = "*")]
268268
#[stable(feature = "rust1", since = "1.0.0")]
269+
#[rustc_diagnostic_item = "DerefMut"]
269270
#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
270271
pub const trait DerefMut: [const] Deref + PointeeSized {
271272
/// Mutably dereferences the value.

0 commit comments

Comments
 (0)