Skip to content

Commit 6361f90

Browse files
committed
Remove lint pass on borrow and deref
1 parent 6c47819 commit 6361f90

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

core/src/borrow.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@
153153
/// [`HashMap<K, V>`]: ../../std/collections/struct.HashMap.html
154154
/// [`String`]: ../../std/string/struct.String.html
155155
#[stable(feature = "rust1", since = "1.0.0")]
156-
#[rustc_diagnostic_item = "Borrow"]
157156
pub trait Borrow<Borrowed: ?Sized> {
158157
/// Immutably borrows from an owned value.
159158
///
@@ -220,7 +219,6 @@ impl<T: ?Sized> BorrowMut<T> for T {
220219

221220
#[stable(feature = "rust1", since = "1.0.0")]
222221
impl<T: ?Sized> Borrow<T> for &T {
223-
#[rustc_diagnostic_item = "noop_method_borrow"]
224222
fn borrow(&self) -> &T {
225223
&**self
226224
}

core/src/ops/deref.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
#[doc(alias = "*")]
6161
#[doc(alias = "&*")]
6262
#[stable(feature = "rust1", since = "1.0.0")]
63-
#[rustc_diagnostic_item = "Deref"]
6463
pub trait Deref {
6564
/// The resulting type after dereferencing.
6665
#[stable(feature = "rust1", since = "1.0.0")]
@@ -79,7 +78,6 @@ pub trait Deref {
7978
impl<T: ?Sized> Deref for &T {
8079
type Target = T;
8180

82-
#[rustc_diagnostic_item = "noop_method_deref"]
8381
fn deref(&self) -> &T {
8482
*self
8583
}

0 commit comments

Comments
 (0)