Adjusted types and visibility in auto trait machinery.
This commit is contained in:
parent
67c226aece
commit
0a4a85e8ae
2 changed files with 8 additions and 5 deletions
|
@ -21,7 +21,7 @@ pub struct AutoTraitFinder<'a, 'tcx: 'a, 'rcx: 'a> {
|
|||
|
||||
impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
|
||||
pub fn new(cx: &'a core::DocContext<'a, 'tcx, 'rcx>) -> Self {
|
||||
let f = auto::AutoTraitFinder { tcx: &cx.tcx };
|
||||
let f = auto::AutoTraitFinder::new(&cx.tcx);
|
||||
|
||||
AutoTraitFinder { cx, f }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue