Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
2016742e
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,发现更多精彩内容 >>
提交
2016742e
编写于
8月 01, 2014
作者:
J
Joseph Crail
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix misspelled comments for tests.
上级
351cc4fc
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
32 addition
and
32 deletion
+32
-32
src/test/bench/rt-messaging-ping-pong.rs
src/test/bench/rt-messaging-ping-pong.rs
+1
-1
src/test/bench/shootout-meteor.rs
src/test/bench/shootout-meteor.rs
+6
-6
src/test/bench/shootout-spectralnorm.rs
src/test/bench/shootout-spectralnorm.rs
+2
-2
src/test/compile-fail/borrowck-forbid-static-unsafe-interior.rs
...st/compile-fail/borrowck-forbid-static-unsafe-interior.rs
+1
-1
src/test/compile-fail/borrowck-managed-pointer-deref-scope.rs
...test/compile-fail/borrowck-managed-pointer-deref-scope.rs
+2
-2
src/test/compile-fail/check-static-values-constraints.rs
src/test/compile-fail/check-static-values-constraints.rs
+1
-1
src/test/compile-fail/issue-5806.rs
src/test/compile-fail/issue-5806.rs
+1
-1
src/test/compile-fail/privacy1.rs
src/test/compile-fail/privacy1.rs
+1
-1
src/test/compile-fail/typeck-unsafe-always-share.rs
src/test/compile-fail/typeck-unsafe-always-share.rs
+1
-1
src/test/compile-fail/variance-regions-indirect.rs
src/test/compile-fail/variance-regions-indirect.rs
+1
-1
src/test/run-make/unicode-input/multiple_files.rs
src/test/run-make/unicode-input/multiple_files.rs
+1
-1
src/test/run-pass/builtin-superkinds-phantom-typaram.rs
src/test/run-pass/builtin-superkinds-phantom-typaram.rs
+1
-1
src/test/run-pass/cleanup-shortcircuit.rs
src/test/run-pass/cleanup-shortcircuit.rs
+1
-1
src/test/run-pass/close-over-big-then-small-data.rs
src/test/run-pass/close-over-big-then-small-data.rs
+1
-1
src/test/run-pass/core-run-destroy.rs
src/test/run-pass/core-run-destroy.rs
+1
-1
src/test/run-pass/deriving-encodable-decodable-cell-refcell.rs
...est/run-pass/deriving-encodable-decodable-cell-refcell.rs
+1
-1
src/test/run-pass/deriving-meta-multiple.rs
src/test/run-pass/deriving-meta-multiple.rs
+1
-1
src/test/run-pass/foreign-dupe.rs
src/test/run-pass/foreign-dupe.rs
+1
-1
src/test/run-pass/issue-11709.rs
src/test/run-pass/issue-11709.rs
+1
-1
src/test/run-pass/issue-2185.rs
src/test/run-pass/issue-2185.rs
+1
-1
src/test/run-pass/issue-9382.rs
src/test/run-pass/issue-9382.rs
+1
-1
src/test/run-pass/linkage1.rs
src/test/run-pass/linkage1.rs
+1
-1
src/test/run-pass/regions-infer-borrow-scope-addr-of.rs
src/test/run-pass/regions-infer-borrow-scope-addr-of.rs
+1
-1
src/test/run-pass/regions-lifetime-nonfree-late-bound.rs
src/test/run-pass/regions-lifetime-nonfree-late-bound.rs
+1
-1
src/test/run-pass/shebang.rs
src/test/run-pass/shebang.rs
+1
-1
未找到文件。
src/test/bench/rt-messaging-ping-pong.rs
浏览文件 @
2016742e
...
...
@@ -22,7 +22,7 @@
// This is a simple bench that creates M pairs of tasks. These
// tasks ping-pong back and forth over a pair of streams. This is a
// can
n
onical message-passing benchmark as it heavily strains message
// canonical message-passing benchmark as it heavily strains message
// passing and almost nothing else.
fn
ping_pong_bench
(
n
:
uint
,
m
:
uint
)
{
...
...
src/test/bench/shootout-meteor.rs
浏览文件 @
2016742e
...
...
@@ -101,7 +101,7 @@ fn next(&mut self) -> Option<&'a T> {
// every possible transformations (the 6 rotations with their
// corresponding mirrored piece), with, as minimum coordinates, (0,
// 0). If all is false, only generate half of the possibilities (used
// to break the symetry of the board).
// to break the sym
m
etry of the board).
fn
transform
(
piece
:
Vec
<
(
int
,
int
)
>
,
all
:
bool
)
->
Vec
<
Vec
<
(
int
,
int
)
>>
{
let
mut
res
:
Vec
<
Vec
<
(
int
,
int
)
>>
=
// rotations
...
...
@@ -124,9 +124,9 @@ fn transform(piece: Vec<(int, int)> , all: bool) -> Vec<Vec<(int, int)>> {
res
}
// A mask is a piece somewere on the board. It is represented as a
// A mask is a piece somew
h
ere on the board. It is represented as a
// u64: for i in the first 50 bits, m[i] = 1 if the cell at (i/5, i%5)
// is occuped. m[50 + id] = 1 if the identifier of the piece is id.
// is occup
i
ed. m[50 + id] = 1 if the identifier of the piece is id.
// Takes a piece with minimum coordinate (0, 0) (as generated by
// transform). Returns the corresponding mask if p translated by (dy,
...
...
@@ -159,7 +159,7 @@ fn make_masks() -> Vec<Vec<Vec<u64> > > {
vec!
((
0
i
,
0
i
),(
0
,
1
),(
0
,
2
),(
1
,
2
),(
1
,
3
)),
vec!
((
0
i
,
0
i
),(
0
,
1
),(
0
,
2
),(
0
,
3
),(
1
,
2
)));
// To break the central symetry of the problem, every
// To break the central sym
m
etry of the problem, every
// transformation must be taken except for one piece (piece 3
// here).
let
transforms
:
Vec
<
Vec
<
Vec
<
(
int
,
int
)
>>>
=
...
...
@@ -263,7 +263,7 @@ fn reduce_from(&mut self, other: Data) {
// Records a new found solution. Returns false if the search must be
// stopped.
fn
handle_sol
(
raw_sol
:
&
List
<
u64
>
,
data
:
&
mut
Data
)
{
// because we break the symetry, 2 solutions correspond to a call
// because we break the sym
m
etry, 2 solutions correspond to a call
// to this method: the normal solution, and the same solution in
// reverse order, i.e. the board rotated by half a turn.
data
.nb
+=
2
;
...
...
@@ -298,7 +298,7 @@ fn search(
for
id
in
range
(
0u
,
10
)
.filter
(|
id
|
board
&
(
1
<<
(
id
+
50
))
==
0
)
{
// for each mask that fits on the board
for
m
in
masks_at
.get
(
id
)
.iter
()
.filter
(|
&
m
|
board
&
*
m
==
0
)
{
// This check is too costy.
// This check is too cost
l
y.
//if is_board_unfeasible(board | m, masks) {continue;}
search
(
masks
,
board
|
*
m
,
i
+
1
,
Cons
(
*
m
,
&
cur
),
data
);
}
...
...
src/test/bench/shootout-spectralnorm.rs
浏览文件 @
2016742e
...
...
@@ -36,8 +36,8 @@ fn dot(v: &[f64], u: &[f64]) -> f64 {
fn
mult
(
v
:
Arc
<
RWLock
<
Vec
<
f64
>>>
,
out
:
Arc
<
RWLock
<
Vec
<
f64
>>>
,
f
:
fn
(
&
Vec
<
f64
>
,
uint
)
->
f64
)
{
// We lanch in different tasks the work to be done. To finish
// this fuction, we need to wait for the completion of every
// We la
u
nch in different tasks the work to be done. To finish
// this fu
n
ction, we need to wait for the completion of every
// tasks. To do that, we give to each tasks a wait_chan that we
// drop at the end of the work. At the end of this function, we
// wait until the channel hang up.
...
...
src/test/compile-fail/borrowck-forbid-static-unsafe-interior.rs
浏览文件 @
2016742e
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
// Verify that it is not possible to take the address of
// static items with u
sn
afe interior.
// static items with u
ns
afe interior.
use
std
::
kinds
::
marker
;
use
std
::
cell
::
UnsafeCell
;
...
...
src/test/compile-fail/borrowck-managed-pointer-deref-scope.rs
浏览文件 @
2016742e
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Verify that managed pointers scope is treated like own
o
ed pointers.
// regresion test for #11586
// Verify that managed pointers scope is treated like owned pointers.
// regres
s
ion test for #11586
use
std
::
gc
::{
GC
,
Gc
};
...
...
src/test/compile-fail/check-static-values-constraints.rs
浏览文件 @
2016742e
...
...
@@ -72,7 +72,7 @@ struct SafeStruct {
//~^ ERROR static items are not allowed to have destructors
// Test variadic constructor for structs. The base struct should be examined
// as well as every field p
er
sent in the constructor.
// as well as every field p
re
sent in the constructor.
// This example shouldn't fail because all the fields are safe.
static
STATIC8
:
SafeStruct
=
SafeStruct
{
field1
:
Variant1
,
..
SafeStruct
{
field1
:
Variant1
,
field2
:
Variant1
}};
...
...
src/test/compile-fail/issue-5806.rs
浏览文件 @
2016742e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// opyright 2013 The Rust Project Developers. See the COPYRIGHT
//
C
opyright 2013 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/compile-fail/privacy1.rs
浏览文件 @
2016742e
...
...
@@ -15,7 +15,7 @@
pub
trait
Sized
{}
mod
bar
{
// shouln't bring in too much
// shoul
d
n't bring in too much
pub
use
self
::
glob
::
*
;
// can't publicly re-export private items
...
...
src/test/compile-fail/typeck-unsafe-always-share.rs
浏览文件 @
2016742e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Verify that UnsafeCell is *always* sync regardles `T` is sync.
// Verify that UnsafeCell is *always* sync regardles
s if
`T` is sync.
// ignore-tidy-linelength
...
...
src/test/compile-fail/variance-regions-indirect.rs
浏览文件 @
2016742e
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
// Test that we correctly infer variance for region parameters in
// case that involve multiple intr
acr
ate types.
// case that involve multiple intr
ic
ate types.
// Try enums too.
#[rustc_variance]
...
...
src/test/run-make/unicode-input/multiple_files.rs
浏览文件 @
2016742e
...
...
@@ -13,7 +13,7 @@
use
std
::
rand
::{
task_rng
,
Rng
};
// creates unicode_input_multiple_files_{main,chars}.rs, where the
// former imports the latter. `_chars` just contains an i
n
dentifier
// former imports the latter. `_chars` just contains an identifier
// made up of random characters, because will emit an error message
// about the ident being in the wrong place, with a span (and creating
// this span used to upset the compiler).
...
...
src/test/run-pass/builtin-superkinds-phantom-typaram.rs
浏览文件 @
2016742e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Tests that even when a type parame
n
ter doesn't implement a required
// Tests that even when a type parameter doesn't implement a required
// super-builtin-kind of a trait, if the type parameter is never used,
// the type can implement the trait anyway.
...
...
src/test/run-pass/cleanup-shortcircuit.rs
浏览文件 @
2016742e
...
...
@@ -18,7 +18,7 @@
// option. this file may not be copied, modified, or distributed
// except according to those terms.
// Test that cleanups for the RHS of shorcircuiting operators work.
// Test that cleanups for the RHS of shor
t
circuiting operators work.
use
std
::
os
;
...
...
src/test/run-pass/close-over-big-then-small-data.rs
浏览文件 @
2016742e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// If we use GEPi rather
n
than GEP_tup_like when
// If we use GEPi rather than GEP_tup_like when
// storing closure data (as we used to do), the u64 would
// overwrite the u16.
...
...
src/test/run-pass/core-run-destroy.rs
浏览文件 @
2016742e
...
...
@@ -76,7 +76,7 @@ pub fn sleeper() -> Process {
pub
fn
sleeper
()
->
Process
{
// There's a `timeout` command on windows, but it doesn't like having
// its output piped, so instead just ping ourselves a few times with
// gaps in
betwe
een so we're sure this process is alive for awhile
// gaps in
betw
een so we're sure this process is alive for awhile
Command
::
new
(
"ping"
)
.arg
(
"127.0.0.1"
)
.arg
(
"-n"
)
.arg
(
"1000"
)
.spawn
()
.unwrap
()
}
...
...
src/test/run-pass/deriving-encodable-decodable-cell-refcell.rs
浏览文件 @
2016742e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// This brief
u
ly tests the capability of `Cell` and `RefCell` to implement the
// This briefly tests the capability of `Cell` and `RefCell` to implement the
// `Encodable` and `Decodable` traits via `#[deriving(Encodable, Decodable)]`
extern
crate
serialize
;
...
...
src/test/run-pass/deriving-meta-multiple.rs
浏览文件 @
2016742e
...
...
@@ -11,7 +11,7 @@
use
std
::
hash
::
hash
;
// testing mul
p
tiple separate deriving attributes
// testing multiple separate deriving attributes
#[deriving(PartialEq)]
#[deriving(Clone)]
#[deriving(Hash)]
...
...
src/test/run-pass/foreign-dupe.rs
浏览文件 @
2016742e
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// calling pin_task and that's having w
ie
rd side-effects.
// calling pin_task and that's having w
ei
rd side-effects.
mod
rustrt1
{
extern
crate
libc
;
...
...
src/test/run-pass/issue-11709.rs
浏览文件 @
2016742e
...
...
@@ -12,7 +12,7 @@
// Don't fail on blocks without results
// There are several tests in this run-pass that raised
// when this bug was op
p
ened. The cases where the compiler
// when this bug was opened. The cases where the compiler
// failed before the fix have a comment.
struct
S
{
x
:()}
...
...
src/test/run-pass/issue-2185.rs
浏览文件 @
2016742e
...
...
@@ -13,7 +13,7 @@
// notes on this test case:
// On Thu, Apr 18, 2013-2014 at 6:30 PM, John Clements <clements@brinckerhoff.org> wrote:
// the "issue-2185.rs" test was ignore
e
d with a ref to #2263. Issue #2263 is now fixed,
// the "issue-2185.rs" test was ignored with a ref to #2263. Issue #2263 is now fixed,
// so I tried it again, and after adding some &self parameters, I got this error:
//
// Running /usr/local/bin/rustc:
...
...
src/test/run-pass/issue-9382.rs
浏览文件 @
2016742e
...
...
@@ -10,7 +10,7 @@
#![allow(unnecessary_allocation)]
// Tests for a previous bug that occured due to an interaction
// Tests for a previous bug that occur
r
ed due to an interaction
// between struct field initialization and the auto-coercion
// from a vector to a slice. The drop glue was being invoked on
// the temporary slice with a wrong type, triggering an LLVM assert.
...
...
src/test/run-pass/linkage1.rs
浏览文件 @
2016742e
...
...
@@ -28,7 +28,7 @@ fn main() {
// It appears that the --as-needed flag to linkers will not pull in a dynamic
// library unless it satisfies a non weak undefined symbol. The 'other' crate
// is compiled as a dynamic library where it would only be used for a
// weak-symbol as part of an executable, so the dynamic library wou
dl
be
// weak-symbol as part of an executable, so the dynamic library wou
ld
be
// discarded. By adding and calling `other::bar`, we get around this problem.
other
::
bar
();
...
...
src/test/run-pass/regions-infer-borrow-scope-addr-of.rs
浏览文件 @
2016742e
...
...
@@ -15,7 +15,7 @@ pub fn main() {
for
i
in
range
(
0u
,
3
)
{
// ensure that the borrow in this alt
// does not in
f
erfere with the swap
// does not in
t
erfere with the swap
// below. note that it would it you
// naively borrowed &x for the lifetime
// of the variable x, as we once did
...
...
src/test/run-pass/regions-lifetime-nonfree-late-bound.rs
浏览文件 @
2016742e
...
...
@@ -12,7 +12,7 @@
//
// The original issue causing the ICE: the LUB-computations during
// type inference were encountering late-bound lifetimes, and
// asserting that such lifetimes should have already been subsituted
// asserting that such lifetimes should have already been subs
t
ituted
// with a concrete lifetime.
//
// However, those encounters were occurring within the lexical scope
...
...
src/test/run-pass/shebang.rs
浏览文件 @
2016742e
...
...
@@ -9,7 +9,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-pretty: `expand` add
e
s some preludes before shebang
// ignore-pretty: `expand` adds some preludes before shebang
//
// ignore-lexer-test FIXME #15878
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录