1
Fork 0

Adjusted types and visibility in auto trait machinery.

This commit is contained in:
Inokentiy Babushkin 2018-04-07 00:12:51 +02:00
parent 67c226aece
commit 0a4a85e8ae
No known key found for this signature in database
GPG key ID: 7EFC8EC5224DE8EC
2 changed files with 8 additions and 5 deletions

View file

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