Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
79c0559c
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,发现更多精彩内容 >>
未验证
提交
79c0559c
编写于
6月 12, 2021
作者:
Y
Yuki Okushi
提交者:
GitHub
6月 12, 2021
浏览文件
操作
浏览文件
下载
差异文件
Rollup merge of #86153 - tmiasko:dummy-span, r=estebank
Print dummy spans as `no-location` Fixes #58808.
上级
883e1a5f
fab319be
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
compiler/rustc_span/src/source_map.rs
compiler/rustc_span/src/source_map.rs
+1
-1
src/test/mir-opt/generator_storage_dead_unwind.main-{closure#0}.StateTransform.before.mir
...ge_dead_unwind.main-{closure#0}.StateTransform.before.mir
+2
-2
src/test/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir
...r-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir
+1
-1
src/test/mir-opt/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff
...match.SimplifyCfg-initial.after-ElaborateDrops.after.diff
+4
-4
src/test/mir-opt/while_storage.while_loop.PreCodegen.after.mir
...est/mir-opt/while_storage.while_loop.PreCodegen.after.mir
+1
-1
未找到文件。
compiler/rustc_span/src/source_map.rs
浏览文件 @
79c0559c
...
...
@@ -407,7 +407,7 @@ pub fn lookup_line(&self, pos: BytePos) -> Result<SourceFileAndLine, Lrc<SourceF
}
fn
span_to_string
(
&
self
,
sp
:
Span
,
prefer_local
:
bool
)
->
String
{
if
self
.files
.borrow
()
.source_files
.is_empty
()
&&
sp
.is_dummy
()
{
if
self
.files
.borrow
()
.source_files
.is_empty
()
||
sp
.is_dummy
()
{
return
"no-location"
.to_string
();
}
...
...
src/test/mir-opt/generator_storage_dead_unwind.main-{closure#0}.StateTransform.before.mir
浏览文件 @
79c0559c
...
...
@@ -85,13 +85,13 @@ yields ()
bb8 (cleanup): {
StorageDead(_10); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:15: 27:16
StorageDead(_9); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:16: 27:17
goto -> bb10; // scope 2 at
$DIR/generator-storage-dead-unwind.rs:1:1: 1:1
goto -> bb10; // scope 2 at
no-location
}
bb9 (cleanup): {
StorageDead(_8); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:15: 26:16
StorageDead(_7); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:16: 26:17
goto -> bb10; // scope 2 at
$DIR/generator-storage-dead-unwind.rs:1:1: 1:1
goto -> bb10; // scope 2 at
no-location
}
bb10 (cleanup): {
...
...
src/test/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir
浏览文件 @
79c0559c
...
...
@@ -43,7 +43,7 @@ fn main() -> () {
_6 = const 1_i32; // scope 0 at $DIR/loop_test.rs:14:17: 14:18
FakeRead(ForLet(None), _6); // scope 0 at $DIR/loop_test.rs:14:13: 14:14
StorageDead(_6); // scope 0 at $DIR/loop_test.rs:16:5: 16:6
goto -> bb3; // scope 0 at
$DIR/loop_test.rs:1:1: 1:1
goto -> bb3; // scope 0 at
no-location
}
bb5 (cleanup): {
...
...
src/test/mir-opt/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff
浏览文件 @
79c0559c
...
...
@@ -94,8 +94,8 @@
_0 = const 3_i32; // scope 0 at $DIR/match-arm-scopes.rs:15:59: 15:60
StorageDead(_10); // scope 0 at $DIR/match-arm-scopes.rs:15:72: 15:73
StorageDead(_9); // scope 0 at $DIR/match-arm-scopes.rs:15:77: 15:78
- goto -> bb23; // scope 0 at
$DIR/match-arm-scopes.rs:1:1: 1:1
+ goto -> bb20; // scope 0 at
$DIR/match-arm-scopes.rs:1:1: 1:1
- goto -> bb23; // scope 0 at
no-location
+ goto -> bb20; // scope 0 at
no-location
}
- bb10: {
...
...
@@ -150,8 +150,8 @@
_0 = const 3_i32; // scope 0 at $DIR/match-arm-scopes.rs:15:59: 15:60
StorageDead(_13); // scope 0 at $DIR/match-arm-scopes.rs:15:72: 15:73
StorageDead(_12); // scope 0 at $DIR/match-arm-scopes.rs:15:77: 15:78
- goto -> bb23; // scope 0 at
$DIR/match-arm-scopes.rs:1:1: 1:1
+ goto -> bb20; // scope 0 at
$DIR/match-arm-scopes.rs:1:1: 1:1
- goto -> bb23; // scope 0 at
no-location
+ goto -> bb20; // scope 0 at
no-location
}
- bb15: {
...
...
src/test/mir-opt/while_storage.while_loop.PreCodegen.after.mir
浏览文件 @
79c0559c
...
...
@@ -40,7 +40,7 @@ fn while_loop(_1: bool) -> () {
bb4: {
StorageDead(_4); // scope 0 at $DIR/while-storage.rs:13:9: 13:10
goto -> bb6; // scope 0 at
$DIR/while-storage.rs:1:1: 1:1
goto -> bb6; // scope 0 at
no-location
}
bb5: {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录