mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-25 11:17:13 +00:00
Remove redundant type parameters
This commit is contained in:
parent
a977cb1ce8
commit
28f1e62482
@ -236,7 +236,7 @@ impl<T> core::ops::Index<Axis> for [T; 3] where T: Copy {
|
||||
//- minicore: as_ref
|
||||
struct Foo(i32);
|
||||
|
||||
impl<T> core::convert::AsRef$0<i32> for Foo {
|
||||
impl core::convert::AsRef$0<i32> for Foo {
|
||||
fn as_ref(&self) -> &i32 {
|
||||
&self.0
|
||||
}
|
||||
@ -245,13 +245,13 @@ impl<T> core::convert::AsRef$0<i32> for Foo {
|
||||
r#"
|
||||
struct Foo(i32);
|
||||
|
||||
$0impl<T> core::convert::AsMut<i32> for Foo {
|
||||
$0impl core::convert::AsMut<i32> for Foo {
|
||||
fn as_mut(&mut self) -> &mut i32 {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> core::convert::AsRef<i32> for Foo {
|
||||
impl core::convert::AsRef<i32> for Foo {
|
||||
fn as_ref(&self) -> &i32 {
|
||||
&self.0
|
||||
}
|
||||
@ -362,7 +362,7 @@ impl<T> Index$0<i32> for [T; 3] {}
|
||||
r#"
|
||||
pub trait AsRef<T: ?Sized> {}
|
||||
|
||||
impl<T> AsRef$0<i32> for [T; 3] {}
|
||||
impl AsRef$0<i32> for [T; 3] {}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user