Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
3967e1c9
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,发现更多精彩内容 >>
提交
3967e1c9
编写于
10月 06, 2015
作者:
C
Carlos Liam
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean newlines
上级
2f60768e
变更
29
隐藏空白更改
内联
并排
Showing
29 changed file
with
45 addition
and
46 deletion
+45
-46
README.md
README.md
+1
-1
src/doc/trpl/references-and-borrowing.md
src/doc/trpl/references-and-borrowing.md
+2
-2
src/libbacktrace/ChangeLog.jit
src/libbacktrace/ChangeLog.jit
+1
-1
src/libbacktrace/alloc.c
src/libbacktrace/alloc.c
+1
-1
src/libbacktrace/atomic.c
src/libbacktrace/atomic.c
+1
-1
src/libbacktrace/backtrace-supported.h.in
src/libbacktrace/backtrace-supported.h.in
+1
-1
src/libbacktrace/backtrace.c
src/libbacktrace/backtrace.c
+1
-1
src/libbacktrace/backtrace.h
src/libbacktrace/backtrace.h
+1
-1
src/libbacktrace/btest.c
src/libbacktrace/btest.c
+1
-1
src/libbacktrace/configure.ac
src/libbacktrace/configure.ac
+1
-1
src/libbacktrace/dwarf.c
src/libbacktrace/dwarf.c
+3
-3
src/libbacktrace/dwarf2.def
src/libbacktrace/dwarf2.def
+7
-7
src/libbacktrace/dwarf2.h
src/libbacktrace/dwarf2.h
+1
-1
src/libbacktrace/elf.c
src/libbacktrace/elf.c
+1
-1
src/libbacktrace/fileline.c
src/libbacktrace/fileline.c
+1
-1
src/libbacktrace/internal.h
src/libbacktrace/internal.h
+1
-1
src/libbacktrace/mmap.c
src/libbacktrace/mmap.c
+1
-1
src/libbacktrace/mmapio.c
src/libbacktrace/mmapio.c
+1
-1
src/libbacktrace/nounwind.c
src/libbacktrace/nounwind.c
+1
-1
src/libbacktrace/posix.c
src/libbacktrace/posix.c
+1
-1
src/libbacktrace/print.c
src/libbacktrace/print.c
+1
-1
src/libbacktrace/read.c
src/libbacktrace/read.c
+1
-1
src/libbacktrace/simple.c
src/libbacktrace/simple.c
+1
-1
src/libbacktrace/sort.c
src/libbacktrace/sort.c
+1
-1
src/libbacktrace/state.c
src/libbacktrace/state.c
+1
-1
src/libbacktrace/stest.c
src/libbacktrace/stest.c
+1
-1
src/libbacktrace/unknown.c
src/libbacktrace/unknown.c
+1
-1
src/test/run-pass/issue-11577.rs
src/test/run-pass/issue-11577.rs
+0
-1
src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs
...ass/lexer-crlf-line-endings-string-literal-doc-comment.rs
+9
-9
未找到文件。
README.md
浏览文件 @
3967e1c9
...
...
@@ -67,7 +67,7 @@ Read ["Installing Rust"] from [The Book].
```
sh
# Update package mirrors (may be needed if you have a fresh install of MSYS2)
$
pacman
-Sy
pacman-mirrors
# Choose one based on platform:
$
pacman
-S
mingw-w64-i686-toolchain
$
pacman
-S
mingw-w64-x86_64-toolchain
...
...
src/doc/trpl/references-and-borrowing.md
浏览文件 @
3967e1c9
...
...
@@ -363,7 +363,7 @@ note: reference must be valid for the block suffix following statement 0 at
let y: &i32;
let x = 5;
y = &x;
println!("{}", y);
}
...
...
@@ -371,7 +371,7 @@ note: ...but borrowed value is only valid for the block suffix following
statement 1 at 3:14
let x = 5;
y = &x;
println!("{}", y);
}
```
...
...
src/libbacktrace/ChangeLog.jit
浏览文件 @
3967e1c9
...
...
@@ -6,7 +6,7 @@
* configure.ac: Add --enable-host-shared.
* configure: Regenerate.
Copyright (C) 2013-2014 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
...
...
src/libbacktrace/alloc.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/atomic.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/backtrace-supported.h.in
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/backtrace.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/backtrace.h
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/btest.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/configure.ac
浏览文件 @
3967e1c9
...
...
@@ -12,7 +12,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# (3) The name of the author may not be used to
# endorse or promote products derived from this software without
# specific prior written permission.
...
...
src/libbacktrace/dwarf.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
@@ -1605,7 +1605,7 @@ read_line_header (struct backtrace_state *state, struct unit *u,
if
(
!
advance
(
line_buf
,
hdrlen
))
return
0
;
hdr
->
min_insn_len
=
read_byte
(
&
hdr_buf
);
if
(
hdr
->
version
<
4
)
hdr
->
max_ops_per_insn
=
1
;
...
...
@@ -1614,7 +1614,7 @@ read_line_header (struct backtrace_state *state, struct unit *u,
/* We don't care about default_is_stmt. */
read_byte
(
&
hdr_buf
);
hdr
->
line_base
=
read_sbyte
(
&
hdr_buf
);
hdr
->
line_range
=
read_byte
(
&
hdr_buf
);
...
...
src/libbacktrace/dwarf2.def
浏览文件 @
3967e1c9
...
...
@@ -47,27 +47,27 @@
/* This file declares various DWARF-related constants using a set of
macros which can be redefined by the including file.
The macros are in sections. Each section corresponds to a single
set of DWARF constants and has a corresponding key. The key is
used in all the macro names.
The sections are TAG (for DW_TAG_ constants), FORM (DW_FORM_), AT
(DW_AT_), OP (DW_OP_), ATE (DW_ATE_), and CFA (DW_CFA_).
Using TAG as an example, the following macros may be used for each
key:
DW_FIRST_TAG(name, value) - Introduce the first DW_TAG constant.
DW_TAG(name, value) - Define a subsequent constant.
DW_TAG_DUP(name, value) - Define a subsequent constant whose value
is a duplicate of some other constant. Not all keys use the _DUP
macro form. If more than one name shares a value, then the base
(DW_TAG) form will be the preferred name and DW_TAG_DUP will hold
any alternate names.
DW_END_TAG - Invoked at the end of the DW_TAG constants. */
DW_FIRST_TAG
(
DW_TAG_padding
,
0x00
)
...
...
src/libbacktrace/dwarf2.h
浏览文件 @
3967e1c9
...
...
@@ -352,7 +352,7 @@ enum dwarf_macro_record_type
DW_MACRO_GNU_lo_user
=
0xe0
,
DW_MACRO_GNU_hi_user
=
0xff
};
/* @@@ For use with GNU frame unwind information. */
#define DW_EH_PE_absptr 0x00
...
...
src/libbacktrace/elf.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/fileline.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/internal.h
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/mmap.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/mmapio.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/nounwind.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/posix.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/print.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/read.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/simple.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/sort.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/state.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/stest.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/libbacktrace/unknown.c
浏览文件 @
3967e1c9
...
...
@@ -13,7 +13,7 @@ met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
(3) The name of the author may not be used to
endorse or promote products derived from this software without
specific prior written permission.
...
...
src/test/run-pass/issue-11577.rs
浏览文件 @
3967e1c9
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
...
...
src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs
浏览文件 @
3967e1c9
// ignore-tidy-cr ignore-license
// ignore-tidy-cr (repeated again because of tidy bug)
// license is ignored because tidy can't handle the CRLF here properly.
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
...
...
@@ -11,33 +11,33 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// NB: this file needs CRLF line endings. The .gitattributes file in
// this directory should enforce it.
// ignore-pretty
/// Doc comment that ends in CRLF
pub
fn
foo
()
{}
/** Block doc comment that
* contains CRLF characters
*/
pub
fn
bar
()
{}
fn
main
()
{
let
s
=
"string
literal"
;
assert_eq!
(
s
,
"string
\n
literal"
);
let
s
=
"literal with
\
escaped newline"
;
assert_eq!
(
s
,
"literal with escaped newline"
);
let
s
=
r"string
literal"
;
assert_eq!
(
s
,
"string
\n
literal"
);
// validate that our source file has CRLF endings
let
source
=
include_str!
(
"lexer-crlf-line-endings-string-literal-doc-comment.rs"
);
assert
!
(
source
.contains
(
"string
\r\n
literal"
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录