Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
8aa9f18e
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,发现更多精彩内容 >>
未验证
提交
8aa9f18e
编写于
7月 07, 2019
作者:
S
Samy Kacimi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
normalize use of backticks for compiler messages in librustc_codegen
https://github.com/rust-lang/rust/issues/60532
上级
6e310f2a
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
11 addition
and
11 deletion
+11
-11
src/librustc_codegen_llvm/asm.rs
src/librustc_codegen_llvm/asm.rs
+1
-1
src/librustc_codegen_llvm/builder.rs
src/librustc_codegen_llvm/builder.rs
+4
-4
src/librustc_codegen_ssa/base.rs
src/librustc_codegen_ssa/base.rs
+1
-1
src/librustc_codegen_ssa/mir/place.rs
src/librustc_codegen_ssa/mir/place.rs
+1
-1
src/librustc_codegen_utils/link.rs
src/librustc_codegen_utils/link.rs
+1
-1
src/test/ui/crate-name-mismatch.rs
src/test/ui/crate-name-mismatch.rs
+1
-1
src/test/ui/crate-name-mismatch.stderr
src/test/ui/crate-name-mismatch.stderr
+1
-1
src/test/ui/duplicate/dupe-symbols-7.stderr
src/test/ui/duplicate/dupe-symbols-7.stderr
+1
-1
未找到文件。
src/librustc_codegen_llvm/asm.rs
浏览文件 @
8aa9f18e
...
...
@@ -146,7 +146,7 @@ fn inline_asm_call(
unsafe
{
// Ask LLVM to verify that the constraints are well-formed.
let
constraints_ok
=
llvm
::
LLVMRustInlineAsmVerify
(
fty
,
cons
.as_ptr
());
debug!
(
"
C
onstraint verification result: {:?}"
,
constraints_ok
);
debug!
(
"
c
onstraint verification result: {:?}"
,
constraints_ok
);
if
constraints_ok
{
let
v
=
llvm
::
LLVMRustInlineAsm
(
fty
,
...
...
src/librustc_codegen_llvm/builder.rs
浏览文件 @
8aa9f18e
...
...
@@ -215,7 +215,7 @@ fn invoke(
funclet
:
Option
<&
Funclet
<
'll
>>
,
)
->
&
'll
Value
{
debug!
(
"
I
nvoke {:?} with args ({:?})"
,
debug!
(
"
i
nvoke {:?} with args ({:?})"
,
llfn
,
args
);
...
...
@@ -1035,7 +1035,7 @@ fn call(
funclet
:
Option
<&
Funclet
<
'll
>>
,
)
->
&
'll
Value
{
debug!
(
"
C
all {:?} with args ({:?})"
,
debug!
(
"
c
all {:?} with args ({:?})"
,
llfn
,
args
);
...
...
@@ -1238,7 +1238,7 @@ fn check_store(&mut self, val: &'ll Value, ptr: &'ll Value) -> &'ll Value {
if
dest_ptr_ty
==
stored_ptr_ty
{
ptr
}
else
{
debug!
(
"
T
ype mismatch in store.
\
debug!
(
"
t
ype mismatch in store.
\
Expected {:?}, got {:?}; inserting bitcast"
,
dest_ptr_ty
,
stored_ptr_ty
);
self
.bitcast
(
ptr
,
stored_ptr_ty
)
...
...
@@ -1274,7 +1274,7 @@ fn check_call<'b>(&mut self,
.map
(|(
i
,
(
expected_ty
,
&
actual_val
))|
{
let
actual_ty
=
self
.val_ty
(
actual_val
);
if
expected_ty
!=
actual_ty
{
debug!
(
"
T
ype mismatch in function call of {:?}.
\
debug!
(
"
t
ype mismatch in function call of {:?}.
\
Expected {:?} for param {}, got {:?}; injecting bitcast"
,
llfn
,
expected_ty
,
i
,
actual_ty
);
self
.bitcast
(
actual_val
,
expected_ty
)
...
...
src/librustc_codegen_ssa/base.rs
浏览文件 @
8aa9f18e
...
...
@@ -433,7 +433,7 @@ fn create_entry_fn<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
if
cx
.get_defined_value
(
"main"
)
.is_some
()
{
// FIXME: We should be smart and show a better diagnostic here.
cx
.sess
()
.struct_span_err
(
sp
,
"entry symbol `main` defined multiple times"
)
.help
(
"did you use
#[no_mangle] on `fn main`? Use #[start]
instead"
)
.help
(
"did you use
`#[no_mangle]` on `fn main`? Use `#[start]`
instead"
)
.emit
();
cx
.sess
()
.abort_if_errors
();
bug!
();
...
...
src/librustc_codegen_ssa/mir/place.rs
浏览文件 @
8aa9f18e
...
...
@@ -138,7 +138,7 @@ pub fn project_field<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
// * packed struct - there is no alignment padding
match
field
.ty.sty
{
_
if
self
.llextra
.is_none
()
=>
{
debug!
(
"
U
nsized field `{}`, of `{:?}` has no metadata for adjustment"
,
debug!
(
"
u
nsized field `{}`, of `{:?}` has no metadata for adjustment"
,
ix
,
self
.llval
);
return
simple
();
}
...
...
src/librustc_codegen_utils/link.rs
浏览文件 @
8aa9f18e
...
...
@@ -57,7 +57,7 @@ pub fn find_crate_name(sess: Option<&Session>,
if
let
Some
(
ref
s
)
=
sess
.opts.crate_name
{
if
let
Some
((
attr
,
name
))
=
attr_crate_name
{
if
name
.as_str
()
!=
*
s
{
let
msg
=
format!
(
"
--crate-name and #[crate_name]
are
\
let
msg
=
format!
(
"
`--crate-name` and `#[crate_name]`
are
\
required to match, but `{}` != `{}`"
,
s
,
name
);
sess
.span_err
(
attr
.span
,
&
msg
);
...
...
src/test/ui/crate-name-mismatch.rs
浏览文件 @
8aa9f18e
// compile-flags: --crate-name foo
#![crate_name
=
"bar"
]
//~^ ERROR:
--crate-name and #[crate_name]
are required to match, but `foo` != `bar`
//~^ ERROR:
`--crate-name` and `#[crate_name]`
are required to match, but `foo` != `bar`
fn
main
()
{}
src/test/ui/crate-name-mismatch.stderr
浏览文件 @
8aa9f18e
error:
--crate-name and #[crate_name]
are required to match, but `foo` != `bar`
error:
`--crate-name` and `#[crate_name]`
are required to match, but `foo` != `bar`
--> $DIR/crate-name-mismatch.rs:3:1
|
LL | #![crate_name = "bar"]
...
...
src/test/ui/duplicate/dupe-symbols-7.stderr
浏览文件 @
8aa9f18e
...
...
@@ -4,7 +4,7 @@ error: entry symbol `main` defined multiple times
LL | fn main(){}
| ^^^^^^^^^^^
|
= help: did you use
#[no_mangle] on `fn main`? Use #[start]
instead
= help: did you use
`#[no_mangle]` on `fn main`? Use `#[start]`
instead
error: aborting due to previous error
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录