pub fn register_path_to_ty(rpath: &RegisterPath, span: Span) -> TypePath