hir_ty: fix tests by making required methods public
This commit is contained in:
parent
5cc8ad0c4a
commit
15e4aae823
@ -31,12 +31,12 @@ struct S;
|
||||
|
||||
#[cfg(not(test))]
|
||||
impl S {
|
||||
fn foo3(&self) -> i32 { 0 }
|
||||
pub fn foo3(&self) -> i32 { 0 }
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
impl S {
|
||||
fn foo4(&self) -> i32 { 0 }
|
||||
pub fn foo4(&self) -> i32 { 0 }
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
@ -187,8 +187,8 @@ mod iter {
|
||||
mod collections {
|
||||
struct Vec<T> {}
|
||||
impl<T> Vec<T> {
|
||||
fn new() -> Self { Vec {} }
|
||||
fn push(&mut self, t: T) { }
|
||||
pub fn new() -> Self { Vec {} }
|
||||
pub fn push(&mut self, t: T) { }
|
||||
}
|
||||
|
||||
impl<T> IntoIterator for Vec<T> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user