Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
a52cdfdf
R
Rust
项目概览
int
/
Rust
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
a52cdfdf
编写于
12月 27, 2013
作者:
K
klutzy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rustc::driver: Remove two @s
上级
e61937a6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
13 addition
and
13 deletion
+13
-13
src/librustc/driver/driver.rs
src/librustc/driver/driver.rs
+4
-4
src/librustc/driver/session.rs
src/librustc/driver/session.rs
+2
-2
src/librustc/lib.rs
src/librustc/lib.rs
+1
-1
src/librustdoc/core.rs
src/librustdoc/core.rs
+1
-1
src/librustdoc/test.rs
src/librustdoc/test.rs
+2
-2
src/librustpkg/lib.rs
src/librustpkg/lib.rs
+1
-1
src/librustpkg/tests.rs
src/librustpkg/tests.rs
+1
-1
src/librustpkg/util.rs
src/librustpkg/util.rs
+1
-1
未找到文件。
src/librustc/driver/driver.rs
浏览文件 @
a52cdfdf
...
...
@@ -686,7 +686,7 @@ pub fn host_triple() -> ~str {
(
env!
(
"CFG_COMPILER"
))
.to_owned
()
}
pub
fn
build_session_options
(
binary
:
@
str
,
pub
fn
build_session_options
(
binary
:
~
str
,
matches
:
&
getopts
::
Matches
,
demitter
:
@
diagnostic
::
Emitter
)
->
@
session
::
options
{
...
...
@@ -1105,7 +1105,7 @@ pub fn build_output_filenames(input: &input,
}
}
pub
fn
early_error
(
emitter
:
@
diagnostic
::
Emitter
,
msg
:
&
str
)
->
!
{
pub
fn
early_error
(
emitter
:
&
diagnostic
::
Emitter
,
msg
:
&
str
)
->
!
{
emitter
.emit
(
None
,
msg
,
diagnostic
::
fatal
);
fail
!
();
}
...
...
@@ -1135,7 +1135,7 @@ fn test_switch_implies_cfg_test() {
Err
(
f
)
=>
fail
!
(
"test_switch_implies_cfg_test: {}"
,
f
.to_err_msg
())
};
let
sessopts
=
build_session_options
(
@
"rustc"
,
~
"rustc"
,
matches
,
@
diagnostic
::
DefaultEmitter
as
@
diagnostic
::
Emitter
);
let
sess
=
build_session
(
sessopts
,
...
...
@@ -1158,7 +1158,7 @@ fn test_switch_implies_cfg_test_unless_cfg_test() {
}
};
let
sessopts
=
build_session_options
(
@
"rustc"
,
~
"rustc"
,
matches
,
@
diagnostic
::
DefaultEmitter
as
@
diagnostic
::
Emitter
);
let
sess
=
build_session
(
sessopts
,
...
...
src/librustc/driver/session.rs
浏览文件 @
a52cdfdf
...
...
@@ -163,7 +163,7 @@ pub struct options {
// will be added to the crate AST node. This should not be used for
// anything except building the full crate config prior to parsing.
cfg
:
ast
::
CrateConfig
,
binary
:
@
str
,
binary
:
~
str
,
test
:
bool
,
parse_only
:
bool
,
no_trans
:
bool
,
...
...
@@ -395,7 +395,7 @@ pub fn basic_options() -> @options {
target_cpu
:
~
"generic"
,
target_feature
:
~
""
,
cfg
:
~
[],
binary
:
@
"rustc"
,
binary
:
~
"rustc"
,
test
:
false
,
parse_only
:
false
,
no_trans
:
false
,
...
...
src/librustc/lib.rs
浏览文件 @
a52cdfdf
...
...
@@ -197,7 +197,7 @@ pub fn describe_debug_flags() {
pub
fn
run_compiler
(
args
:
&
[
~
str
],
demitter
:
@
diagnostic
::
Emitter
)
{
let
mut
args
=
args
.to_owned
();
let
binary
=
args
.shift
()
.to_managed
()
;
let
binary
=
args
.shift
();
if
args
.is_empty
()
{
usage
(
binary
);
return
;
}
...
...
src/librustdoc/core.rs
浏览文件 @
a52cdfdf
...
...
@@ -49,7 +49,7 @@ fn get_ast_and_resolve(cpath: &Path,
let
input
=
file_input
(
cpath
.clone
());
let
sessopts
=
@
driver
::
session
::
options
{
binary
:
@
"rustdoc"
,
binary
:
~
"rustdoc"
,
maybe_sysroot
:
Some
(
@
os
::
self_exe_path
()
.unwrap
()
.dir_path
()),
addl_lib_search_paths
:
@
RefCell
::
new
(
libs
),
outputs
:
~
[
driver
::
session
::
OutputDylib
],
...
...
src/librustdoc/test.rs
浏览文件 @
a52cdfdf
...
...
@@ -38,7 +38,7 @@ pub fn run(input: &str, matches: &getopts::Matches) -> int {
let
libs
=
@
RefCell
::
new
(
libs
.move_iter
()
.collect
());
let
sessopts
=
@
session
::
options
{
binary
:
@
"rustdoc"
,
binary
:
~
"rustdoc"
,
maybe_sysroot
:
Some
(
@
os
::
self_exe_path
()
.unwrap
()
.dir_path
()),
addl_lib_search_paths
:
libs
,
outputs
:
~
[
session
::
OutputDylib
],
...
...
@@ -98,7 +98,7 @@ fn runtest(test: &str, cratename: &str, libs: HashSet<Path>) {
let
input
=
driver
::
str_input
(
test
);
let
sessopts
=
@
session
::
options
{
binary
:
@
"rustdoctest"
,
binary
:
~
"rustdoctest"
,
maybe_sysroot
:
Some
(
@
os
::
self_exe_path
()
.unwrap
()
.dir_path
()),
addl_lib_search_paths
:
@
RefCell
::
new
(
libs
),
outputs
:
~
[
session
::
OutputExecutable
],
...
...
src/librustpkg/lib.rs
浏览文件 @
a52cdfdf
...
...
@@ -101,7 +101,7 @@ fn parse<'a>(sysroot: Path,
workspace
:
&
Path
,
id
:
&
'a
CrateId
)
->
PkgScript
<
'a
>
{
// Get the executable name that was invoked
let
binary
=
os
::
args
()[
0
]
.to_
manag
ed
();
let
binary
=
os
::
args
()[
0
]
.to_
own
ed
();
// Build the rustc session data structures to pass
// to the compiler
debug!
(
"pkgscript parse: {}"
,
sysroot
.display
());
...
...
src/librustpkg/tests.rs
浏览文件 @
a52cdfdf
...
...
@@ -1823,7 +1823,7 @@ fn test_linker_build() {
let
workspace
=
create_local_package
(
&
p_id
);
let
workspace
=
workspace
.path
();
let
matches
=
getopts
([],
optgroups
());
let
options
=
build_session_options
(
@
"rustpkg"
,
let
options
=
build_session_options
(
~
"rustpkg"
,
matches
.as_ref
()
.unwrap
(),
@
diagnostic
::
DefaultEmitter
as
@
diagnostic
::
Emitter
);
...
...
src/librustpkg/util.rs
浏览文件 @
a52cdfdf
...
...
@@ -189,7 +189,7 @@ pub fn compile_input(context: &BuildContext,
// Make the output directory if it doesn't exist already
fs
::
mkdir_recursive
(
&
out_dir
,
io
::
UserRWX
);
let
binary
=
os
::
args
()[
0
]
.to_
manag
ed
();
let
binary
=
os
::
args
()[
0
]
.to_
own
ed
();
debug!
(
"flags: {}"
,
flags
.connect
(
" "
));
debug!
(
"cfgs: {}"
,
cfgs
.connect
(
" "
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录