Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
7842b804
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,发现更多精彩内容 >>
提交
7842b804
编写于
9月 10, 2021
作者:
C
Camille GILLOT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rebase fallout.
上级
11a999e6
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
6 addition
and
5 deletion
+6
-5
compiler/rustc_ast_lowering/src/expr.rs
compiler/rustc_ast_lowering/src/expr.rs
+1
-0
src/test/incremental/hashes/if_expressions.rs
src/test/incremental/hashes/if_expressions.rs
+1
-1
src/test/incremental/hashes/while_loops.rs
src/test/incremental/hashes/while_loops.rs
+1
-1
src/tools/clippy/clippy_lints/src/methods/manual_split_once.rs
...ools/clippy/clippy_lints/src/methods/manual_split_once.rs
+1
-1
src/tools/clippy/clippy_lints/src/module_style.rs
src/tools/clippy/clippy_lints/src/module_style.rs
+2
-2
未找到文件。
compiler/rustc_ast_lowering/src/expr.rs
浏览文件 @
7842b804
...
...
@@ -423,6 +423,7 @@ fn lower_expr_while_in_loop_scope(
let
if_expr
=
self
.expr
(
span
,
if_kind
,
ThinVec
::
new
());
let
block
=
self
.block_expr
(
self
.arena
.alloc
(
if_expr
));
let
span
=
self
.lower_span
(
span
.with_hi
(
cond
.span
.hi
()));
let
opt_label
=
self
.lower_label
(
opt_label
);
hir
::
ExprKind
::
Loop
(
block
,
opt_label
,
hir
::
LoopSource
::
While
,
span
)
}
...
...
src/test/incremental/hashes/if_expressions.rs
浏览文件 @
7842b804
...
...
@@ -214,7 +214,7 @@ pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
#[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"hir_owner_nodes,typeck"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[rustc_clean(cfg=
"cfail5"
,
except=
"hir_owner_nodes,typeck"
)]
#[rustc_clean(cfg=
"cfail5"
,
except=
"hir_owner_nodes,typeck
,optimized_mir
"
)]
#[rustc_clean(cfg=
"cfail6"
)]
pub
fn
add_else_branch_if_let
(
x
:
Option
<
u32
>
)
->
u32
{
let
mut
ret
=
1
;
...
...
src/test/incremental/hashes/while_loops.rs
浏览文件 @
7842b804
...
...
@@ -214,7 +214,7 @@ pub fn change_continue_label() {
#[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"hir_owner_nodes,typeck"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[rustc_clean(cfg=
"cfail5"
,
except=
"hir_owner_nodes,typeck"
)]
#[rustc_clean(cfg=
"cfail5"
,
except=
"hir_owner_nodes,typeck
,optimized_mir
"
)]
#[rustc_clean(cfg=
"cfail6"
)]
pub
fn
change_continue_label
()
{
let
mut
_
x
=
0
;
...
...
src/tools/clippy/clippy_lints/src/methods/manual_split_once.rs
浏览文件 @
7842b804
...
...
@@ -182,7 +182,7 @@ fn parse_iter_usage(
},
_
,
)
=>
{
let
parent_span
=
e
.span
.parent
()
.unwrap
();
let
parent_span
=
e
.span
.parent
_callsite
()
.unwrap
();
if
parent_span
.ctxt
()
==
ctxt
{
(
Some
(
UnwrapKind
::
QuestionMark
),
parent_span
)
}
else
{
...
...
src/tools/clippy/clippy_lints/src/module_style.rs
浏览文件 @
7842b804
...
...
@@ -120,7 +120,7 @@ fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &ast::Crate) {
correct
.push
(
"mod.rs"
);
cx
.struct_span_lint
(
SELF_NAMED_MODULE_FILES
,
Span
::
new
(
file
.start_pos
,
file
.start_pos
,
SyntaxContext
::
root
()),
Span
::
new
(
file
.start_pos
,
file
.start_pos
,
SyntaxContext
::
root
()
,
None
),
|
build
|
{
let
mut
lint
=
build
.build
(
&
format!
(
"`mod.rs` files are required, found `{}`"
,
path
.display
()));
...
...
@@ -167,7 +167,7 @@ fn check_self_named_mod_exists(cx: &EarlyContext<'_>, path: &Path, file: &Source
cx
.struct_span_lint
(
MOD_MODULE_FILES
,
Span
::
new
(
file
.start_pos
,
file
.start_pos
,
SyntaxContext
::
root
()),
Span
::
new
(
file
.start_pos
,
file
.start_pos
,
SyntaxContext
::
root
()
,
None
),
|
build
|
{
let
mut
lint
=
build
.build
(
&
format!
(
"`mod.rs` files are not allowed, found `{}`"
,
path
.display
()));
lint
.help
(
&
format!
(
"move `{}` to `{}`"
,
path
.display
(),
mod_file
.display
(),));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录