Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
49b76a08
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
49b76a08
编写于
3月 30, 2015
作者:
N
Niko Matsakis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fallout in libsyntax
上级
d9530c01
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
27 addition
and
27 deletion
+27
-27
src/libsyntax/abi.rs
src/libsyntax/abi.rs
+4
-4
src/libsyntax/ast_map/blocks.rs
src/libsyntax/ast_map/blocks.rs
+2
-2
src/libsyntax/ast_map/mod.rs
src/libsyntax/ast_map/mod.rs
+1
-1
src/libsyntax/ast_util.rs
src/libsyntax/ast_util.rs
+1
-1
src/libsyntax/attr.rs
src/libsyntax/attr.rs
+3
-3
src/libsyntax/codemap.rs
src/libsyntax/codemap.rs
+2
-2
src/libsyntax/diagnostic.rs
src/libsyntax/diagnostic.rs
+2
-2
src/libsyntax/ext/base.rs
src/libsyntax/ext/base.rs
+1
-1
src/libsyntax/ext/deriving/cmp/ord.rs
src/libsyntax/ext/deriving/cmp/ord.rs
+1
-1
src/libsyntax/ext/mtwt.rs
src/libsyntax/ext/mtwt.rs
+1
-1
src/libsyntax/feature_gate.rs
src/libsyntax/feature_gate.rs
+1
-1
src/libsyntax/parse/obsolete.rs
src/libsyntax/parse/obsolete.rs
+1
-1
src/libsyntax/parse/parser.rs
src/libsyntax/parse/parser.rs
+2
-2
src/libsyntax/print/pp.rs
src/libsyntax/print/pp.rs
+2
-2
src/libsyntax/print/pprust.rs
src/libsyntax/print/pprust.rs
+2
-2
src/libsyntax/visit.rs
src/libsyntax/visit.rs
+1
-1
未找到文件。
src/libsyntax/abi.rs
浏览文件 @
49b76a08
...
...
@@ -15,7 +15,7 @@
use
std
::
fmt
;
#[derive(Copy,
PartialEq,
Eq,
Debug)]
#[derive(Copy,
Clone,
PartialEq,
Eq,
Debug)]
pub
enum
Os
{
OsWindows
,
OsMacos
,
...
...
@@ -49,7 +49,7 @@ pub enum Abi {
}
#[allow(non_camel_case_types)]
#[derive(Copy,
PartialEq,
Debug)]
#[derive(Copy,
Clone,
PartialEq,
Debug)]
pub
enum
Architecture
{
X86
,
X86_64
,
...
...
@@ -58,7 +58,7 @@ pub enum Architecture {
Mipsel
}
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
AbiData
{
abi
:
Abi
,
...
...
@@ -66,7 +66,7 @@ pub struct AbiData {
name
:
&
'static
str
,
}
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
enum
AbiArchitecture
{
/// Not a real ABI (e.g., intrinsic)
RustArch
,
...
...
src/libsyntax/ast_map/blocks.rs
浏览文件 @
49b76a08
...
...
@@ -40,7 +40,7 @@
/// - The default implementation for a trait method.
///
/// To construct one, use the `Code::from_node` function.
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
FnLikeNode
<
'a
>
{
node
:
ast_map
::
Node
<
'a
>
}
/// MaybeFnLike wraps a method that indicates if an object
...
...
@@ -80,7 +80,7 @@ fn is_fn_like(&self) -> bool {
/// Carries either an FnLikeNode or a Block, as these are the two
/// constructs that correspond to "code" (as in, something from which
/// we can construct a control-flow graph).
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
enum
Code
<
'a
>
{
FnLikeCode
(
FnLikeNode
<
'a
>
),
BlockCode
(
&
'a
Block
),
...
...
src/libsyntax/ast_map/mod.rs
浏览文件 @
49b76a08
...
...
@@ -90,7 +90,7 @@ pub fn path_to_string<PI: Iterator<Item=PathElem>>(path: PI) -> String {
})
}
#[derive(Copy,
Debug)]
#[derive(Copy,
Clone,
Debug)]
pub
enum
Node
<
'ast
>
{
NodeItem
(
&
'ast
Item
),
NodeForeignItem
(
&
'ast
ForeignItem
),
...
...
src/libsyntax/ast_util.rs
浏览文件 @
49b76a08
...
...
@@ -291,7 +291,7 @@ pub fn empty_generics() -> Generics {
// ______________________________________________________________________
// Enumerating the IDs which appear in an AST
#[derive(
RustcEncodable,
RustcDecodable,
Debug,
Copy
)]
#[derive(
Copy,
Clone,
RustcEncodable,
RustcDecodable,
Debug
)]
pub
struct
IdRange
{
pub
min
:
NodeId
,
pub
max
:
NodeId
,
...
...
src/libsyntax/attr.rs
浏览文件 @
49b76a08
...
...
@@ -282,7 +282,7 @@ pub fn find_crate_name(attrs: &[Attribute]) -> Option<InternedString> {
first_attr_value_str_by_name
(
attrs
,
"crate_name"
)
}
#[derive(Copy,
PartialEq)]
#[derive(Copy,
Clone,
PartialEq)]
pub
enum
InlineAttr
{
None
,
Hint
,
...
...
@@ -571,7 +571,7 @@ fn int_type_of_word(s: &str) -> Option<IntType> {
}
}
#[derive(PartialEq,
Debug,
RustcEncodable,
RustcDecodable,
Copy)]
#[derive(PartialEq,
Debug,
RustcEncodable,
RustcDecodable,
Copy
,
Clone
)]
pub
enum
ReprAttr
{
ReprAny
,
ReprInt
(
Span
,
IntType
),
...
...
@@ -590,7 +590,7 @@ pub fn is_ffi_safe(&self) -> bool {
}
}
#[derive(Eq,
Hash,
PartialEq,
Debug,
RustcEncodable,
RustcDecodable,
Copy)]
#[derive(Eq,
Hash,
PartialEq,
Debug,
RustcEncodable,
RustcDecodable,
Copy
,
Clone
)]
pub
enum
IntType
{
SignedInt
(
ast
::
IntTy
),
UnsignedInt
(
ast
::
UintTy
)
...
...
src/libsyntax/codemap.rs
浏览文件 @
49b76a08
...
...
@@ -47,7 +47,7 @@ pub trait Pos {
/// A character offset. Because of multibyte utf8 characters, a byte offset
/// is not equivalent to a character offset. The CodeMap will convert BytePos
/// values to CharPos values as necessary.
#[derive(Copy,
PartialEq,
Hash,
PartialOrd,
Debug)]
#[derive(Copy,
Clone,
PartialEq,
Hash,
PartialOrd,
Debug)]
pub
struct
CharPos
(
pub
usize
);
// FIXME: Lots of boilerplate in these impls, but so far my attempts to fix
...
...
@@ -305,7 +305,7 @@ pub struct FileLines {
}
/// Identifies an offset of a multi-byte character in a FileMap
#[derive(Copy,
RustcEncodable,
RustcDecodable,
Eq,
PartialEq)]
#[derive(Copy,
Clone,
RustcEncodable,
RustcDecodable,
Eq,
PartialEq)]
pub
struct
MultiByteChar
{
/// The absolute offset of the character in the CodeMap
pub
pos
:
BytePos
,
...
...
src/libsyntax/diagnostic.rs
浏览文件 @
49b76a08
...
...
@@ -71,12 +71,12 @@ fn custom_emit(&mut self, cm: &codemap::CodeMap,
/// This structure is used to signify that a task has panicked with a fatal error
/// from the diagnostics. You can use this with the `Any` trait to figure out
/// how a rustc task died (if so desired).
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
FatalError
;
/// Signifies that the compiler died with an explicit call to `.bug`
/// or `.span_bug` rather than a failed assertion, etc.
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
ExplicitBug
;
/// A span-handler is like a handler but also
...
...
src/libsyntax/ext/base.rs
浏览文件 @
49b76a08
...
...
@@ -318,7 +318,7 @@ fn make_pat(self: Box<Self>) -> Option<P<ast::Pat>> {
/// Fill-in macro expansion result, to allow compilation to continue
/// after hitting errors.
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
DummyResult
{
expr_only
:
bool
,
span
:
Span
...
...
src/libsyntax/ext/deriving/cmp/ord.rs
浏览文件 @
49b76a08
...
...
@@ -84,7 +84,7 @@ pub fn expand_deriving_ord<F>(cx: &mut ExtCtxt,
trait_def
.expand
(
cx
,
mitem
,
item
,
push
)
}
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
enum
OrderingOp
{
PartialCmpOp
,
LtOp
,
LeOp
,
GtOp
,
GeOp
,
}
...
...
src/libsyntax/ext/mtwt.rs
浏览文件 @
49b76a08
...
...
@@ -38,7 +38,7 @@ pub struct SCTable {
rename_memo
:
RefCell
<
HashMap
<
(
SyntaxContext
,
Ident
,
Name
),
SyntaxContext
>>
,
}
#[derive(PartialEq,
RustcEncodable,
RustcDecodable,
Hash,
Debug,
Copy)]
#[derive(PartialEq,
RustcEncodable,
RustcDecodable,
Hash,
Debug,
Copy
,
Clone
)]
pub
enum
SyntaxContext_
{
EmptyCtxt
,
Mark
(
Mrk
,
SyntaxContext
),
...
...
src/libsyntax/feature_gate.rs
浏览文件 @
49b76a08
...
...
@@ -286,7 +286,7 @@ enum Status {
(
"recursion_limit"
,
CrateLevel
),
];
#[derive(PartialEq,
Copy,
Debug)]
#[derive(PartialEq,
Copy,
Clone,
Debug)]
pub
enum
AttributeType
{
/// Normal, builtin attribute that is consumed
/// by the compiler before the unused_attribute check
...
...
src/libsyntax/parse/obsolete.rs
浏览文件 @
49b76a08
...
...
@@ -20,7 +20,7 @@
use
ptr
::
P
;
/// The specific types of unsupported syntax
#[derive(Copy,
PartialEq,
Eq,
Hash)]
#[derive(Copy,
Clone,
PartialEq,
Eq,
Hash)]
pub
enum
ObsoleteSyntax
{
ClosureKind
,
ExternCrateString
,
...
...
src/libsyntax/parse/parser.rs
浏览文件 @
49b76a08
...
...
@@ -96,7 +96,7 @@
/// How to parse a path. There are four different kinds of paths, all of which
/// are parsed somewhat differently.
#[derive(Copy,
PartialEq)]
#[derive(Copy,
Clone,
PartialEq)]
pub
enum
PathParsingMode
{
/// A path with no type parameters; e.g. `foo::bar::Baz`
NoTypesAllowed
,
...
...
@@ -109,7 +109,7 @@ pub enum PathParsingMode {
}
/// How to parse a bound, whether to allow bound modifiers such as `?`.
#[derive(Copy,
PartialEq)]
#[derive(Copy,
Clone,
PartialEq)]
pub
enum
BoundParsingMode
{
Bare
,
Modified
,
...
...
src/libsyntax/print/pp.rs
浏览文件 @
49b76a08
...
...
@@ -147,13 +147,13 @@ pub fn buf_str(toks: &[Token],
s
}
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
enum
PrintStackBreak
{
Fits
,
Broken
(
Breaks
),
}
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
PrintStackElem
{
offset
:
isize
,
pbreak
:
PrintStackBreak
...
...
src/libsyntax/print/pprust.rs
浏览文件 @
49b76a08
...
...
@@ -46,12 +46,12 @@ fn pre(&self, _state: &mut State, _node: AnnNode) -> io::Result<()> { Ok(()) }
fn
post
(
&
self
,
_
state
:
&
mut
State
,
_
node
:
AnnNode
)
->
io
::
Result
<
()
>
{
Ok
(())
}
}
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
NoAnn
;
impl
PpAnn
for
NoAnn
{}
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
struct
CurrentCommentAndLiteral
{
cur_cmnt
:
usize
,
cur_lit
:
usize
,
...
...
src/libsyntax/visit.rs
浏览文件 @
49b76a08
...
...
@@ -32,7 +32,7 @@
use
ptr
::
P
;
use
owned_slice
::
OwnedSlice
;
#[derive(Copy)]
#[derive(Copy
,
Clone
)]
pub
enum
FnKind
<
'a
>
{
/// fn foo() or extern "Abi" fn foo()
FkItemFn
(
Ident
,
&
'a
Generics
,
Unsafety
,
Abi
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录