Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
6f8d263e
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,发现更多精彩内容 >>
提交
6f8d263e
编写于
1月 29, 2018
作者:
E
Eduard-Mihai Burtescu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: replace "lvalue" terminology with "place".
上级
46a9bdda
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
14 addition
and
14 deletion
+14
-14
src/test/compile-fail/regions-adjusted-lvalue-op.rs
src/test/compile-fail/regions-adjusted-lvalue-op.rs
+1
-1
src/test/incremental/hashes/unary_and_binary_exprs.rs
src/test/incremental/hashes/unary_and_binary_exprs.rs
+3
-3
src/test/run-pass/issue-18514.rs
src/test/run-pass/issue-18514.rs
+1
-1
src/test/run-pass/issue-18845.rs
src/test/run-pass/issue-18845.rs
+1
-1
src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs
...est/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs
+2
-2
src/test/run-pass/mir_drop_order.rs
src/test/run-pass/mir_drop_order.rs
+1
-1
src/test/run-pass/type-ascription.rs
src/test/run-pass/type-ascription.rs
+1
-1
src/test/ui/issue-26093.rs
src/test/ui/issue-26093.rs
+2
-2
src/test/ui/issue-26093.stderr
src/test/ui/issue-26093.stderr
+2
-2
未找到文件。
src/test/compile-fail/regions-adjusted-lvalue-op.rs
浏览文件 @
6f8d263e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// check that we link regions in mutable
lvalu
e ops correctly - issue #41774
// check that we link regions in mutable
plac
e ops correctly - issue #41774
struct
Data
(
i32
);
...
...
src/test/incremental/hashes/unary_and_binary_exprs.rs
浏览文件 @
6f8d263e
...
...
@@ -404,9 +404,9 @@ pub fn value_cast(a: u32) -> i32 {
// Change
l-value in assignment
------------------------------------------------
// Change
place in assignment --
------------------------------------------------
#[cfg(cfail1)]
pub
fn
lvalu
e
()
->
i32
{
pub
fn
plac
e
()
->
i32
{
let
mut
x
=
10
;
let
mut
y
=
11
;
x
=
9
;
...
...
@@ -416,7 +416,7 @@ pub fn lvalue() -> i32 {
#[cfg(not(cfail1))]
#[rustc_clean(except=
"HirBody,MirOptimized,MirValidated"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
lvalu
e
()
->
i32
{
pub
fn
plac
e
()
->
i32
{
let
mut
x
=
10
;
let
mut
y
=
11
;
y
=
9
;
...
...
src/test/run-pass/issue-18514.rs
浏览文件 @
6f8d263e
...
...
@@ -10,7 +10,7 @@
// Test that we don't ICE when translating a generic impl method from
// an extern crate that contains a match expression on a local
// variable
lvalu
e where one of the match case bodies contains an
// variable
plac
e where one of the match case bodies contains an
// expression that autoderefs through an overloaded generic deref
// impl.
...
...
src/test/run-pass/issue-18845.rs
浏览文件 @
6f8d263e
...
...
@@ -11,7 +11,7 @@
// This used to generate invalid IR in that even if we took the
// `false` branch we'd still try to free the Box from the other
// arm. This was due to treating `*Box::new(9)` as an rvalue datum
// instead of as a
n lvalu
e.
// instead of as a
plac
e.
fn
test
(
foo
:
bool
)
->
u8
{
match
foo
{
...
...
src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs
浏览文件 @
6f8d263e
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Test that an `&mut self` method, when invoked on a
n lvalu
e whose
// type is `&mut [u8]`, passes in a pointer to the
lvalu
e and not a
// Test that an `&mut self` method, when invoked on a
plac
e whose
// type is `&mut [u8]`, passes in a pointer to the
plac
e and not a
// temporary. Issue #19147.
use
std
::
slice
;
...
...
src/test/run-pass/mir_drop_order.rs
浏览文件 @
6f8d263e
...
...
@@ -41,7 +41,7 @@ fn main() {
// all borrows are extended - nothing has been dropped yet
assert_eq!
(
get
(),
vec!
[]);
}
// in a let-statement, extended
lvalu
es are dropped
// in a let-statement, extended
plac
es are dropped
// *after* the let result (tho they have the same scope
// as far as scope-based borrowck goes).
assert_eq!
(
get
(),
vec!
[
0
,
2
,
3
,
1
]);
...
...
src/test/run-pass/type-ascription.rs
浏览文件 @
6f8d263e
...
...
@@ -40,6 +40,6 @@ fn main() {
assert_eq!
(
b
,
1
:
u16
);
let
mut
v
=
Vec
::
new
();
v
:
Vec
<
u8
>
=
vec!
[
1
,
2
,
3
];
//
Lvalue
type ascription
v
:
Vec
<
u8
>
=
vec!
[
1
,
2
,
3
];
//
Place expression
type ascription
assert_eq!
(
v
,
[
1u8
,
2
,
3
]);
}
src/test/ui/issue-26093.rs
浏览文件 @
6f8d263e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
macro_rules!
not_a
n_lvalu
e
{
macro_rules!
not_a
_plac
e
{
(
$thing:expr
)
=>
{
$thing
=
42
;
//~^ ERROR invalid left-hand side expression
...
...
@@ -16,5 +16,5 @@
}
fn
main
()
{
not_a
n_lvalu
e!
(
99
);
not_a
_plac
e!
(
99
);
}
src/test/ui/issue-26093.stderr
浏览文件 @
6f8d263e
...
...
@@ -4,8 +4,8 @@ error[E0070]: invalid left-hand side expression
13 | $thing = 42;
| ^^^^^^^^^^^ left-hand of expression not valid
...
19 | not_a
n_lvalu
e!(99);
| -----------------
--
in this macro invocation
19 | not_a
_plac
e!(99);
| ----------------- in this macro invocation
error: aborting due to previous error
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录