hir_ty: fix tests by making required methods public

This commit is contained in:
cynecx 2021-03-20 17:12:49 +01:00
parent 5cc8ad0c4a
commit 15e4aae823
2 changed files with 4 additions and 4 deletions

View File

@ -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 }
}
"#,
);

View File

@ -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> {