Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
07c82e18
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,发现更多精彩内容 >>
未验证
提交
07c82e18
编写于
6月 23, 2019
作者:
M
Mazdak Farrokhzad
提交者:
GitHub
6月 23, 2019
浏览文件
操作
浏览文件
下载
差异文件
Rollup merge of #62057 - matthewjasper:deny-unnecessary-outlives, r=Mark-Simulacrum
Deny explicit_outlives_requirements in the compiler
上级
675ac94f
d0311e71
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
11 addition
and
16 deletion
+11
-16
src/librustc/hir/itemlikevisit.rs
src/librustc/hir/itemlikevisit.rs
+1
-1
src/librustc/infer/nll_relate/mod.rs
src/librustc/infer/nll_relate/mod.rs
+1
-1
src/librustc/lib.rs
src/librustc/lib.rs
+0
-1
src/librustc/ty/context.rs
src/librustc/ty/context.rs
+3
-3
src/librustc/ty/query/plumbing.rs
src/librustc/ty/query/plumbing.rs
+2
-2
src/librustc_codegen_llvm/lib.rs
src/librustc_codegen_llvm/lib.rs
+0
-1
src/librustc_codegen_ssa/lib.rs
src/librustc_codegen_ssa/lib.rs
+0
-1
src/librustc_mir/dataflow/graphviz.rs
src/librustc_mir/dataflow/graphviz.rs
+1
-1
src/librustc_mir/dataflow/mod.rs
src/librustc_mir/dataflow/mod.rs
+1
-1
src/librustc_mir/interpret/intern.rs
src/librustc_mir/interpret/intern.rs
+1
-1
src/librustc_mir/lib.rs
src/librustc_mir/lib.rs
+0
-1
src/librustc_mir/util/elaborate_drops.rs
src/librustc_mir/util/elaborate_drops.rs
+1
-1
src/librustc_typeck/lib.rs
src/librustc_typeck/lib.rs
+0
-1
未找到文件。
src/librustc/hir/itemlikevisit.rs
浏览文件 @
07c82e18
...
...
@@ -51,7 +51,7 @@ pub trait ItemLikeVisitor<'hir> {
fn
visit_impl_item
(
&
mut
self
,
impl_item
:
&
'hir
ImplItem
);
}
pub
struct
DeepVisitor
<
'v
,
V
:
'v
>
{
pub
struct
DeepVisitor
<
'v
,
V
>
{
visitor
:
&
'v
mut
V
,
}
...
...
src/librustc/infer/nll_relate/mod.rs
浏览文件 @
07c82e18
...
...
@@ -800,7 +800,7 @@ fn visit_region(&mut self, r: ty::Region<'tcx>) -> bool {
/// [blog post]: https://is.gd/0hKvIr
struct
TypeGeneralizer
<
'me
,
'tcx
,
D
>
where
D
:
TypeRelatingDelegate
<
'tcx
>
+
'me
,
D
:
TypeRelatingDelegate
<
'tcx
>
,
{
infcx
:
&
'me
InferCtxt
<
'me
,
'tcx
>
,
...
...
src/librustc/lib.rs
浏览文件 @
07c82e18
...
...
@@ -31,7 +31,6 @@
#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]
#![allow(explicit_outlives_requirements)]
#![feature(arbitrary_self_types)]
#![feature(box_patterns)]
...
...
src/librustc/ty/context.rs
浏览文件 @
07c82e18
...
...
@@ -231,7 +231,7 @@ pub struct CommonConsts<'tcx> {
pub
err
:
&
'tcx
Const
<
'tcx
>
,
}
pub
struct
LocalTableInContext
<
'a
,
V
:
'a
>
{
pub
struct
LocalTableInContext
<
'a
,
V
>
{
local_id_root
:
Option
<
DefId
>
,
data
:
&
'a
ItemLocalMap
<
V
>
}
...
...
@@ -294,7 +294,7 @@ fn index(&self, key: hir::HirId) -> &V {
}
}
pub
struct
LocalTableInContextMut
<
'a
,
V
:
'a
>
{
pub
struct
LocalTableInContextMut
<
'a
,
V
>
{
local_id_root
:
Option
<
DefId
>
,
data
:
&
'a
mut
ItemLocalMap
<
V
>
}
...
...
@@ -2171,7 +2171,7 @@ pub fn print_debug_stats(self) {
/// An entry in an interner.
struct
Interned
<
'tcx
,
T
:
'tcx
+
?
Sized
>
(
&
'tcx
T
);
struct
Interned
<
'tcx
,
T
:
?
Sized
>
(
&
'tcx
T
);
impl
<
'tcx
,
T
:
'tcx
+?
Sized
>
Clone
for
Interned
<
'tcx
,
T
>
{
fn
clone
(
&
self
)
->
Self
{
...
...
src/librustc/ty/query/plumbing.rs
浏览文件 @
07c82e18
...
...
@@ -89,7 +89,7 @@ fn default() -> QueryCache<'tcx, M> {
/// A type representing the responsibility to execute the job in the `job` field.
/// This will poison the relevant query if dropped.
pub
(
super
)
struct
JobOwner
<
'a
,
'tcx
,
Q
:
QueryDescription
<
'tcx
>
+
'a
>
{
pub
(
super
)
struct
JobOwner
<
'a
,
'tcx
,
Q
:
QueryDescription
<
'tcx
>>
{
cache
:
&
'a
Lock
<
QueryCache
<
'tcx
,
Q
>>
,
key
:
Q
::
Key
,
job
:
Lrc
<
QueryJob
<
'tcx
>>
,
...
...
@@ -230,7 +230,7 @@ pub struct CycleError<'tcx> {
}
/// The result of `try_get_lock`
pub
(
super
)
enum
TryGetJob
<
'a
,
'tcx
,
D
:
QueryDescription
<
'tcx
>
+
'a
>
{
pub
(
super
)
enum
TryGetJob
<
'a
,
'tcx
,
D
:
QueryDescription
<
'tcx
>>
{
/// The query is not yet started. Contains a guard to the cache eventually used to start it.
NotYetStarted
(
JobOwner
<
'a
,
'tcx
,
D
>
),
...
...
src/librustc_codegen_llvm/lib.rs
浏览文件 @
07c82e18
...
...
@@ -24,7 +24,6 @@
#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]
#![allow(explicit_outlives_requirements)]
use
back
::
write
::{
create_target_machine
,
create_informational_target_machine
};
use
syntax_pos
::
symbol
::
Symbol
;
...
...
src/librustc_codegen_ssa/lib.rs
浏览文件 @
07c82e18
...
...
@@ -15,7 +15,6 @@
#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]
#![allow(explicit_outlives_requirements)]
#![recursion_limit=
"256"
]
...
...
src/librustc_mir/dataflow/graphviz.rs
浏览文件 @
07c82e18
...
...
@@ -30,7 +30,7 @@ fn body(&self) -> &Body<'tcx> { self.flow_state.body() }
fn
flow_state
(
&
self
)
->
&
DataflowState
<
'tcx
,
Self
::
BD
>
{
&
self
.flow_state.flow_state
}
}
struct
Graph
<
'a
,
'tcx
,
MWF
:
'a
,
P
>
where
struct
Graph
<
'a
,
'tcx
,
MWF
,
P
>
where
MWF
:
MirWithFlowState
<
'tcx
>
{
mbcx
:
&
'a
MWF
,
...
...
src/librustc_mir/dataflow/mod.rs
浏览文件 @
07c82e18
...
...
@@ -181,7 +181,7 @@ pub(crate) fn run<P>(
struct
PropagationContext
<
'b
,
'a
,
'tcx
,
O
>
where
O
:
'b
+
BitDenotation
<
'tcx
>
,
O
:
BitDenotation
<
'tcx
>
,
{
builder
:
&
'b
mut
DataflowAnalysis
<
'a
,
'tcx
,
O
>
,
}
...
...
src/librustc_mir/interpret/intern.rs
浏览文件 @
07c82e18
...
...
@@ -21,7 +21,7 @@
};
use
crate
::
const_eval
::{
CompileTimeInterpreter
,
CompileTimeEvalContext
};
struct
InternVisitor
<
'rt
,
'mir
:
'rt
,
'tcx
:
'rt
+
'mir
>
{
struct
InternVisitor
<
'rt
,
'mir
,
'tcx
>
{
/// previously encountered safe references
ref_tracking
:
&
'rt
mut
RefTracking
<
(
MPlaceTy
<
'tcx
>
,
Mutability
,
InternMode
)
>
,
ecx
:
&
'rt
mut
CompileTimeEvalContext
<
'mir
,
'tcx
>
,
...
...
src/librustc_mir/lib.rs
浏览文件 @
07c82e18
...
...
@@ -30,7 +30,6 @@
#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]
#![allow(explicit_outlives_requirements)]
#[macro_use]
extern
crate
log
;
#[macro_use]
...
...
src/librustc_mir/util/elaborate_drops.rs
浏览文件 @
07c82e18
...
...
@@ -92,7 +92,7 @@ pub trait DropElaborator<'a, 'tcx>: fmt::Debug {
#[derive(Debug)]
struct
DropCtxt
<
'l
,
'b
,
'tcx
,
D
>
where
D
:
DropElaborator
<
'b
,
'tcx
>
+
'l
,
D
:
DropElaborator
<
'b
,
'tcx
>
,
{
elaborator
:
&
'l
mut
D
,
...
...
src/librustc_typeck/lib.rs
浏览文件 @
07c82e18
...
...
@@ -75,7 +75,6 @@
#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]
#![allow(explicit_outlives_requirements)]
#[macro_use]
extern
crate
log
;
#[macro_use]
extern
crate
syntax
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录