Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
a366aa62
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,发现更多精彩内容 >>
未验证
提交
a366aa62
编写于
1月 10, 2020
作者:
Y
Yuki Okushi
提交者:
GitHub
1月 10, 2020
浏览文件
操作
浏览文件
下载
差异文件
Rollup merge of #68040 - sinkuu:unused, r=petrochenkov
Cleanup
上级
2bade5dd
f443ae68
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
1 addition
and
34 deletion
+1
-34
Cargo.lock
Cargo.lock
+0
-10
src/librustc/Cargo.toml
src/librustc/Cargo.toml
+0
-3
src/librustc/ty/mod.rs
src/librustc/ty/mod.rs
+0
-7
src/librustc/ty/structural_impls.rs
src/librustc/ty/structural_impls.rs
+0
-6
src/librustc_codegen_llvm/Cargo.toml
src/librustc_codegen_llvm/Cargo.toml
+0
-1
src/librustc_driver/Cargo.toml
src/librustc_driver/Cargo.toml
+0
-2
src/librustc_lint/Cargo.toml
src/librustc_lint/Cargo.toml
+0
-1
src/librustc_typeck/check/upvar.rs
src/librustc_typeck/check/upvar.rs
+1
-1
src/libsyntax/Cargo.toml
src/libsyntax/Cargo.toml
+0
-2
src/rustc/Cargo.toml
src/rustc/Cargo.toml
+0
-1
未找到文件。
Cargo.lock
浏览文件 @
a366aa62
...
...
@@ -3079,8 +3079,6 @@ dependencies = [
"graphviz",
"jobserver",
"log",
"measureme",
"num_cpus",
"parking_lot",
"polonius-engine",
"rustc-rayon",
...
...
@@ -3090,7 +3088,6 @@ dependencies = [
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_fs_util",
"rustc_hir",
"rustc_index",
"rustc_macros",
...
...
@@ -3278,7 +3275,6 @@ dependencies = [
"jemalloc-sys",
"rustc_codegen_ssa",
"rustc_driver",
"rustc_target",
]
[[package]]
...
...
@@ -3409,7 +3405,6 @@ dependencies = [
"rustc_codegen_utils",
"rustc_data_structures",
"rustc_errors",
"rustc_expand",
"rustc_feature",
"rustc_fs_util",
"rustc_hir",
...
...
@@ -3497,7 +3492,6 @@ name = "rustc_driver"
version = "0.0.0"
dependencies = [
"env_logger 0.7.1",
"graphviz",
"lazy_static 1.3.0",
"log",
"rustc",
...
...
@@ -3513,7 +3507,6 @@ dependencies = [
"rustc_mir",
"rustc_parse",
"rustc_plugin_impl",
"rustc_resolve",
"rustc_save_analysis",
"rustc_span",
"rustc_target",
...
...
@@ -3660,7 +3653,6 @@ dependencies = [
"log",
"rustc",
"rustc_data_structures",
"rustc_error_codes",
"rustc_feature",
"rustc_hir",
"rustc_index",
...
...
@@ -4464,8 +4456,6 @@ dependencies = [
name = "syntax"
version = "0.0.0"
dependencies = [
"bitflags",
"lazy_static 1.3.0",
"log",
"rustc_data_structures",
"rustc_error_codes",
...
...
src/librustc/Cargo.toml
浏览文件 @
a366aa62
...
...
@@ -15,7 +15,6 @@ bitflags = "1.2.1"
fmt_macros
=
{
path
=
"../libfmt_macros"
}
graphviz
=
{
path
=
"../libgraphviz"
}
jobserver
=
"0.1"
num_cpus
=
"1.0"
scoped-tls
=
"1.0"
log
=
{
version
=
"0.4"
,
features
=
[
"release_max_level_info"
,
"std"
]
}
rustc-rayon
=
"0.3.0"
...
...
@@ -36,8 +35,6 @@ backtrace = "0.3.40"
parking_lot
=
"0.9"
byteorder
=
{
version
=
"1.3"
}
chalk-engine
=
{
version
=
"0.9.0"
,
default-features
=
false
}
rustc_fs_util
=
{
path
=
"../librustc_fs_util"
}
smallvec
=
{
version
=
"1.0"
,
features
=
[
"union"
,
"may_dangle"
]
}
measureme
=
"0.5"
rustc_error_codes
=
{
path
=
"../librustc_error_codes"
}
rustc_session
=
{
path
=
"../librustc_session"
}
src/librustc/ty/mod.rs
浏览文件 @
a366aa62
...
...
@@ -808,13 +808,6 @@ pub struct UpvarBorrow<'tcx> {
pub
type
UpvarListMap
=
FxHashMap
<
DefId
,
FxIndexMap
<
hir
::
HirId
,
UpvarId
>>
;
pub
type
UpvarCaptureMap
<
'tcx
>
=
FxHashMap
<
UpvarId
,
UpvarCapture
<
'tcx
>>
;
#[derive(Copy,
Clone,
TypeFoldable)]
pub
struct
ClosureUpvar
<
'tcx
>
{
pub
res
:
Res
,
pub
span
:
Span
,
pub
ty
:
Ty
<
'tcx
>
,
}
#[derive(Clone,
Copy,
PartialEq,
Eq)]
pub
enum
IntVarValue
{
IntType
(
ast
::
IntTy
),
...
...
src/librustc/ty/structural_impls.rs
浏览文件 @
a366aa62
...
...
@@ -45,12 +45,6 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
}
}
impl
fmt
::
Debug
for
ty
::
ClosureUpvar
<
'tcx
>
{
fn
fmt
(
&
self
,
f
:
&
mut
fmt
::
Formatter
<
'_
>
)
->
fmt
::
Result
{
write!
(
f
,
"ClosureUpvar({:?},{:?})"
,
self
.res
,
self
.ty
)
}
}
impl
fmt
::
Debug
for
ty
::
UpvarId
{
fn
fmt
(
&
self
,
f
:
&
mut
fmt
::
Formatter
<
'_
>
)
->
fmt
::
Result
{
let
name
=
ty
::
tls
::
with
(|
tcx
|
tcx
.hir
()
.name
(
self
.var_path.hir_id
));
...
...
src/librustc_codegen_llvm/Cargo.toml
浏览文件 @
a366aa62
...
...
@@ -31,5 +31,4 @@ rustc_session = { path = "../librustc_session" }
rustc_target
=
{
path
=
"../librustc_target"
}
smallvec
=
{
version
=
"1.0"
,
features
=
[
"union"
,
"may_dangle"
]
}
syntax
=
{
path
=
"../libsyntax"
}
rustc_expand
=
{
path
=
"../librustc_expand"
}
rustc_span
=
{
path
=
"../librustc_span"
}
src/librustc_driver/Cargo.toml
浏览文件 @
a366aa62
...
...
@@ -10,7 +10,6 @@ path = "lib.rs"
crate-type
=
["dylib"]
[dependencies]
graphviz
=
{
path
=
"../libgraphviz"
}
lazy_static
=
"1.0"
log
=
"0.4"
env_logger
=
{
version
=
"0.7"
,
default-features
=
false
}
...
...
@@ -30,7 +29,6 @@ rustc_codegen_utils = { path = "../librustc_codegen_utils" }
rustc_error_codes
=
{
path
=
"../librustc_error_codes"
}
rustc_interface
=
{
path
=
"../librustc_interface"
}
rustc_serialize
=
{
path
=
"../libserialize"
,
package
=
"serialize"
}
rustc_resolve
=
{
path
=
"../librustc_resolve"
}
syntax
=
{
path
=
"../libsyntax"
}
rustc_span
=
{
path
=
"../librustc_span"
}
...
...
src/librustc_lint/Cargo.toml
浏览文件 @
a366aa62
...
...
@@ -19,5 +19,4 @@ rustc_span = { path = "../librustc_span" }
rustc_data_structures
=
{
path
=
"../librustc_data_structures"
}
rustc_feature
=
{
path
=
"../librustc_feature"
}
rustc_index
=
{
path
=
"../librustc_index"
}
rustc_error_codes
=
{
path
=
"../librustc_error_codes"
}
rustc_session
=
{
path
=
"../librustc_session"
}
src/librustc_typeck/check/upvar.rs
浏览文件 @
a366aa62
...
...
@@ -212,7 +212,7 @@ fn analyze_closure(
}
}
// Returns a list of `
ClosureUpvar
`s for each upvar.
// Returns a list of `
Ty
`s for each upvar.
fn
final_upvar_tys
(
&
self
,
closure_id
:
hir
::
HirId
)
->
Vec
<
Ty
<
'tcx
>>
{
// Presently an unboxed closure type cannot "escape" out of a
// function, so we will only encounter ones that originated in the
...
...
src/libsyntax/Cargo.toml
浏览文件 @
a366aa62
...
...
@@ -10,11 +10,9 @@ path = "lib.rs"
doctest
=
false
[dependencies]
bitflags
=
"1.2.1"
rustc_serialize
=
{
path
=
"../libserialize"
,
package
=
"serialize"
}
log
=
"0.4"
scoped-tls
=
"1.0"
lazy_static
=
"1.0.0"
rustc_span
=
{
path
=
"../librustc_span"
}
errors
=
{
path
=
"../librustc_errors"
,
package
=
"rustc_errors"
}
rustc_data_structures
=
{
path
=
"../librustc_data_structures"
}
...
...
src/rustc/Cargo.toml
浏览文件 @
a366aa62
...
...
@@ -9,7 +9,6 @@ name = "rustc_binary"
path
=
"rustc.rs"
[dependencies]
rustc_target
=
{
path
=
"../librustc_target"
}
rustc_driver
=
{
path
=
"../librustc_driver"
}
# Make sure rustc_codegen_ssa ends up in the sysroot, because this
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录