mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
hir_ty: fix tests by making required methods public
This commit is contained in:
parent
5cc8ad0c4a
commit
15e4aae823
2 changed files with 4 additions and 4 deletions
|
@ -31,12 +31,12 @@ struct S;
|
||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
impl S {
|
impl S {
|
||||||
fn foo3(&self) -> i32 { 0 }
|
pub fn foo3(&self) -> i32 { 0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
impl S {
|
impl S {
|
||||||
fn foo4(&self) -> i32 { 0 }
|
pub fn foo4(&self) -> i32 { 0 }
|
||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
|
|
|
@ -187,8 +187,8 @@ mod iter {
|
||||||
mod collections {
|
mod collections {
|
||||||
struct Vec<T> {}
|
struct Vec<T> {}
|
||||||
impl<T> Vec<T> {
|
impl<T> Vec<T> {
|
||||||
fn new() -> Self { Vec {} }
|
pub fn new() -> Self { Vec {} }
|
||||||
fn push(&mut self, t: T) { }
|
pub fn push(&mut self, t: T) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> IntoIterator for Vec<T> {
|
impl<T> IntoIterator for Vec<T> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue