Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
0f081832
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,发现更多精彩内容 >>
提交
0f081832
编写于
8月 06, 2021
作者:
M
Marcel Hellwig
提交者:
est31
8月 18, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove box_syntax uses from cranelift and tools
上级
dd4cc0c5
变更
16
展开全部
隐藏空白更改
内联
并排
Showing
16 changed file
with
304 addition
and
298 deletion
+304
-298
compiler/rustc_codegen_cranelift/example/alloc_example.rs
compiler/rustc_codegen_cranelift/example/alloc_example.rs
+1
-1
compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
.../rustc_codegen_cranelift/example/mini_core_hello_world.rs
+1
-1
compiler/rustc_codegen_cranelift/example/mod_bench.rs
compiler/rustc_codegen_cranelift/example/mod_bench.rs
+1
-1
src/librustdoc/clean/auto_trait.rs
src/librustdoc/clean/auto_trait.rs
+2
-2
src/librustdoc/clean/blanket_impl.rs
src/librustdoc/clean/blanket_impl.rs
+3
-3
src/librustdoc/clean/inline.rs
src/librustdoc/clean/inline.rs
+12
-6
src/librustdoc/clean/mod.rs
src/librustdoc/clean/mod.rs
+23
-21
src/librustdoc/clean/types.rs
src/librustdoc/clean/types.rs
+2
-2
src/librustdoc/core.rs
src/librustdoc/core.rs
+1
-1
src/librustdoc/doctest.rs
src/librustdoc/doctest.rs
+6
-6
src/librustdoc/fold.rs
src/librustdoc/fold.rs
+4
-4
src/librustdoc/lib.rs
src/librustdoc/lib.rs
+0
-1
src/librustdoc/passes/collect_intra_doc_links.rs
src/librustdoc/passes/collect_intra_doc_links.rs
+1
-1
src/tools/clippy/clippy_lints/src/booleans.rs
src/tools/clippy/clippy_lints/src/booleans.rs
+1
-1
src/tools/clippy/clippy_lints/src/doc.rs
src/tools/clippy/clippy_lints/src/doc.rs
+2
-2
src/tools/clippy/clippy_lints/src/lib.rs
src/tools/clippy/clippy_lints/src/lib.rs
+244
-245
未找到文件。
compiler/rustc_codegen_cranelift/example/alloc_example.rs
浏览文件 @
0f081832
#![feature(start,
box_syntax,
core_intrinsics,
alloc_prelude,
alloc_error_handler)]
#![feature(start,
core_intrinsics,
alloc_prelude,
alloc_error_handler)]
#![no_std]
extern
crate
alloc
;
...
...
compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
浏览文件 @
0f081832
#![feature(no_core,
lang_items,
box_syntax,
never_type,
linkage,
extern_types,
thread_local)]
#![feature(no_core,
lang_items,
never_type,
linkage,
extern_types,
thread_local)]
#![no_core]
#![allow(dead_code,
non_camel_case_types)]
...
...
compiler/rustc_codegen_cranelift/example/mod_bench.rs
浏览文件 @
0f081832
#![feature(start,
box_syntax,
core_intrinsics,
lang_items)]
#![feature(start,
core_intrinsics,
lang_items)]
#![no_std]
#[cfg_attr(unix,
link(name
=
"c"
))]
...
...
src/librustdoc/clean/auto_trait.rs
浏览文件 @
0f081832
...
...
@@ -114,7 +114,7 @@ fn generate_for_trait(
attrs
:
Default
::
default
(),
visibility
:
Inherited
,
def_id
:
ItemId
::
Auto
{
trait_
:
trait_def_id
,
for_
:
item_def_id
},
kind
:
box
ImplItem
(
Impl
{
kind
:
Box
::
new
(
ImplItem
(
Impl
{
span
:
Span
::
dummy
(),
unsafety
:
hir
::
Unsafety
::
Normal
,
generics
:
new_generics
,
...
...
@@ -124,7 +124,7 @@ fn generate_for_trait(
negative_polarity
,
synthetic
:
true
,
blanket_impl
:
None
,
}),
})
)
,
cfg
:
None
,
})
}
...
...
src/librustdoc/clean/blanket_impl.rs
浏览文件 @
0f081832
...
...
@@ -97,7 +97,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
attrs
:
Default
::
default
(),
visibility
:
Inherited
,
def_id
:
ItemId
::
Blanket
{
impl_id
:
impl_def_id
,
for_
:
item_def_id
},
kind
:
box
ImplItem
(
Impl
{
kind
:
Box
::
new
(
ImplItem
(
Impl
{
span
:
Span
::
new
(
self
.cx.tcx
.def_span
(
impl_def_id
)),
unsafety
:
hir
::
Unsafety
::
Normal
,
generics
:
(
...
...
@@ -118,8 +118,8 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
.clean
(
self
.cx
),
negative_polarity
:
false
,
synthetic
:
false
,
blanket_impl
:
Some
(
box
trait_ref
.self_ty
()
.clean
(
self
.cx
)),
}),
blanket_impl
:
Some
(
Box
::
new
(
trait_ref
.self_ty
()
.clean
(
self
.cx
)
)),
})
)
,
cfg
:
None
,
});
}
...
...
src/librustdoc/clean/inline.rs
浏览文件 @
0f081832
...
...
@@ -124,8 +124,14 @@
let
(
attrs
,
cfg
)
=
merge_attrs
(
cx
,
Some
(
parent_module
),
load_attrs
(
cx
,
did
),
attrs_clone
);
cx
.inlined
.insert
(
did
.into
());
let
mut
item
=
clean
::
Item
::
from_def_id_and_attrs_and_parts
(
did
,
Some
(
name
),
kind
,
box
attrs
,
cx
,
cfg
);
let
mut
item
=
clean
::
Item
::
from_def_id_and_attrs_and_parts
(
did
,
Some
(
name
),
kind
,
Box
::
new
(
attrs
),
cx
,
cfg
,
);
if
let
Some
(
import_def_id
)
=
import_def_id
{
// The visibility needs to reflect the one from the reexport and not from the "source" DefId.
item
.visibility
=
cx
.tcx
.visibility
(
import_def_id
)
.clean
(
cx
);
...
...
@@ -458,7 +464,7 @@ fn merge_attrs(
synthetic
:
false
,
blanket_impl
:
None
,
}),
box
merged_attrs
,
Box
::
new
(
merged_attrs
)
,
cx
,
cfg
,
));
...
...
@@ -486,10 +492,10 @@ fn build_module(
let
prim_ty
=
clean
::
PrimitiveType
::
from
(
p
);
items
.push
(
clean
::
Item
{
name
:
None
,
attrs
:
box
clean
::
Attributes
::
default
(
),
attrs
:
Box
::
new
(
clean
::
Attributes
::
default
()
),
def_id
:
ItemId
::
Primitive
(
prim_ty
,
did
.krate
),
visibility
:
clean
::
Public
,
kind
:
box
clean
::
ImportItem
(
clean
::
Import
::
new_simple
(
kind
:
Box
::
new
(
clean
::
ImportItem
(
clean
::
Import
::
new_simple
(
item
.ident.name
,
clean
::
ImportSource
{
path
:
clean
::
Path
{
...
...
@@ -506,7 +512,7 @@ fn build_module(
did
:
None
,
},
true
,
)),
))
)
,
cfg
:
None
,
});
}
else
if
let
Some
(
i
)
=
...
...
src/librustdoc/clean/mod.rs
浏览文件 @
0f081832
...
...
@@ -403,8 +403,8 @@ fn clean(&self, cx: &mut DocContext<'_>) -> Type {
Type
::
QPath
{
name
:
cx
.tcx
.associated_item
(
self
.item_def_id
)
.ident.name
,
self_def_id
:
self_type
.def_id
(),
self_type
:
box
self_type
,
trait_
:
box
trait_
,
self_type
:
Box
::
new
(
self_type
)
,
trait_
:
Box
::
new
(
trait_
)
,
}
}
}
...
...
@@ -1305,8 +1305,8 @@ fn clean_qpath(hir_ty: &hir::Ty<'_>, cx: &mut DocContext<'_>) -> Type {
Type
::
QPath
{
name
:
p
.segments
.last
()
.expect
(
"segments were empty"
)
.ident.name
,
self_def_id
:
Some
(
DefId
::
local
(
qself
.hir_id.owner.local_def_index
)),
self_type
:
box
qself
.clean
(
cx
),
trait_
:
box
resolve_type
(
cx
,
trait_path
,
hir_id
),
self_type
:
Box
::
new
(
qself
.clean
(
cx
)
),
trait_
:
Box
::
new
(
resolve_type
(
cx
,
trait_path
,
hir_id
)
),
}
}
hir
::
QPath
::
TypeRelative
(
ref
qself
,
ref
segment
)
=>
{
...
...
@@ -1320,8 +1320,8 @@ fn clean_qpath(hir_ty: &hir::Ty<'_>, cx: &mut DocContext<'_>) -> Type {
Type
::
QPath
{
name
:
segment
.ident.name
,
self_def_id
:
res
.opt_def_id
(),
self_type
:
box
qself
.clean
(
cx
),
trait_
:
box
resolve_type
(
cx
,
trait_path
,
hir_id
),
self_type
:
Box
::
new
(
qself
.clean
(
cx
)
),
trait_
:
Box
::
new
(
resolve_type
(
cx
,
trait_path
,
hir_id
)
),
}
}
hir
::
QPath
::
LangItem
(
..
)
=>
bug!
(
"clean: requiring documentation of lang item"
),
...
...
@@ -1334,7 +1334,7 @@ fn clean(&self, cx: &mut DocContext<'_>) -> Type {
match
self
.kind
{
TyKind
::
Never
=>
Never
,
TyKind
::
Ptr
(
ref
m
)
=>
RawPointer
(
m
.mutbl
,
box
m
.ty
.clean
(
cx
)),
TyKind
::
Ptr
(
ref
m
)
=>
RawPointer
(
m
.mutbl
,
Box
::
new
(
m
.ty
.clean
(
cx
)
)),
TyKind
::
Rptr
(
ref
l
,
ref
m
)
=>
{
// There are two times a `Fresh` lifetime can be created:
// 1. For `&'_ x`, written by the user. This corresponds to `lower_lifetime` in `rustc_ast_lowering`.
...
...
@@ -1346,9 +1346,9 @@ fn clean(&self, cx: &mut DocContext<'_>) -> Type {
let
elided
=
l
.is_elided
()
||
matches!
(
l
.name
,
LifetimeName
::
Param
(
ParamName
::
Fresh
(
_
)));
let
lifetime
=
if
elided
{
None
}
else
{
Some
(
l
.clean
(
cx
))
};
BorrowedRef
{
lifetime
,
mutability
:
m
.mutbl
,
type_
:
box
m
.ty
.clean
(
cx
)
}
BorrowedRef
{
lifetime
,
mutability
:
m
.mutbl
,
type_
:
Box
::
new
(
m
.ty
.clean
(
cx
)
)
}
}
TyKind
::
Slice
(
ref
ty
)
=>
Slice
(
box
ty
.clean
(
cx
)),
TyKind
::
Slice
(
ref
ty
)
=>
Slice
(
Box
::
new
(
ty
.clean
(
cx
)
)),
TyKind
::
Array
(
ref
ty
,
ref
length
)
=>
{
let
def_id
=
cx
.tcx
.hir
()
.local_def_id
(
length
.hir_id
);
// NOTE(min_const_generics): We can't use `const_eval_poly` for constants
...
...
@@ -1361,7 +1361,7 @@ fn clean(&self, cx: &mut DocContext<'_>) -> Type {
let
ct
=
ty
::
Const
::
from_anon_const
(
cx
.tcx
,
def_id
);
let
param_env
=
cx
.tcx
.param_env
(
def_id
);
let
length
=
print_const
(
cx
,
ct
.eval
(
cx
.tcx
,
param_env
));
Array
(
box
ty
.clean
(
cx
),
length
)
Array
(
Box
::
new
(
ty
.clean
(
cx
)
),
length
)
}
TyKind
::
Tup
(
ref
tys
)
=>
Tuple
(
tys
.clean
(
cx
)),
TyKind
::
OpaqueDef
(
item_id
,
_
)
=>
{
...
...
@@ -1378,7 +1378,7 @@ fn clean(&self, cx: &mut DocContext<'_>) -> Type {
let
lifetime
=
if
!
lifetime
.is_elided
()
{
Some
(
lifetime
.clean
(
cx
))
}
else
{
None
};
DynTrait
(
bounds
,
lifetime
)
}
TyKind
::
BareFn
(
ref
barefn
)
=>
BareFunction
(
box
barefn
.clean
(
cx
)),
TyKind
::
BareFn
(
ref
barefn
)
=>
BareFunction
(
Box
::
new
(
barefn
.clean
(
cx
)
)),
TyKind
::
Infer
|
TyKind
::
Err
=>
Infer
,
TyKind
::
Typeof
(
..
)
=>
panic!
(
"unimplemented type {:?}"
,
self
.kind
),
}
...
...
@@ -1428,27 +1428,29 @@ fn clean(&self, cx: &mut DocContext<'_>) -> Type {
ty
::
Uint
(
uint_ty
)
=>
Primitive
(
uint_ty
.into
()),
ty
::
Float
(
float_ty
)
=>
Primitive
(
float_ty
.into
()),
ty
::
Str
=>
Primitive
(
PrimitiveType
::
Str
),
ty
::
Slice
(
ty
)
=>
Slice
(
box
ty
.clean
(
cx
)),
ty
::
Slice
(
ty
)
=>
Slice
(
Box
::
new
(
ty
.clean
(
cx
)
)),
ty
::
Array
(
ty
,
n
)
=>
{
let
mut
n
=
cx
.tcx
.lift
(
n
)
.expect
(
"array lift failed"
);
n
=
n
.eval
(
cx
.tcx
,
ty
::
ParamEnv
::
reveal_all
());
let
n
=
print_const
(
cx
,
n
);
Array
(
box
ty
.clean
(
cx
),
n
)
}
ty
::
RawPtr
(
mt
)
=>
RawPointer
(
mt
.mutbl
,
box
mt
.ty
.clean
(
cx
)),
ty
::
Ref
(
r
,
ty
,
mutbl
)
=>
{
BorrowedRef
{
lifetime
:
r
.clean
(
cx
),
mutability
:
mutbl
,
type_
:
box
ty
.clean
(
cx
)
}
Array
(
Box
::
new
(
ty
.clean
(
cx
)),
n
)
}
ty
::
RawPtr
(
mt
)
=>
RawPointer
(
mt
.mutbl
,
Box
::
new
(
mt
.ty
.clean
(
cx
))),
ty
::
Ref
(
r
,
ty
,
mutbl
)
=>
BorrowedRef
{
lifetime
:
r
.clean
(
cx
),
mutability
:
mutbl
,
type_
:
Box
::
new
(
ty
.clean
(
cx
)),
},
ty
::
FnDef
(
..
)
|
ty
::
FnPtr
(
_
)
=>
{
let
ty
=
cx
.tcx
.lift
(
*
self
)
.expect
(
"FnPtr lift failed"
);
let
sig
=
ty
.fn_sig
(
cx
.tcx
);
let
def_id
=
DefId
::
local
(
CRATE_DEF_INDEX
);
BareFunction
(
box
BareFunctionDecl
{
BareFunction
(
Box
::
new
(
BareFunctionDecl
{
unsafety
:
sig
.unsafety
(),
generic_params
:
Vec
::
new
(),
decl
:
(
def_id
,
sig
)
.clean
(
cx
),
abi
:
sig
.abi
(),
})
})
)
}
ty
::
Adt
(
def
,
substs
)
=>
{
let
did
=
def
.did
;
...
...
@@ -1988,10 +1990,10 @@ fn clean_extern_crate(
// FIXME: using `from_def_id_and_kind` breaks `rustdoc/masked` for some reason
vec!
[
Item
{
name
:
Some
(
name
),
attrs
:
box
attrs
.clean
(
cx
),
attrs
:
Box
::
new
(
attrs
.clean
(
cx
)
),
def_id
:
crate_def_id
.into
(),
visibility
:
krate
.vis
.clean
(
cx
),
kind
:
box
ExternCrateItem
{
src
:
orig_name
}
,
kind
:
Box
::
new
(
ExternCrateItem
{
src
:
orig_name
})
,
cfg
:
attrs
.cfg
(
cx
.sess
()),
}]
}
...
...
src/librustdoc/clean/types.rs
浏览文件 @
0f081832
...
...
@@ -416,7 +416,7 @@ pub fn from_def_id_and_parts(
def_id
,
name
,
kind
,
box
ast_attrs
.clean
(
cx
),
Box
::
new
(
ast_attrs
.clean
(
cx
)
),
cx
,
ast_attrs
.cfg
(
cx
.sess
()),
)
...
...
@@ -434,7 +434,7 @@ pub fn from_def_id_and_attrs_and_parts(
Item
{
def_id
:
def_id
.into
(),
kind
:
box
kind
,
kind
:
Box
::
new
(
kind
)
,
name
,
attrs
,
visibility
:
cx
.tcx
.visibility
(
def_id
)
.clean
(
cx
),
...
...
src/librustdoc/core.rs
浏览文件 @
0f081832
...
...
@@ -265,7 +265,7 @@ impl<'tcx> DocContext<'tcx> {
stderr
:
None
,
lint_caps
,
parse_sess_created
:
None
,
register_lints
:
Some
(
box
crate
::
lint
::
register_lints
),
register_lints
:
Some
(
Box
::
new
(
crate
::
lint
::
register_lints
)
),
override_queries
:
Some
(|
_
sess
,
providers
,
_
external_providers
|
{
// Most lints will require typechecking, so just don't run them.
providers
.lint_mod
=
|
_
,
_
|
{};
...
...
src/librustdoc/doctest.rs
浏览文件 @
0f081832
...
...
@@ -99,7 +99,7 @@
stderr
:
None
,
lint_caps
,
parse_sess_created
:
None
,
register_lints
:
Some
(
box
crate
::
lint
::
register_lints
),
register_lints
:
Some
(
Box
::
new
(
crate
::
lint
::
register_lints
)
),
override_queries
:
None
,
make_codegen_backend
:
None
,
registry
:
rustc_driver
::
diagnostics_registry
(),
...
...
@@ -549,10 +549,10 @@ fn drop(&mut self) {
.supports_color
();
let
emitter
=
EmitterWriter
::
new
(
box
io
::
sink
(
),
None
,
false
,
false
,
false
,
None
,
false
);
EmitterWriter
::
new
(
Box
::
new
(
io
::
sink
()
),
None
,
false
,
false
,
false
,
None
,
false
);
// FIXME(misdreavus): pass `-Z treat-err-as-bug` to the doctest parser
let
handler
=
Handler
::
with_emitter
(
false
,
None
,
box
emitter
);
let
handler
=
Handler
::
with_emitter
(
false
,
None
,
Box
::
new
(
emitter
)
);
let
sess
=
ParseSess
::
with_span_handler
(
handler
,
sm
);
let
mut
found_main
=
false
;
...
...
@@ -962,7 +962,7 @@ fn add_test(&mut self, test: String, config: LangString, line: usize) {
no_run
,
test_type
:
test
::
TestType
::
DocTest
,
},
testfn
:
test
::
DynTestFn
(
box
move
||
{
testfn
:
test
::
DynTestFn
(
Box
::
new
(
move
||
{
let
report_unused_externs
=
|
uext
|
{
unused_externs
.lock
()
.unwrap
()
.push
(
uext
);
};
...
...
@@ -1042,9 +1042,9 @@ fn add_test(&mut self, test: String, config: LangString, line: usize) {
}
}
panic
::
resume_unwind
(
box
(
));
panic
::
resume_unwind
(
Box
::
new
(()
));
}
}),
})
)
,
});
}
...
...
src/librustdoc/fold.rs
浏览文件 @
0f081832
...
...
@@ -2,7 +2,7 @@
crate
fn
strip_item
(
mut
item
:
Item
)
->
Item
{
if
!
matches!
(
*
item
.kind
,
StrippedItem
(
..
))
{
item
.kind
=
box
StrippedItem
(
item
.kind
);
item
.kind
=
Box
::
new
(
StrippedItem
(
item
.kind
)
);
}
item
}
...
...
@@ -65,10 +65,10 @@ fn fold_inner_recur(&mut self, kind: ItemKind) -> ItemKind {
/// don't override!
fn
fold_item_recur
(
&
mut
self
,
mut
item
:
Item
)
->
Item
{
item
.kind
=
box
match
*
item
.kind
{
StrippedItem
(
box
i
)
=>
StrippedItem
(
box
self
.fold_inner_recur
(
i
)),
item
.kind
=
Box
::
new
(
match
*
item
.kind
{
StrippedItem
(
box
i
)
=>
StrippedItem
(
Box
::
new
(
self
.fold_inner_recur
(
i
)
)),
_
=>
self
.fold_inner_recur
(
*
item
.kind
),
};
}
)
;
item
}
...
...
src/librustdoc/lib.rs
浏览文件 @
0f081832
...
...
@@ -5,7 +5,6 @@
#![feature(rustc_private)]
#![feature(array_methods)]
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(in_band_lifetimes)]
#![feature(nll)]
#![feature(test)]
...
...
src/librustdoc/passes/collect_intra_doc_links.rs
浏览文件 @
0f081832
...
...
@@ -61,7 +61,7 @@ enum ErrorKind<'a> {
impl
<
'a
>
From
<
ResolutionFailure
<
'a
>>
for
ErrorKind
<
'a
>
{
fn
from
(
err
:
ResolutionFailure
<
'a
>
)
->
Self
{
ErrorKind
::
Resolve
(
box
err
)
ErrorKind
::
Resolve
(
Box
::
new
(
err
)
)
}
}
...
...
src/tools/clippy/clippy_lints/src/booleans.rs
浏览文件 @
0f081832
...
...
@@ -116,7 +116,7 @@ fn negate(bin_op_kind: BinOpKind) -> Option<BinOpKind> {
// prevent folding of `cfg!` macros and the like
if
!
e
.span
.from_expansion
()
{
match
&
e
.kind
{
ExprKind
::
Unary
(
UnOp
::
Not
,
inner
)
=>
return
Ok
(
Bool
::
Not
(
box
self
.run
(
inner
)
?
)),
ExprKind
::
Unary
(
UnOp
::
Not
,
inner
)
=>
return
Ok
(
Bool
::
Not
(
Box
::
new
(
self
.run
(
inner
)
?
)
)),
ExprKind
::
Binary
(
binop
,
lhs
,
rhs
)
=>
match
&
binop
.node
{
BinOpKind
::
Or
=>
{
return
Ok
(
Bool
::
Or
(
self
.extract
(
BinOpKind
::
Or
,
&
[
lhs
,
rhs
],
Vec
::
new
())
?
));
...
...
src/tools/clippy/clippy_lints/src/doc.rs
浏览文件 @
0f081832
...
...
@@ -578,8 +578,8 @@ fn has_needless_main(code: String, edition: Edition) -> bool {
let
filename
=
FileName
::
anon_source_code
(
&
code
);
let
sm
=
Lrc
::
new
(
SourceMap
::
new
(
FilePathMapping
::
empty
()));
let
emitter
=
EmitterWriter
::
new
(
box
io
::
sink
(
),
None
,
false
,
false
,
false
,
None
,
false
);
let
handler
=
Handler
::
with_emitter
(
false
,
None
,
box
emitter
);
let
emitter
=
EmitterWriter
::
new
(
Box
::
new
(
io
::
sink
()
),
None
,
false
,
false
,
false
,
None
,
false
);
let
handler
=
Handler
::
with_emitter
(
false
,
None
,
Box
::
new
(
emitter
)
);
let
sess
=
ParseSess
::
with_span_handler
(
handler
,
sm
);
let
mut
parser
=
match
maybe_new_parser_from_source_str
(
&
sess
,
filename
,
code
)
{
...
...
src/tools/clippy/clippy_lints/src/lib.rs
浏览文件 @
0f081832
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录