Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
cae3c786
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cae3c786
编写于
6月 05, 2022
作者:
M
Maybe Waffle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename `visit_generic_param{_slice => s}`
上级
afaa9854
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
compiler/rustc_resolve/src/late.rs
compiler/rustc_resolve/src/late.rs
+5
-5
未找到文件。
compiler/rustc_resolve/src/late.rs
浏览文件 @
cae3c786
...
@@ -631,7 +631,7 @@ fn visit_ty(&mut self, ty: &'ast Ty) {
...
@@ -631,7 +631,7 @@ fn visit_ty(&mut self, ty: &'ast Ty) {
span
,
span
,
},
},
|
this
|
{
|
this
|
{
this
.visit_generic_param
_slice
(
&
bare_fn
.generic_params
,
false
);
this
.visit_generic_param
s
(
&
bare_fn
.generic_params
,
false
);
this
.with_lifetime_rib
(
this
.with_lifetime_rib
(
LifetimeRibKind
::
AnonymousPassThrough
(
ty
.id
,
false
),
LifetimeRibKind
::
AnonymousPassThrough
(
ty
.id
,
false
),
|
this
|
walk_list!
(
this
,
visit_param
,
&
bare_fn
.decl.inputs
),
|
this
|
walk_list!
(
this
,
visit_param
,
&
bare_fn
.decl.inputs
),
...
@@ -662,7 +662,7 @@ fn visit_poly_trait_ref(&mut self, tref: &'ast PolyTraitRef, _: &'ast TraitBound
...
@@ -662,7 +662,7 @@ fn visit_poly_trait_ref(&mut self, tref: &'ast PolyTraitRef, _: &'ast TraitBound
span
,
span
,
},
},
|
this
|
{
|
this
|
{
this
.visit_generic_param
_slice
(
&
tref
.bound_generic_params
,
false
);
this
.visit_generic_param
s
(
&
tref
.bound_generic_params
,
false
);
this
.smart_resolve_path
(
this
.smart_resolve_path
(
tref
.trait_ref.ref_id
,
tref
.trait_ref.ref_id
,
None
,
None
,
...
@@ -833,7 +833,7 @@ fn visit_lifetime(&mut self, lifetime: &'ast Lifetime, use_ctxt: visit::Lifetime
...
@@ -833,7 +833,7 @@ fn visit_lifetime(&mut self, lifetime: &'ast Lifetime, use_ctxt: visit::Lifetime
}
}
fn
visit_generics
(
&
mut
self
,
generics
:
&
'ast
Generics
)
{
fn
visit_generics
(
&
mut
self
,
generics
:
&
'ast
Generics
)
{
self
.visit_generic_param
_slice
(
self
.visit_generic_param
s
(
&
generics
.params
,
&
generics
.params
,
self
.diagnostic_metadata.current_self_item
.is_some
(),
self
.diagnostic_metadata.current_self_item
.is_some
(),
);
);
...
@@ -941,7 +941,7 @@ fn visit_where_predicate(&mut self, p: &'ast WherePredicate) {
...
@@ -941,7 +941,7 @@ fn visit_where_predicate(&mut self, p: &'ast WherePredicate) {
span
,
span
,
},
},
|
this
|
{
|
this
|
{
this
.visit_generic_param
_slice
(
&
bound_generic_params
,
false
);
this
.visit_generic_param
s
(
&
bound_generic_params
,
false
);
this
.visit_ty
(
bounded_ty
);
this
.visit_ty
(
bounded_ty
);
for
bound
in
bounds
{
for
bound
in
bounds
{
this
.visit_param_bound
(
bound
,
BoundKind
::
Bound
)
this
.visit_param_bound
(
bound
,
BoundKind
::
Bound
)
...
@@ -1116,7 +1116,7 @@ fn with_scope<T>(&mut self, id: NodeId, f: impl FnOnce(&mut Self) -> T) -> T {
...
@@ -1116,7 +1116,7 @@ fn with_scope<T>(&mut self, id: NodeId, f: impl FnOnce(&mut Self) -> T) -> T {
}
}
}
}
fn
visit_generic_param
_slice
(
&
mut
self
,
params
:
&
'ast
[
GenericParam
],
add_self_upper
:
bool
)
{
fn
visit_generic_param
s
(
&
mut
self
,
params
:
&
'ast
[
GenericParam
],
add_self_upper
:
bool
)
{
// For type parameter defaults, we have to ban access
// For type parameter defaults, we have to ban access
// to following type parameters, as the InternalSubsts can only
// to following type parameters, as the InternalSubsts can only
// provide previous type parameters as they're built. We
// provide previous type parameters as they're built. We
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录