Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
7a781a53
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,发现更多精彩内容 >>
提交
7a781a53
编写于
8月 20, 2021
作者:
B
bjorn3
浏览文件
操作
浏览文件
下载
差异文件
Sync from rust
9ccf6616
上级
d498e6d6
8b8ab5f5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
4 deletion
+9
-4
example/alloc_example.rs
example/alloc_example.rs
+1
-1
example/mini_core_hello_world.rs
example/mini_core_hello_world.rs
+1
-1
example/mod_bench.rs
example/mod_bench.rs
+1
-1
src/debuginfo/mod.rs
src/debuginfo/mod.rs
+1
-1
src/intrinsics/mod.rs
src/intrinsics/mod.rs
+5
-0
未找到文件。
example/alloc_example.rs
浏览文件 @
7a781a53
#![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
;
...
...
example/mini_core_hello_world.rs
浏览文件 @
7a781a53
#![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)]
...
...
example/mod_bench.rs
浏览文件 @
7a781a53
#![feature(start,
box_syntax,
core_intrinsics,
lang_items)]
#![feature(start,
core_intrinsics,
lang_items)]
#![no_std]
#[cfg_attr(unix,
link(name
=
"c"
))]
...
...
src/debuginfo/mod.rs
浏览文件 @
7a781a53
...
...
@@ -66,7 +66,7 @@ pub(crate) fn new(tcx: TyCtxt<'tcx>, isa: &dyn TargetIsa) -> Self {
rustc_interface
::
util
::
version_str
()
.unwrap_or
(
"unknown version"
),
cranelift_codegen
::
VERSION
,
);
let
comp_dir
=
tcx
.sess.working_dir
.to_string_lossy
(
false
)
.into_owned
();
let
comp_dir
=
tcx
.sess.
opts.
working_dir
.to_string_lossy
(
false
)
.into_owned
();
let
(
name
,
file_info
)
=
match
tcx
.sess.local_crate_source_file
.clone
()
{
Some
(
path
)
=>
{
let
name
=
path
.to_string_lossy
()
.into_owned
();
...
...
src/intrinsics/mod.rs
浏览文件 @
7a781a53
...
...
@@ -1136,6 +1136,11 @@ fn type_by_size(size: Size) -> Option<Type> {
};
ret
.write_cvalue
(
fx
,
CValue
::
by_val
(
is_eq_value
,
ret
.layout
()));
};
black_box
,
(
c
a
)
{
// FIXME implement black_box semantics
ret
.write_cvalue
(
fx
,
a
);
};
}
if
let
Some
((
_
,
dest
))
=
destination
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录