Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
1be40be6
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
1be40be6
编写于
5月 20, 2013
作者:
P
Patrick Walton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: Update tests to use the new syntax.
上级
c10e0cb9
变更
272
展开全部
隐藏空白更改
内联
并排
Showing
272 changed file
with
565 addition
and
565 deletion
+565
-565
src/test/auxiliary/cci_capture_clause.rs
src/test/auxiliary/cci_capture_clause.rs
+1
-1
src/test/auxiliary/cci_class_cast.rs
src/test/auxiliary/cci_class_cast.rs
+1
-1
src/test/auxiliary/issue-2526.rs
src/test/auxiliary/issue-2526.rs
+1
-1
src/test/auxiliary/issue-2631-a.rs
src/test/auxiliary/issue-2631-a.rs
+2
-2
src/test/auxiliary/trait_inheritance_overloading_xc.rs
src/test/auxiliary/trait_inheritance_overloading_xc.rs
+1
-1
src/test/bench/core-map.rs
src/test/bench/core-map.rs
+8
-8
src/test/bench/core-set.rs
src/test/bench/core-set.rs
+9
-9
src/test/bench/core-std.rs
src/test/bench/core-std.rs
+5
-5
src/test/bench/graph500-bfs.rs
src/test/bench/graph500-bfs.rs
+8
-8
src/test/bench/msgsend-pipes-shared.rs
src/test/bench/msgsend-pipes-shared.rs
+6
-6
src/test/bench/msgsend-pipes.rs
src/test/bench/msgsend-pipes.rs
+6
-6
src/test/bench/msgsend-ring-mutex-arcs.rs
src/test/bench/msgsend-ring-mutex-arcs.rs
+5
-5
src/test/bench/msgsend-ring-pipes.rs
src/test/bench/msgsend-ring-pipes.rs
+6
-6
src/test/bench/msgsend-ring-rw-arcs.rs
src/test/bench/msgsend-ring-rw-arcs.rs
+5
-5
src/test/bench/noise.rs
src/test/bench/noise.rs
+1
-1
src/test/bench/pingpong.rs
src/test/bench/pingpong.rs
+6
-6
src/test/bench/shootout-ackermann.rs
src/test/bench/shootout-ackermann.rs
+1
-1
src/test/bench/shootout-binarytrees.rs
src/test/bench/shootout-binarytrees.rs
+2
-2
src/test/bench/shootout-chameneos-redux.rs
src/test/bench/shootout-chameneos-redux.rs
+4
-4
src/test/bench/shootout-fannkuch-redux.rs
src/test/bench/shootout-fannkuch-redux.rs
+3
-3
src/test/bench/shootout-fasta-redux.rs
src/test/bench/shootout-fasta-redux.rs
+5
-5
src/test/bench/shootout-fasta.rs
src/test/bench/shootout-fasta.rs
+2
-2
src/test/bench/shootout-fibo.rs
src/test/bench/shootout-fibo.rs
+1
-1
src/test/bench/shootout-k-nucleotide-pipes.rs
src/test/bench/shootout-k-nucleotide-pipes.rs
+7
-7
src/test/bench/shootout-k-nucleotide.rs
src/test/bench/shootout-k-nucleotide.rs
+10
-10
src/test/bench/shootout-mandelbrot.rs
src/test/bench/shootout-mandelbrot.rs
+4
-4
src/test/bench/shootout-nbody.rs
src/test/bench/shootout-nbody.rs
+2
-2
src/test/bench/shootout-pfib.rs
src/test/bench/shootout-pfib.rs
+6
-6
src/test/bench/shootout-pidigits.rs
src/test/bench/shootout-pidigits.rs
+5
-5
src/test/bench/shootout-reverse-complement.rs
src/test/bench/shootout-reverse-complement.rs
+6
-6
src/test/bench/shootout-spectralnorm.rs
src/test/bench/shootout-spectralnorm.rs
+2
-2
src/test/bench/std-smallintmap.rs
src/test/bench/std-smallintmap.rs
+6
-6
src/test/bench/sudoku.rs
src/test/bench/sudoku.rs
+4
-4
src/test/bench/task-perf-alloc-unwind.rs
src/test/bench/task-perf-alloc-unwind.rs
+3
-3
src/test/bench/task-perf-jargon-metal-smoke.rs
src/test/bench/task-perf-jargon-metal-smoke.rs
+1
-1
src/test/bench/task-perf-linked-failure.rs
src/test/bench/task-perf-linked-failure.rs
+1
-1
src/test/bench/task-perf-one-million.rs
src/test/bench/task-perf-one-million.rs
+1
-1
src/test/compile-fail/arc-cant-nest-rw-arc-3177.rs
src/test/compile-fail/arc-cant-nest-rw-arc-3177.rs
+2
-2
src/test/compile-fail/arc-rw-cond-shouldnt-escape.rs
src/test/compile-fail/arc-rw-cond-shouldnt-escape.rs
+2
-2
src/test/compile-fail/arc-rw-read-mode-shouldnt-escape.rs
src/test/compile-fail/arc-rw-read-mode-shouldnt-escape.rs
+2
-2
src/test/compile-fail/arc-rw-state-shouldnt-escape.rs
src/test/compile-fail/arc-rw-state-shouldnt-escape.rs
+2
-2
src/test/compile-fail/arc-rw-write-mode-cond-shouldnt-escape.rs
...st/compile-fail/arc-rw-write-mode-cond-shouldnt-escape.rs
+2
-2
src/test/compile-fail/arc-rw-write-mode-shouldnt-escape.rs
src/test/compile-fail/arc-rw-write-mode-shouldnt-escape.rs
+2
-2
src/test/compile-fail/borrowck-borrowed-uniq-rvalue.rs
src/test/compile-fail/borrowck-borrowed-uniq-rvalue.rs
+1
-1
src/test/compile-fail/borrowck-insert-during-each.rs
src/test/compile-fail/borrowck-insert-during-each.rs
+1
-1
src/test/compile-fail/borrowck-loan-local-as-both-mut-and-imm.rs
...t/compile-fail/borrowck-loan-local-as-both-mut-and-imm.rs
+1
-1
src/test/compile-fail/borrowck-move-by-capture.rs
src/test/compile-fail/borrowck-move-by-capture.rs
+1
-1
src/test/compile-fail/borrowck-vec-pattern-move-tail.rs
src/test/compile-fail/borrowck-vec-pattern-move-tail.rs
+1
-1
src/test/compile-fail/core-tls-store-pointer.rs
src/test/compile-fail/core-tls-store-pointer.rs
+1
-1
src/test/compile-fail/extfmt-not-enough-args.rs
src/test/compile-fail/extfmt-not-enough-args.rs
+1
-1
src/test/compile-fail/extfmt-too-many-args.rs
src/test/compile-fail/extfmt-too-many-args.rs
+1
-1
src/test/compile-fail/fail-expr.rs
src/test/compile-fail/fail-expr.rs
+1
-1
src/test/compile-fail/fail-type-err.rs
src/test/compile-fail/fail-type-err.rs
+1
-1
src/test/compile-fail/forget-init-unsafe.rs
src/test/compile-fail/forget-init-unsafe.rs
+1
-1
src/test/compile-fail/fully-qualified-type-name1.rs
src/test/compile-fail/fully-qualified-type-name1.rs
+1
-1
src/test/compile-fail/fully-qualified-type-name4.rs
src/test/compile-fail/fully-qualified-type-name4.rs
+2
-2
src/test/compile-fail/issue-2766-a.rs
src/test/compile-fail/issue-2766-a.rs
+2
-2
src/test/compile-fail/issue-3021-b.rs
src/test/compile-fail/issue-3021-b.rs
+1
-1
src/test/compile-fail/issue-3021-c.rs
src/test/compile-fail/issue-3021-c.rs
+1
-1
src/test/compile-fail/issue-3021-d.rs
src/test/compile-fail/issue-3021-d.rs
+1
-1
src/test/compile-fail/issue-3021.rs
src/test/compile-fail/issue-3021.rs
+1
-1
src/test/compile-fail/issue-3296.rs
src/test/compile-fail/issue-3296.rs
+3
-3
src/test/compile-fail/issue-3680.rs
src/test/compile-fail/issue-3680.rs
+1
-1
src/test/compile-fail/issue-3953.rs
src/test/compile-fail/issue-3953.rs
+1
-1
src/test/compile-fail/issue-511.rs
src/test/compile-fail/issue-511.rs
+2
-2
src/test/compile-fail/issue-5358-1.rs
src/test/compile-fail/issue-5358-1.rs
+1
-1
src/test/compile-fail/issue-5358.rs
src/test/compile-fail/issue-5358.rs
+1
-1
src/test/compile-fail/lint-unused-imports.rs
src/test/compile-fail/lint-unused-imports.rs
+8
-8
src/test/compile-fail/map-types.rs
src/test/compile-fail/map-types.rs
+3
-3
src/test/compile-fail/moves-based-on-type-cyclic-types-issue-4821.rs
...mpile-fail/moves-based-on-type-cyclic-types-issue-4821.rs
+1
-1
src/test/compile-fail/mutable-huh-ptr-assign.rs
src/test/compile-fail/mutable-huh-ptr-assign.rs
+1
-1
src/test/compile-fail/name-clash-nullary.rs
src/test/compile-fail/name-clash-nullary.rs
+1
-1
src/test/compile-fail/no-capture-arc.rs
src/test/compile-fail/no-capture-arc.rs
+2
-2
src/test/compile-fail/no-reuse-move-arc.rs
src/test/compile-fail/no-reuse-move-arc.rs
+2
-2
src/test/compile-fail/no-send-res-ports.rs
src/test/compile-fail/no-send-res-ports.rs
+1
-1
src/test/compile-fail/noexporttypeexe.rs
src/test/compile-fail/noexporttypeexe.rs
+1
-1
src/test/compile-fail/pattern-tyvar-2.rs
src/test/compile-fail/pattern-tyvar-2.rs
+1
-1
src/test/compile-fail/pattern-tyvar.rs
src/test/compile-fail/pattern-tyvar.rs
+1
-1
src/test/compile-fail/qquote-1.rs
src/test/compile-fail/qquote-1.rs
+1
-1
src/test/compile-fail/qquote-2.rs
src/test/compile-fail/qquote-2.rs
+2
-2
src/test/compile-fail/regions-glb-free-free.rs
src/test/compile-fail/regions-glb-free-free.rs
+1
-1
src/test/compile-fail/seq-args.rs
src/test/compile-fail/seq-args.rs
+1
-1
src/test/compile-fail/spawn-non-nil-fn.rs
src/test/compile-fail/spawn-non-nil-fn.rs
+1
-1
src/test/compile-fail/sync-cond-shouldnt-escape.rs
src/test/compile-fail/sync-cond-shouldnt-escape.rs
+2
-2
src/test/compile-fail/sync-rwlock-cond-shouldnt-escape.rs
src/test/compile-fail/sync-rwlock-cond-shouldnt-escape.rs
+2
-2
src/test/compile-fail/sync-rwlock-read-mode-shouldnt-escape.rs
...est/compile-fail/sync-rwlock-read-mode-shouldnt-escape.rs
+2
-2
src/test/compile-fail/sync-rwlock-write-mode-cond-shouldnt-escape.rs
...mpile-fail/sync-rwlock-write-mode-cond-shouldnt-escape.rs
+2
-2
src/test/compile-fail/sync-rwlock-write-mode-shouldnt-escape.rs
...st/compile-fail/sync-rwlock-write-mode-shouldnt-escape.rs
+2
-2
src/test/compile-fail/tag-that-dare-not-speak-its-name.rs
src/test/compile-fail/tag-that-dare-not-speak-its-name.rs
+2
-2
src/test/compile-fail/use-meta-dup.rs
src/test/compile-fail/use-meta-dup.rs
+1
-1
src/test/compile-fail/use-meta-mismatch.rs
src/test/compile-fail/use-meta-mismatch.rs
+2
-2
src/test/compile-fail/view-items-at-top.rs
src/test/compile-fail/view-items-at-top.rs
+2
-2
src/test/run-fail/extern-fail.rs
src/test/run-fail/extern-fail.rs
+1
-1
src/test/run-fail/fail-main.rs
src/test/run-fail/fail-main.rs
+1
-1
src/test/run-fail/fmt-fail.rs
src/test/run-fail/fmt-fail.rs
+1
-1
src/test/run-fail/for-each-loop-fail.rs
src/test/run-fail/for-each-loop-fail.rs
+1
-1
src/test/run-fail/issue-2156.rs
src/test/run-fail/issue-2156.rs
+2
-2
src/test/run-fail/issue-2444.rs
src/test/run-fail/issue-2444.rs
+2
-2
src/test/run-fail/linked-failure.rs
src/test/run-fail/linked-failure.rs
+1
-1
src/test/run-fail/morestack2.rs
src/test/run-fail/morestack2.rs
+1
-1
src/test/run-fail/morestack3.rs
src/test/run-fail/morestack3.rs
+1
-1
src/test/run-fail/morestack4.rs
src/test/run-fail/morestack4.rs
+1
-1
src/test/run-fail/run-unexported-tests.rs
src/test/run-fail/run-unexported-tests.rs
+1
-1
src/test/run-fail/spawnfail.rs
src/test/run-fail/spawnfail.rs
+1
-1
src/test/run-fail/unwind-misc-1.rs
src/test/run-fail/unwind-misc-1.rs
+1
-1
src/test/run-fail/zip-different-lengths.rs
src/test/run-fail/zip-different-lengths.rs
+2
-2
src/test/run-pass-fulldeps/qquote.rs
src/test/run-pass-fulldeps/qquote.rs
+2
-2
src/test/run-pass/alt-join.rs
src/test/run-pass/alt-join.rs
+1
-1
src/test/run-pass/alt-pattern-drop.rs
src/test/run-pass/alt-pattern-drop.rs
+8
-8
src/test/run-pass/attr-before-view-item.rs
src/test/run-pass/attr-before-view-item.rs
+1
-1
src/test/run-pass/attr-before-view-item2.rs
src/test/run-pass/attr-before-view-item2.rs
+1
-1
src/test/run-pass/auto-encode.rs
src/test/run-pass/auto-encode.rs
+8
-8
src/test/run-pass/bind-by-move.rs
src/test/run-pass/bind-by-move.rs
+2
-2
src/test/run-pass/binops.rs
src/test/run-pass/binops.rs
+5
-5
src/test/run-pass/bitv-perf-test.rs
src/test/run-pass/bitv-perf-test.rs
+2
-2
src/test/run-pass/block-arg-call-as.rs
src/test/run-pass/block-arg-call-as.rs
+1
-1
src/test/run-pass/block-vec-map_zip.rs
src/test/run-pass/block-vec-map_zip.rs
+1
-1
src/test/run-pass/borrowck-mut-uniq.rs
src/test/run-pass/borrowck-mut-uniq.rs
+1
-1
src/test/run-pass/c-stack-returning-int64.rs
src/test/run-pass/c-stack-returning-int64.rs
+1
-1
src/test/run-pass/capture_nil.rs
src/test/run-pass/capture_nil.rs
+1
-1
src/test/run-pass/child-outlives-parent.rs
src/test/run-pass/child-outlives-parent.rs
+1
-1
src/test/run-pass/class-cast-to-trait-cross-crate-2.rs
src/test/run-pass/class-cast-to-trait-cross-crate-2.rs
+1
-1
src/test/run-pass/class-impl-parameterized-trait.rs
src/test/run-pass/class-impl-parameterized-trait.rs
+2
-2
src/test/run-pass/class-impl-very-parameterized-trait.rs
src/test/run-pass/class-impl-very-parameterized-trait.rs
+2
-2
src/test/run-pass/class-implements-multiple-traits.rs
src/test/run-pass/class-implements-multiple-traits.rs
+2
-2
src/test/run-pass/class-trait-bounded-param.rs
src/test/run-pass/class-trait-bounded-param.rs
+2
-2
src/test/run-pass/clone-with-exterior.rs
src/test/run-pass/clone-with-exterior.rs
+2
-2
src/test/run-pass/coherence-impl-in-fn.rs
src/test/run-pass/coherence-impl-in-fn.rs
+1
-1
src/test/run-pass/comm.rs
src/test/run-pass/comm.rs
+1
-1
src/test/run-pass/core-export-f64-sqrt.rs
src/test/run-pass/core-export-f64-sqrt.rs
+1
-1
src/test/run-pass/core-run-destroy.rs
src/test/run-pass/core-run-destroy.rs
+6
-6
src/test/run-pass/deriving-meta-multiple.rs
src/test/run-pass/deriving-meta-multiple.rs
+1
-1
src/test/run-pass/deriving-meta.rs
src/test/run-pass/deriving-meta.rs
+1
-1
src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs
src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs
+1
-1
src/test/run-pass/drop-trait-generic.rs
src/test/run-pass/drop-trait-generic.rs
+1
-1
src/test/run-pass/duplicate-use.rs
src/test/run-pass/duplicate-use.rs
+3
-3
src/test/run-pass/explicit-self-generic.rs
src/test/run-pass/explicit-self-generic.rs
+1
-1
src/test/run-pass/expr-repeat-vstore.rs
src/test/run-pass/expr-repeat-vstore.rs
+1
-1
src/test/run-pass/extern-mod-syntax.rs
src/test/run-pass/extern-mod-syntax.rs
+2
-2
src/test/run-pass/float-nan.rs
src/test/run-pass/float-nan.rs
+2
-2
src/test/run-pass/fn-bare-size.rs
src/test/run-pass/fn-bare-size.rs
+1
-1
src/test/run-pass/foreign-call-no-runtime.rs
src/test/run-pass/foreign-call-no-runtime.rs
+1
-1
src/test/run-pass/foreign-fn-linkname.rs
src/test/run-pass/foreign-fn-linkname.rs
+1
-1
src/test/run-pass/foreign2.rs
src/test/run-pass/foreign2.rs
+2
-2
src/test/run-pass/getopts_ref.rs
src/test/run-pass/getopts_ref.rs
+2
-2
src/test/run-pass/hashmap-memory.rs
src/test/run-pass/hashmap-memory.rs
+2
-2
src/test/run-pass/import-glob-crate.rs
src/test/run-pass/import-glob-crate.rs
+2
-2
src/test/run-pass/import-in-block.rs
src/test/run-pass/import-in-block.rs
+3
-3
src/test/run-pass/infinite-loops.rs
src/test/run-pass/infinite-loops.rs
+1
-1
src/test/run-pass/intrinsics-integer.rs
src/test/run-pass/intrinsics-integer.rs
+1
-1
src/test/run-pass/issue-1696.rs
src/test/run-pass/issue-1696.rs
+1
-1
src/test/run-pass/issue-2101.rs
src/test/run-pass/issue-2101.rs
+3
-3
src/test/run-pass/issue-2214.rs
src/test/run-pass/issue-2214.rs
+4
-4
src/test/run-pass/issue-2383.rs
src/test/run-pass/issue-2383.rs
+2
-2
src/test/run-pass/issue-2611.rs
src/test/run-pass/issue-2611.rs
+1
-1
src/test/run-pass/issue-2631-b.rs
src/test/run-pass/issue-2631-b.rs
+1
-1
src/test/run-pass/issue-2718.rs
src/test/run-pass/issue-2718.rs
+8
-8
src/test/run-pass/issue-2804-2.rs
src/test/run-pass/issue-2804-2.rs
+1
-1
src/test/run-pass/issue-2804.rs
src/test/run-pass/issue-2804.rs
+8
-8
src/test/run-pass/issue-2904.rs
src/test/run-pass/issue-2904.rs
+2
-2
src/test/run-pass/issue-2989.rs
src/test/run-pass/issue-2989.rs
+1
-1
src/test/run-pass/issue-3026.rs
src/test/run-pass/issue-3026.rs
+1
-1
src/test/run-pass/issue-3176.rs
src/test/run-pass/issue-3176.rs
+1
-1
src/test/run-pass/issue-3424.rs
src/test/run-pass/issue-3424.rs
+2
-2
src/test/run-pass/issue-3556.rs
src/test/run-pass/issue-3556.rs
+2
-2
src/test/run-pass/issue-3559.rs
src/test/run-pass/issue-3559.rs
+3
-3
src/test/run-pass/issue-3563-3.rs
src/test/run-pass/issue-3563-3.rs
+4
-4
src/test/run-pass/issue-3574.rs
src/test/run-pass/issue-3574.rs
+1
-1
src/test/run-pass/issue-3609.rs
src/test/run-pass/issue-3609.rs
+2
-2
src/test/run-pass/issue-3656.rs
src/test/run-pass/issue-3656.rs
+1
-1
src/test/run-pass/issue-4016.rs
src/test/run-pass/issue-4016.rs
+3
-3
src/test/run-pass/issue-4036.rs
src/test/run-pass/issue-4036.rs
+3
-3
src/test/run-pass/issue-4092.rs
src/test/run-pass/issue-4092.rs
+1
-1
src/test/run-pass/issue-4241.rs
src/test/run-pass/issue-4241.rs
+3
-3
src/test/run-pass/issue-4541.rs
src/test/run-pass/issue-4541.rs
+1
-1
src/test/run-pass/item-attributes.rs
src/test/run-pass/item-attributes.rs
+3
-3
src/test/run-pass/ivec-tag.rs
src/test/run-pass/ivec-tag.rs
+1
-1
src/test/run-pass/log-knows-the-names-of-variants-in-std.rs
src/test/run-pass/log-knows-the-names-of-variants-in-std.rs
+2
-2
src/test/run-pass/lots-a-fail.rs
src/test/run-pass/lots-a-fail.rs
+1
-1
src/test/run-pass/mlist-cycle.rs
src/test/run-pass/mlist-cycle.rs
+3
-3
src/test/run-pass/mod-view-items.rs
src/test/run-pass/mod-view-items.rs
+1
-1
src/test/run-pass/monomorphized-callees-with-ty-params-3314.rs
...est/run-pass/monomorphized-callees-with-ty-params-3314.rs
+1
-1
src/test/run-pass/morestack5.rs
src/test/run-pass/morestack5.rs
+1
-1
src/test/run-pass/morestack6.rs
src/test/run-pass/morestack6.rs
+1
-1
src/test/run-pass/move-3-unique.rs
src/test/run-pass/move-3-unique.rs
+1
-1
src/test/run-pass/move-3.rs
src/test/run-pass/move-3.rs
+1
-1
src/test/run-pass/move-4-unique.rs
src/test/run-pass/move-4-unique.rs
+1
-1
src/test/run-pass/move-4.rs
src/test/run-pass/move-4.rs
+1
-1
src/test/run-pass/mutable-alias-vec.rs
src/test/run-pass/mutable-alias-vec.rs
+1
-1
src/test/run-pass/new-import-syntax.rs
src/test/run-pass/new-import-syntax.rs
+1
-1
src/test/run-pass/new-style-constants.rs
src/test/run-pass/new-style-constants.rs
+1
-1
src/test/run-pass/new-style-fixed-length-vec.rs
src/test/run-pass/new-style-fixed-length-vec.rs
+1
-1
src/test/run-pass/newtype-struct-with-dtor.rs
src/test/run-pass/newtype-struct-with-dtor.rs
+2
-2
src/test/run-pass/non-boolean-pure-fns.rs
src/test/run-pass/non-boolean-pure-fns.rs
+2
-2
src/test/run-pass/nullable-pointer-iotareduction.rs
src/test/run-pass/nullable-pointer-iotareduction.rs
+1
-1
src/test/run-pass/overload-index-operator.rs
src/test/run-pass/overload-index-operator.rs
+1
-1
src/test/run-pass/pipe-bank-proto.rs
src/test/run-pass/pipe-bank-proto.rs
+2
-2
src/test/run-pass/pipe-detect-term.rs
src/test/run-pass/pipe-detect-term.rs
+5
-5
src/test/run-pass/pipe-peek.rs
src/test/run-pass/pipe-peek.rs
+4
-4
src/test/run-pass/pipe-pingpong-bounded.rs
src/test/run-pass/pipe-pingpong-bounded.rs
+11
-11
src/test/run-pass/pipe-pingpong-proto.rs
src/test/run-pass/pipe-pingpong-proto.rs
+3
-3
src/test/run-pass/pipe-presentation-examples.rs
src/test/run-pass/pipe-presentation-examples.rs
+3
-3
src/test/run-pass/pipe-select.rs
src/test/run-pass/pipe-select.rs
+6
-6
src/test/run-pass/pipe-sleep.rs
src/test/run-pass/pipe-sleep.rs
+6
-6
src/test/run-pass/placement-new-arena.rs
src/test/run-pass/placement-new-arena.rs
+2
-2
src/test/run-pass/reflect-visit-data.rs
src/test/run-pass/reflect-visit-data.rs
+3
-3
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/ret-break-cont-in-block.rs
src/test/run-pass/ret-break-cont-in-block.rs
+1
-1
src/test/run-pass/rt-sched-1.rs
src/test/run-pass/rt-sched-1.rs
+1
-1
src/test/run-pass/send-iloop.rs
src/test/run-pass/send-iloop.rs
+1
-1
src/test/run-pass/send-resource.rs
src/test/run-pass/send-resource.rs
+1
-1
src/test/run-pass/send-type-inference.rs
src/test/run-pass/send-type-inference.rs
+1
-1
src/test/run-pass/sendfn-spawn-with-fn-arg.rs
src/test/run-pass/sendfn-spawn-with-fn-arg.rs
+1
-1
src/test/run-pass/shape_intrinsic_tag_then_rec.rs
src/test/run-pass/shape_intrinsic_tag_then_rec.rs
+3
-3
src/test/run-pass/spawn-types.rs
src/test/run-pass/spawn-types.rs
+1
-1
src/test/run-pass/spawn.rs
src/test/run-pass/spawn.rs
+1
-1
src/test/run-pass/stat.rs
src/test/run-pass/stat.rs
+3
-3
src/test/run-pass/str-append.rs
src/test/run-pass/str-append.rs
+1
-1
src/test/run-pass/str-multiline.rs
src/test/run-pass/str-multiline.rs
+1
-1
src/test/run-pass/string-self-append.rs
src/test/run-pass/string-self-append.rs
+1
-1
src/test/run-pass/swap-1.rs
src/test/run-pass/swap-1.rs
+1
-1
src/test/run-pass/swap-2.rs
src/test/run-pass/swap-2.rs
+1
-1
src/test/run-pass/swap-overlapping.rs
src/test/run-pass/swap-overlapping.rs
+1
-1
src/test/run-pass/syntax-extension-fmt.rs
src/test/run-pass/syntax-extension-fmt.rs
+1
-1
src/test/run-pass/task-comm-0.rs
src/test/run-pass/task-comm-0.rs
+3
-3
src/test/run-pass/task-comm-10.rs
src/test/run-pass/task-comm-10.rs
+1
-1
src/test/run-pass/task-comm-11.rs
src/test/run-pass/task-comm-11.rs
+1
-1
src/test/run-pass/task-comm-12.rs
src/test/run-pass/task-comm-12.rs
+1
-1
src/test/run-pass/task-comm-13.rs
src/test/run-pass/task-comm-13.rs
+1
-1
src/test/run-pass/task-comm-15.rs
src/test/run-pass/task-comm-15.rs
+1
-1
src/test/run-pass/task-comm-17.rs
src/test/run-pass/task-comm-17.rs
+1
-1
src/test/run-pass/task-comm-3.rs
src/test/run-pass/task-comm-3.rs
+2
-2
src/test/run-pass/task-comm-5.rs
src/test/run-pass/task-comm-5.rs
+1
-1
src/test/run-pass/task-comm-6.rs
src/test/run-pass/task-comm-6.rs
+1
-1
src/test/run-pass/task-comm-7.rs
src/test/run-pass/task-comm-7.rs
+1
-1
src/test/run-pass/task-comm-9.rs
src/test/run-pass/task-comm-9.rs
+1
-1
src/test/run-pass/task-comm-chan-nil.rs
src/test/run-pass/task-comm-chan-nil.rs
+1
-1
src/test/run-pass/task-killjoin-rsrc.rs
src/test/run-pass/task-killjoin-rsrc.rs
+2
-2
src/test/run-pass/task-life-0.rs
src/test/run-pass/task-life-0.rs
+1
-1
src/test/run-pass/task-spawn-move-and-copy.rs
src/test/run-pass/task-spawn-move-and-copy.rs
+1
-1
src/test/run-pass/terminate-in-initializer.rs
src/test/run-pass/terminate-in-initializer.rs
+1
-1
src/test/run-pass/test-ignore-cfg.rs
src/test/run-pass/test-ignore-cfg.rs
+1
-1
src/test/run-pass/test-runner-hides-main.rs
src/test/run-pass/test-runner-hides-main.rs
+1
-1
src/test/run-pass/threads.rs
src/test/run-pass/threads.rs
+1
-1
src/test/run-pass/trait-inheritance-num.rs
src/test/run-pass/trait-inheritance-num.rs
+3
-3
src/test/run-pass/trait-inheritance-num0.rs
src/test/run-pass/trait-inheritance-num0.rs
+1
-1
src/test/run-pass/trait-inheritance-num1.rs
src/test/run-pass/trait-inheritance-num1.rs
+2
-2
src/test/run-pass/trait-inheritance-num2.rs
src/test/run-pass/trait-inheritance-num2.rs
+2
-2
src/test/run-pass/trait-inheritance-num3.rs
src/test/run-pass/trait-inheritance-num3.rs
+2
-2
src/test/run-pass/trait-inheritance-num5.rs
src/test/run-pass/trait-inheritance-num5.rs
+2
-2
src/test/run-pass/trait-inheritance-overloading-simple.rs
src/test/run-pass/trait-inheritance-overloading-simple.rs
+1
-1
src/test/run-pass/trait-inheritance-overloading.rs
src/test/run-pass/trait-inheritance-overloading.rs
+1
-1
src/test/run-pass/trait-to-str.rs
src/test/run-pass/trait-to-str.rs
+2
-2
src/test/run-pass/type-sizes.rs
src/test/run-pass/type-sizes.rs
+2
-2
src/test/run-pass/unify-return-ty.rs
src/test/run-pass/unify-return-ty.rs
+1
-1
src/test/run-pass/unique-kinds.rs
src/test/run-pass/unique-kinds.rs
+1
-1
src/test/run-pass/unique-send-2.rs
src/test/run-pass/unique-send-2.rs
+1
-1
src/test/run-pass/unique-send.rs
src/test/run-pass/unique-send.rs
+1
-1
src/test/run-pass/unique-swap.rs
src/test/run-pass/unique-swap.rs
+1
-1
src/test/run-pass/unwind-box.rs
src/test/run-pass/unwind-box.rs
+1
-1
src/test/run-pass/unwind-resource.rs
src/test/run-pass/unwind-resource.rs
+2
-2
src/test/run-pass/unwind-resource2.rs
src/test/run-pass/unwind-resource2.rs
+1
-1
src/test/run-pass/unwind-unique.rs
src/test/run-pass/unwind-unique.rs
+1
-1
src/test/run-pass/use-crate-name-alias.rs
src/test/run-pass/use-crate-name-alias.rs
+1
-1
src/test/run-pass/use.rs
src/test/run-pass/use.rs
+5
-5
src/test/run-pass/utf8_chars.rs
src/test/run-pass/utf8_chars.rs
+1
-1
src/test/run-pass/vec-matching-autoslice.rs
src/test/run-pass/vec-matching-autoslice.rs
+5
-5
src/test/run-pass/vec-matching-legal-tail-element-borrow.rs
src/test/run-pass/vec-matching-legal-tail-element-borrow.rs
+1
-1
src/test/run-pass/vec-matching.rs
src/test/run-pass/vec-matching.rs
+5
-5
src/test/run-pass/vec-self-append.rs
src/test/run-pass/vec-self-append.rs
+1
-1
src/test/run-pass/vec-tail-matching.rs
src/test/run-pass/vec-tail-matching.rs
+3
-3
src/test/run-pass/weird-exprs.rs
src/test/run-pass/weird-exprs.rs
+1
-1
未找到文件。
src/test/auxiliary/cci_capture_clause.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
comm
::
*
;
use
std
::
comm
::
*
;
pub
fn
foo
<
T
:
Owned
+
Copy
>
(
x
:
T
)
->
Port
<
T
>
{
let
(
p
,
c
)
=
stream
();
...
...
src/test/auxiliary/cci_class_cast.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
to_str
::
*
;
use
std
::
to_str
::
*
;
pub
mod
kitty
{
pub
struct
cat
{
...
...
src/test/auxiliary/issue-2526.rs
浏览文件 @
1be40be6
...
...
@@ -13,7 +13,7 @@
uuid
=
"54cc1bc9-02b8-447c-a227-75ebc923bc29"
)]
;
#[crate_type
=
"lib"
]
;
extern
mod
std
;
extern
mod
extra
;
struct
arc_destruct
<
T
>
{
_
data
:
int
,
...
...
src/test/auxiliary/issue-2631-a.rs
浏览文件 @
1be40be6
...
...
@@ -11,9 +11,9 @@
#[link(name
=
"req"
)]
;
#[crate_type
=
"lib"
]
;
extern
mod
std
;
extern
mod
extra
;
use
core
::
hashmap
::
HashMap
;
use
std
::
hashmap
::
HashMap
;
pub
type
header_map
=
HashMap
<~
str
,
@
mut
~
[
@~
str
]
>
;
...
...
src/test/auxiliary/trait_inheritance_overloading_xc.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
cmp
::
Eq
;
use
std
::
cmp
::
Eq
;
pub
trait
MyNum
:
Add
<
Self
,
Self
>
+
Sub
<
Self
,
Self
>
+
Mul
<
Self
,
Self
>
+
Eq
{
}
...
...
src/test/bench/core-map.rs
浏览文件 @
1be40be6
...
...
@@ -8,14 +8,14 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
use
core
::
io
;
use
std
::
time
;
use
std
::
treemap
::
TreeMap
;
use
core
::
hashmap
::{
HashMap
,
HashSet
};
use
core
::
trie
::
TrieMap
;
use
core
::
rand
::
Rng
;
use
std
::
io
;
use
extra
::
time
;
use
extra
::
treemap
::
TreeMap
;
use
std
::
hashmap
::{
HashMap
,
HashSet
};
use
std
::
trie
::
TrieMap
;
use
std
::
rand
::
Rng
;
fn
timed
(
label
:
&
str
,
f
:
&
fn
())
{
let
start
=
time
::
precise_time_s
();
...
...
@@ -103,7 +103,7 @@ fn main() {
let
mut
rand
=
vec
::
with_capacity
(
n_keys
);
{
let
mut
rng
=
core
::
rand
::
IsaacRng
::
new_seeded
([
1
,
1
,
1
,
1
,
1
,
1
,
1
]);
let
mut
rng
=
std
::
rand
::
IsaacRng
::
new_seeded
([
1
,
1
,
1
,
1
,
1
,
1
,
1
]);
let
mut
set
=
HashSet
::
new
();
while
set
.len
()
!=
n_keys
{
let
next
=
rng
.next
()
as
uint
;
...
...
src/test/bench/core-set.rs
浏览文件 @
1be40be6
...
...
@@ -8,10 +8,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
use
core
::
hashmap
::
HashSet
;
use
std
::
bitv
::
BitvSet
;
use
std
::
treemap
::
TreeSet
;
extern
mod
extra
;
use
std
::
hashmap
::
HashSet
;
use
extra
::
bitv
::
BitvSet
;
use
extra
::
treemap
::
TreeSet
;
struct
Results
{
sequential_ints
:
float
,
...
...
@@ -24,9 +24,9 @@ struct Results {
}
fn
timed
(
result
:
&
mut
float
,
op
:
&
fn
())
{
let
start
=
std
::
time
::
precise_time_s
();
let
start
=
extra
::
time
::
precise_time_s
();
op
();
let
end
=
std
::
time
::
precise_time_s
();
let
end
=
extra
::
time
::
precise_time_s
();
*
result
=
(
end
-
start
);
}
...
...
@@ -168,7 +168,7 @@ fn main() {
let
mut
results
=
empty_results
();
results
.bench_int
(
&
mut
rng
,
num_keys
,
max
,
||
HashSet
::
new
::
<
uint
>
());
results
.bench_str
(
&
mut
rng
,
num_keys
,
||
HashSet
::
new
::
<~
str
>
());
write_results
(
"
core
::hashmap::HashSet"
,
&
results
);
write_results
(
"
std
::hashmap::HashSet"
,
&
results
);
}
{
...
...
@@ -176,13 +176,13 @@ fn main() {
let
mut
results
=
empty_results
();
results
.bench_int
(
&
mut
rng
,
num_keys
,
max
,
||
TreeSet
::
new
::
<
uint
>
());
results
.bench_str
(
&
mut
rng
,
num_keys
,
||
TreeSet
::
new
::
<~
str
>
());
write_results
(
"
std
::treemap::TreeSet"
,
&
results
);
write_results
(
"
extra
::treemap::TreeSet"
,
&
results
);
}
{
let
mut
rng
=
rand
::
IsaacRng
::
new_seeded
(
seed
);
let
mut
results
=
empty_results
();
results
.bench_int
(
&
mut
rng
,
num_keys
,
max
,
||
BitvSet
::
new
());
write_results
(
"
std
::bitv::BitvSet"
,
&
results
);
write_results
(
"
extra
::bitv::BitvSet"
,
&
results
);
}
}
src/test/bench/core-std.rs
浏览文件 @
1be40be6
...
...
@@ -8,13 +8,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Microbenchmarks for various functions in
core and std
// Microbenchmarks for various functions in
std and extra
extern
mod
std
;
extern
mod
extra
;
use
std
::
time
::
precise_time_s
;
use
core
::
rand
::
RngUtil
;
use
core
::
util
;
use
extra
::
time
::
precise_time_s
;
use
std
::
rand
::
RngUtil
;
use
std
::
util
;
macro_rules!
bench
(
(
$id:ident
)
=>
(
maybe_run_test
(
argv
,
stringify!
(
$id
)
.to_owned
(),
$id
))
...
...
src/test/bench/graph500-bfs.rs
浏览文件 @
1be40be6
...
...
@@ -16,14 +16,14 @@
*/
extern
mod
std
;
use
std
::
arc
;
use
std
::
time
;
use
std
::
deque
::
Deque
;
use
std
::
par
;
use
core
::
hashmap
::
HashSet
;
use
core
::
int
::
abs
;
use
core
::
rand
::
RngUtil
;
extern
mod
extra
;
use
extra
::
arc
;
use
extra
::
time
;
use
extra
::
deque
::
Deque
;
use
extra
::
par
;
use
std
::
hashmap
::
HashSet
;
use
std
::
int
::
abs
;
use
std
::
rand
::
RngUtil
;
type
node_id
=
i64
;
type
graph
=
~
[
~
[
node_id
]];
...
...
src/test/bench/msgsend-pipes-shared.rs
浏览文件 @
1be40be6
...
...
@@ -18,11 +18,11 @@
// different scalability characteristics compared to the select
// version.
extern
mod
std
;
use
core
::
io
::
Writer
;
use
core
::
io
::
WriterUtil
;
extern
mod
extra
;
use
std
::
io
::
Writer
;
use
std
::
io
::
WriterUtil
;
use
core
::
comm
::{
Port
,
Chan
,
SharedChan
};
use
std
::
comm
::{
Port
,
Chan
,
SharedChan
};
macro_rules!
move_out
(
{
$x:expr
}
=>
{
unsafe
{
let
y
=
*
ptr
::
to_unsafe_ptr
(
&
(
$x
));
y
}
}
...
...
@@ -61,7 +61,7 @@ fn run(args: &[~str]) {
let
size
=
uint
::
from_str
(
args
[
1
])
.get
();
let
workers
=
uint
::
from_str
(
args
[
2
])
.get
();
let
num_bytes
=
100
;
let
start
=
std
::
time
::
precise_time_s
();
let
start
=
extra
::
time
::
precise_time_s
();
let
mut
worker_results
=
~
[];
for
uint
::
range
(
0
,
workers
)
|
_
i
|
{
let
to_child
=
to_child
.clone
();
...
...
@@ -87,7 +87,7 @@ fn run(args: &[~str]) {
to_child
.send
(
stop
);
move_out!
(
to_child
);
let
result
=
from_child
.recv
();
let
end
=
std
::
time
::
precise_time_s
();
let
end
=
extra
::
time
::
precise_time_s
();
let
elapsed
=
end
-
start
;
io
::
stdout
()
.write_str
(
fmt!
(
"Count is %?
\n
"
,
result
));
io
::
stdout
()
.write_str
(
fmt!
(
"Test took %? seconds
\n
"
,
elapsed
));
...
...
src/test/bench/msgsend-pipes.rs
浏览文件 @
1be40be6
...
...
@@ -14,11 +14,11 @@
//
// I *think* it's the same, more or less.
extern
mod
std
;
use
core
::
io
::
Writer
;
use
core
::
io
::
WriterUtil
;
extern
mod
extra
;
use
std
::
io
::
Writer
;
use
std
::
io
::
WriterUtil
;
use
core
::
comm
::{
Port
,
PortSet
,
Chan
,
stream
};
use
std
::
comm
::{
Port
,
PortSet
,
Chan
,
stream
};
macro_rules!
move_out
(
{
$x:expr
}
=>
{
unsafe
{
let
y
=
*
ptr
::
to_unsafe_ptr
(
&
(
$x
));
y
}
}
...
...
@@ -57,7 +57,7 @@ fn run(args: &[~str]) {
let
size
=
uint
::
from_str
(
args
[
1
])
.get
();
let
workers
=
uint
::
from_str
(
args
[
2
])
.get
();
let
num_bytes
=
100
;
let
start
=
std
::
time
::
precise_time_s
();
let
start
=
extra
::
time
::
precise_time_s
();
let
mut
worker_results
=
~
[];
for
uint
::
range
(
0
,
workers
)
|
_
i
|
{
let
(
from_parent_
,
to_child
)
=
stream
();
...
...
@@ -84,7 +84,7 @@ fn run(args: &[~str]) {
to_child
.send
(
stop
);
move_out!
(
to_child
);
let
result
=
from_child
.recv
();
let
end
=
std
::
time
::
precise_time_s
();
let
end
=
extra
::
time
::
precise_time_s
();
let
elapsed
=
end
-
start
;
io
::
stdout
()
.write_str
(
fmt!
(
"Count is %?
\n
"
,
result
));
io
::
stdout
()
.write_str
(
fmt!
(
"Test took %? seconds
\n
"
,
elapsed
));
...
...
src/test/bench/msgsend-ring-mutex-arcs.rs
浏览文件 @
1be40be6
...
...
@@ -15,11 +15,11 @@
// This also serves as a pipes test, because ARCs are implemented with pipes.
extern
mod
std
;
use
std
::
time
;
use
std
::
arc
;
use
std
::
future
;
use
core
::
cell
::
Cell
;
extern
mod
extra
;
use
extra
::
time
;
use
extra
::
arc
;
use
extra
::
future
;
use
std
::
cell
::
Cell
;
// A poor man's pipe.
type
pipe
=
arc
::
MutexARC
<~
[
uint
]
>
;
...
...
src/test/bench/msgsend-ring-pipes.rs
浏览文件 @
1be40be6
...
...
@@ -16,13 +16,13 @@
// This version uses automatically compiled channel contracts.
extern
mod
std
;
extern
mod
extra
;
use
core
::
cell
::
Cell
;
use
core
::
pipes
::
recv
;
use
core
::
util
;
use
std
::
time
;
use
std
::
future
;
use
std
::
cell
::
Cell
;
use
std
::
pipes
::
recv
;
use
std
::
util
;
use
extra
::
time
;
use
extra
::
future
;
proto!
ring
(
num
:
send
{
...
...
src/test/bench/msgsend-ring-rw-arcs.rs
浏览文件 @
1be40be6
...
...
@@ -15,12 +15,12 @@
// This also serves as a pipes test, because ARCs are implemented with pipes.
extern
mod
std
;
extern
mod
extra
;
use
core
::
cell
::
Cell
;
use
std
::
time
;
use
std
::
arc
;
use
std
::
future
;
use
std
::
cell
::
Cell
;
use
extra
::
time
;
use
extra
::
arc
;
use
extra
::
future
;
// A poor man's pipe.
type
pipe
=
arc
::
RWARC
<~
[
uint
]
>
;
...
...
src/test/bench/noise.rs
浏览文件 @
1be40be6
// Perlin noise benchmark from https://gist.github.com/1170424
use
core
::
rand
::{
Rng
,
RngUtil
};
use
std
::
rand
::{
Rng
,
RngUtil
};
struct
Vec2
{
x
:
f32
,
...
...
src/test/bench/pingpong.rs
浏览文件 @
1be40be6
...
...
@@ -12,11 +12,11 @@
// xfail-pretty
extern
mod
std
;
extern
mod
extra
;
use
core
::
cell
::
Cell
;
use
core
::
pipes
::
*
;
use
std
::
time
::
precise_time_s
;
use
std
::
cell
::
Cell
;
use
std
::
pipes
::
*
;
use
extra
::
time
::
precise_time_s
;
proto!
pingpong
(
ping
:
send
{
...
...
@@ -117,10 +117,10 @@ pub fn spawn_service_recv<T:Owned,Tb:Owned>(
client
}
fn
switch
<
T
:
Owned
,
Tb
:
Owned
,
U
>
(
endp
:
core
::
pipes
::
RecvPacketBuffered
<
T
,
Tb
>
,
fn
switch
<
T
:
Owned
,
Tb
:
Owned
,
U
>
(
endp
:
std
::
pipes
::
RecvPacketBuffered
<
T
,
Tb
>
,
f
:
&
fn
(
v
:
Option
<
T
>
)
->
U
)
->
U
{
f
(
core
::
pipes
::
try_recv
(
endp
))
f
(
std
::
pipes
::
try_recv
(
endp
))
}
// Here's the benchmark
...
...
src/test/bench/shootout-ackermann.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
fn
ack
(
m
:
int
,
n
:
int
)
->
int
{
if
m
==
0
{
...
...
src/test/bench/shootout-binarytrees.rs
浏览文件 @
1be40be6
...
...
@@ -12,8 +12,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
use
std
::
arena
;
extern
mod
extra
;
use
extra
::
arena
;
enum
tree
<
'self
>
{
nil
,
...
...
src/test/bench/shootout-chameneos-redux.rs
浏览文件 @
1be40be6
...
...
@@ -10,10 +10,10 @@
// chameneos
extern
mod
std
;
use
std
::
sort
;
use
core
::
cell
::
Cell
;
use
core
::
comm
::
*
;
extern
mod
extra
;
use
extra
::
sort
;
use
std
::
cell
::
Cell
;
use
std
::
comm
::
*
;
fn
print_complements
()
{
let
all
=
~
[
Blue
,
Red
,
Yellow
];
...
...
src/test/bench/shootout-fannkuch-redux.rs
浏览文件 @
1be40be6
use
core
::
from_str
::
FromStr
;
use
core
::
i32
::
range
;
use
core
::
vec
::
MutableVector
;
use
std
::
from_str
::
FromStr
;
use
std
::
i32
::
range
;
use
std
::
vec
::
MutableVector
;
fn
max
(
a
:
i32
,
b
:
i32
)
->
i32
{
if
a
>
b
{
...
...
src/test/bench/shootout-fasta-redux.rs
浏览文件 @
1be40be6
use
core
::
cast
::
transmute
;
use
core
::
from_str
::
FromStr
;
use
core
::
libc
::{
FILE
,
STDOUT_FILENO
,
c_int
,
fdopen
,
fputc
,
fputs
,
fwrite
,
size_t
};
use
core
::
uint
::{
min
,
range
};
use
core
::
vec
::
bytes
::
copy_memory
;
use
std
::
cast
::
transmute
;
use
std
::
from_str
::
FromStr
;
use
std
::
libc
::{
FILE
,
STDOUT_FILENO
,
c_int
,
fdopen
,
fputc
,
fputs
,
fwrite
,
size_t
};
use
std
::
uint
::{
min
,
range
};
use
std
::
vec
::
bytes
::
copy_memory
;
static
LINE_LEN
:
uint
=
60
;
static
LOOKUP_SIZE
:
uint
=
4
*
1024
;
...
...
src/test/bench/shootout-fasta.rs
浏览文件 @
1be40be6
...
...
@@ -15,8 +15,8 @@
* Computer Language Benchmarks Game
* http://shootout.alioth.debian.org/
*/
extern
mod
std
;
use
core
::
rand
::
Rng
;
extern
mod
extra
;
use
std
::
rand
::
Rng
;
fn
LINE_LENGTH
()
->
uint
{
return
60u
;
}
...
...
src/test/bench/shootout-fibo.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
fn
fib
(
n
:
int
)
->
int
{
if
n
<
2
{
...
...
src/test/bench/shootout-k-nucleotide-pipes.rs
浏览文件 @
1be40be6
...
...
@@ -11,13 +11,13 @@
// xfail-pretty (extra blank line is inserted in vec::mapi call)
// multi tasking k-nucleotide
extern
mod
std
;
use
std
::
sort
;
use
core
::
hashmap
::
HashMap
;
use
core
::
io
::
ReaderUtil
;
use
core
::
comm
::{
stream
,
Port
,
Chan
};
use
core
::
cmp
::
Ord
;
use
core
::
util
;
extern
mod
extra
;
use
extra
::
sort
;
use
std
::
hashmap
::
HashMap
;
use
std
::
io
::
ReaderUtil
;
use
std
::
comm
::{
stream
,
Port
,
Chan
};
use
std
::
cmp
::
Ord
;
use
std
::
util
;
// given a map, print a sorted version of it
fn
sort_and_fmt
(
mm
:
&
HashMap
<~
[
u8
],
uint
>
,
total
:
uint
)
->
~
str
{
...
...
src/test/bench/shootout-k-nucleotide.rs
浏览文件 @
1be40be6
// xfail-test
extern
mod
std
;
use
core
::
cast
::
transmute
;
use
core
::
i32
::
range
;
use
core
::
libc
::{
STDIN_FILENO
,
c_int
,
fdopen
,
fgets
,
fileno
,
fopen
,
fstat
};
use
core
::
libc
::{
stat
,
strlen
};
use
core
::
ptr
::
null
;
use
core
::
unstable
::
intrinsics
::
init
;
use
core
::
vec
::{
reverse
,
slice
};
use
std
::
sort
::
quick_sort3
;
extern
mod
extra
;
use
std
::
cast
::
transmute
;
use
std
::
i32
::
range
;
use
std
::
libc
::{
STDIN_FILENO
,
c_int
,
fdopen
,
fgets
,
fileno
,
fopen
,
fstat
};
use
std
::
libc
::{
stat
,
strlen
};
use
std
::
ptr
::
null
;
use
std
::
unstable
::
intrinsics
::
init
;
use
std
::
vec
::{
reverse
,
slice
};
use
extra
::
sort
::
quick_sort3
;
static
LINE_LEN
:
uint
=
80
;
static
TABLE
:
[
u8
,
..
4
]
=
[
'A'
as
u8
,
'C'
as
u8
,
'G'
as
u8
,
'T'
as
u8
];
...
...
src/test/bench/shootout-mandelbrot.rs
浏览文件 @
1be40be6
use
core
::
cast
::
transmute
;
use
core
::
from_str
::
FromStr
;
use
core
::
i32
::
range
;
use
core
::
libc
::{
STDOUT_FILENO
,
c_int
,
fdopen
,
fputc
};
use
std
::
cast
::
transmute
;
use
std
::
from_str
::
FromStr
;
use
std
::
i32
::
range
;
use
std
::
libc
::{
STDOUT_FILENO
,
c_int
,
fdopen
,
fputc
};
static
ITER
:
uint
=
50
;
static
LIMIT
:
f64
=
2.0
;
...
...
src/test/bench/shootout-nbody.rs
浏览文件 @
1be40be6
use
core
::
from_str
::
FromStr
;
use
core
::
uint
::
range
;
use
std
::
from_str
::
FromStr
;
use
std
::
uint
::
range
;
static
PI
:
f64
=
3.141592653589793
;
static
SOLAR_MASS
:
f64
=
4.0
*
PI
*
PI
;
...
...
src/test/bench/shootout-pfib.rs
浏览文件 @
1be40be6
...
...
@@ -19,14 +19,14 @@
*/
extern
mod
std
;
extern
mod
extra
;
use
std
::{
time
,
getopts
};
use
core
::
int
::
range
;
use
core
::
comm
::
*
;
use
core
::
io
::
WriterUtil
;
use
extra
::{
time
,
getopts
};
use
std
::
int
::
range
;
use
std
::
comm
::
*
;
use
std
::
io
::
WriterUtil
;
use
core
::
result
::{
Ok
,
Err
};
use
std
::
result
::{
Ok
,
Err
};
fn
fib
(
n
:
int
)
->
int
{
fn
pfib
(
c
:
&
Chan
<
int
>
,
n
:
int
)
{
...
...
src/test/bench/shootout-pidigits.rs
浏览文件 @
1be40be6
// xfail-test
use
core
::
cast
::
transmute
;
use
core
::
from_str
::
FromStr
;
use
core
::
libc
::{
STDOUT_FILENO
,
c_char
,
c_int
,
c_uint
,
c_void
,
fdopen
,
fputc
};
use
core
::
libc
::{
fputs
};
use
core
::
ptr
::
null
;
use
std
::
cast
::
transmute
;
use
std
::
from_str
::
FromStr
;
use
std
::
libc
::{
STDOUT_FILENO
,
c_char
,
c_int
,
c_uint
,
c_void
,
fdopen
,
fputc
};
use
std
::
libc
::{
fputs
};
use
std
::
ptr
::
null
;
struct
mpz_t
{
_
mp_alloc
:
c_int
,
...
...
src/test/bench/shootout-reverse-complement.rs
浏览文件 @
1be40be6
// xfail-pretty
// xfail-test
use
core
::
cast
::
transmute
;
use
core
::
libc
::{
STDOUT_FILENO
,
c_int
,
fdopen
,
fgets
,
fopen
,
fputc
,
fwrite
};
use
core
::
libc
::{
size_t
};
use
core
::
ptr
::
null
;
use
core
::
vec
::{
capacity
,
reserve
,
reserve_at_least
};
use
core
::
vec
::
raw
::
set_len
;
use
std
::
cast
::
transmute
;
use
std
::
libc
::{
STDOUT_FILENO
,
c_int
,
fdopen
,
fgets
,
fopen
,
fputc
,
fwrite
};
use
std
::
libc
::{
size_t
};
use
std
::
ptr
::
null
;
use
std
::
vec
::{
capacity
,
reserve
,
reserve_at_least
};
use
std
::
vec
::
raw
::
set_len
;
static
LINE_LEN
:
u32
=
80
;
...
...
src/test/bench/shootout-spectralnorm.rs
浏览文件 @
1be40be6
use
core
::
from_str
::
FromStr
;
use
core
::
iter
::
ExtendedMutableIter
;
use
std
::
from_str
::
FromStr
;
use
std
::
iter
::
ExtendedMutableIter
;
#[inline]
fn
A
(
i
:
i32
,
j
:
i32
)
->
i32
{
...
...
src/test/bench/std-smallintmap.rs
浏览文件 @
1be40be6
...
...
@@ -10,9 +10,9 @@
// Microbenchmark for the smallintmap library
extern
mod
std
;
use
std
::
smallintmap
::
SmallIntMap
;
use
core
::
io
::
WriterUtil
;
extern
mod
extra
;
use
extra
::
smallintmap
::
SmallIntMap
;
use
std
::
io
::
WriterUtil
;
fn
append_sequential
(
min
:
uint
,
max
:
uint
,
map
:
&
mut
SmallIntMap
<
uint
>
)
{
for
uint
::
range
(
min
,
max
)
|
i
|
{
...
...
@@ -43,11 +43,11 @@ fn main() {
for
uint
::
range
(
0u
,
rep
)
|
_
r
|
{
let
mut
map
=
SmallIntMap
::
new
();
let
start
=
std
::
time
::
precise_time_s
();
let
start
=
extra
::
time
::
precise_time_s
();
append_sequential
(
0u
,
max
,
&
mut
map
);
let
mid
=
std
::
time
::
precise_time_s
();
let
mid
=
extra
::
time
::
precise_time_s
();
check_sequential
(
0u
,
max
,
&
map
);
let
end
=
std
::
time
::
precise_time_s
();
let
end
=
extra
::
time
::
precise_time_s
();
checkf
+=
(
end
-
mid
)
as
float
;
appendf
+=
(
mid
-
start
)
as
float
;
...
...
src/test/bench/sudoku.rs
浏览文件 @
1be40be6
...
...
@@ -10,11 +10,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
use
core
::
io
::{
ReaderUtil
,
WriterUtil
};
use
core
::
io
;
use
core
::
unstable
::
intrinsics
::
cttz16
;
use
std
::
io
::{
ReaderUtil
,
WriterUtil
};
use
std
::
io
;
use
std
::
unstable
::
intrinsics
::
cttz16
;
// Computes a single solution to a given 9x9 sudoku
//
...
...
src/test/bench/task-perf-alloc-unwind.rs
浏览文件 @
1be40be6
...
...
@@ -10,10 +10,10 @@
// xfail-win32
extern
mod
std
;
extern
mod
extra
;
use
std
::
list
::{
List
,
Cons
,
Nil
};
use
std
::
time
::
precise_time_s
;
use
extra
::
list
::{
List
,
Cons
,
Nil
};
use
extra
::
time
::
precise_time_s
;
enum
UniqueList
{
ULNil
,
ULCons
(
~
UniqueList
)
...
...
src/test/bench/task-perf-jargon-metal-smoke.rs
浏览文件 @
1be40be6
...
...
@@ -17,7 +17,7 @@
//
// The filename is a song reference; google it in quotes.
use
core
::
cell
::
Cell
;
use
std
::
cell
::
Cell
;
fn
child_generation
(
gens_left
:
uint
,
c
:
comm
::
Chan
<
()
>
)
{
// This used to be O(n^2) in the number of generations that ever existed.
...
...
src/test/bench/task-perf-linked-failure.rs
浏览文件 @
1be40be6
...
...
@@ -22,7 +22,7 @@
// Creates in the background 'num_tasks' tasks, all blocked forever.
// Doesn't return until all such tasks are ready, but doesn't block forever itself.
use
core
::
comm
::
*
;
use
std
::
comm
::
*
;
fn
grandchild_group
(
num_tasks
:
uint
)
{
let
(
po
,
ch
)
=
stream
();
...
...
src/test/bench/task-perf-one-million.rs
浏览文件 @
1be40be6
...
...
@@ -10,7 +10,7 @@
// Test for concurrent tasks
use
core
::
comm
::
*
;
use
std
::
comm
::
*
;
fn
calc
(
children
:
uint
,
parent_wait_chan
:
&
Chan
<
Chan
<
Chan
<
int
>>>
)
{
...
...
src/test/compile-fail/arc-cant-nest-rw-arc-3177.rs
浏览文件 @
1be40be6
...
...
@@ -10,8 +10,8 @@
// xfail-test
// error-pattern: instantiating a type parameter with an incompatible type
extern
mod
std
;
use
std
::
arc
::
rw_arc
;
extern
mod
extra
;
use
extra
::
arc
::
rw_arc
;
fn
main
()
{
let
arc1
=
~
rw_arc
(
true
);
...
...
src/test/compile-fail/arc-rw-cond-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
fn
main
()
{
let
x
=
~
arc
::
RWARC
(
1
);
let
mut
y
=
None
;
...
...
src/test/compile-fail/arc-rw-read-mode-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
fn
main
()
{
let
x
=
~
arc
::
RWARC
(
1
);
let
mut
y
=
None
;
...
...
src/test/compile-fail/arc-rw-state-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
fn
main
()
{
let
x
=
~
arc
::
RWARC
(
1
);
let
mut
y
=
None
;
...
...
src/test/compile-fail/arc-rw-write-mode-cond-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
fn
main
()
{
let
x
=
~
arc
::
RWARC
(
1
);
let
mut
y
=
None
;
...
...
src/test/compile-fail/arc-rw-write-mode-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
fn
main
()
{
let
x
=
~
arc
::
RWARC
(
1
);
let
mut
y
=
None
;
...
...
src/test/compile-fail/borrowck-borrowed-uniq-rvalue.rs
浏览文件 @
1be40be6
...
...
@@ -10,7 +10,7 @@
//buggy.rs
use
core
::
hashmap
::
HashMap
;
use
std
::
hashmap
::
HashMap
;
fn
main
()
{
let
mut
buggy_map
:
HashMap
<
uint
,
&
uint
>
=
...
...
src/test/compile-fail/borrowck-insert-during-each.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
hashmap
::
HashSet
;
use
std
::
hashmap
::
HashSet
;
struct
Foo
{
n
:
HashSet
<
int
>
,
...
...
src/test/compile-fail/borrowck-loan-local-as-both-mut-and-imm.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
either
::{
Either
,
Left
,
Right
};
use
std
::
either
::{
Either
,
Left
,
Right
};
fn
f
(
x
:
&
mut
Either
<
int
,
float
>
,
y
:
&
Either
<
int
,
float
>
)
->
int
{
match
*
y
{
...
...
src/test/compile-fail/borrowck-move-by-capture.rs
浏览文件 @
1be40be6
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
let
foo
=
~
3
;
...
...
src/test/compile-fail/borrowck-vec-pattern-move-tail.rs
浏览文件 @
1be40be6
...
...
@@ -2,7 +2,7 @@ fn main() {
let
mut
a
=
[
1
,
2
,
3
,
4
];
let
t
=
match
a
{
[
1
,
2
,
..
tail
]
=>
tail
,
_
=>
core
::
util
::
unreachable
()
_
=>
std
::
util
::
unreachable
()
};
a
[
0
]
=
0
;
//~ ERROR cannot assign to `a[]` because it is borrowed
t
[
0
];
...
...
src/test/compile-fail/core-tls-store-pointer.rs
浏览文件 @
1be40be6
...
...
@@ -10,7 +10,7 @@
// Testing that we can't store a borrowed pointer it task-local storage
use
core
::
local_data
::
*
;
use
std
::
local_data
::
*
;
fn
key
(
_
x
:
@&
int
)
{
}
...
...
src/test/compile-fail/extfmt-not-enough-args.rs
浏览文件 @
1be40be6
...
...
@@ -10,6 +10,6 @@
// error-pattern:not enough arguments
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
let
s
=
fmt!
(
"%s%s%s"
,
"test"
,
"test"
);
}
src/test/compile-fail/extfmt-too-many-args.rs
浏览文件 @
1be40be6
...
...
@@ -10,6 +10,6 @@
// error-pattern:too many arguments
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
let
s
=
fmt!
(
"%s"
,
"test"
,
"test"
);
}
src/test/compile-fail/fail-expr.rs
浏览文件 @
1be40be6
...
...
@@ -8,6 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:failed to find an implementation of trait
core
::sys::FailWithCause for int
// error-pattern:failed to find an implementation of trait
std
::sys::FailWithCause for int
fn
main
()
{
fail
!
(
5
);
}
src/test/compile-fail/fail-type-err.rs
浏览文件 @
1be40be6
...
...
@@ -8,5 +8,5 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:failed to find an implementation of trait
core
::sys::FailWithCause for ~[int]
// error-pattern:failed to find an implementation of trait
std
::sys::FailWithCause for ~[int]
fn
main
()
{
fail
!
(
~
[
0
i
]);
}
src/test/compile-fail/forget-init-unsafe.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
unstable
::
intrinsics
::{
init
,
forget
};
use
std
::
unstable
::
intrinsics
::{
init
,
forget
};
// Test that the `forget` and `init` intrinsics are really unsafe
pub
fn
main
()
{
...
...
src/test/compile-fail/fully-qualified-type-name1.rs
浏览文件 @
1be40be6
...
...
@@ -13,5 +13,5 @@
fn
main
()
{
let
x
:
Option
<
uint
>
;
x
=
5
;
//~^ ERROR mismatched types: expected `
core
::option::Option<uint>`
//~^ ERROR mismatched types: expected `
std
::option::Option<uint>`
}
src/test/compile-fail/fully-qualified-type-name4.rs
浏览文件 @
1be40be6
...
...
@@ -10,11 +10,11 @@
// Test that we use fully-qualified type names in error messages.
use
core
::
task
::
Task
;
use
std
::
task
::
Task
;
fn
bar
(
x
:
uint
)
->
Task
{
return
x
;
//~^ ERROR mismatched types: expected `
core
::task::Task`
//~^ ERROR mismatched types: expected `
std
::task::Task`
}
fn
main
()
{
...
...
src/test/compile-fail/issue-2766-a.rs
浏览文件 @
1be40be6
...
...
@@ -11,8 +11,8 @@
pub
mod
stream
{
pub
enum
Stream
<
T
:
Owned
>
{
send
(
T
,
::
stream
::
server
::
Stream
<
T
>
),
}
pub
mod
server
{
use
core
::
option
;
use
core
::
pipes
;
use
std
::
option
;
use
std
::
pipes
;
pub
impl
<
T
:
Owned
>
Stream
<
T
>
{
pub
fn
recv
()
->
extern
fn
(
v
:
Stream
<
T
>
)
->
::
stream
::
Stream
<
T
>
{
...
...
src/test/compile-fail/issue-3021-b.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
fn
siphash
(
k0
:
u64
)
{
...
...
src/test/compile-fail/issue-3021-c.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
fn
siphash
<
T
>
()
{
...
...
src/test/compile-fail/issue-3021-d.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
trait
siphash
{
fn
result
(
&
self
)
->
u64
;
...
...
src/test/compile-fail/issue-3021.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
trait
SipHash
{
fn
reset
(
&
self
);
...
...
src/test/compile-fail/issue-3296.rs
浏览文件 @
1be40be6
...
...
@@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
std
;
use
extra
;
struct
Deserializer
:
std
::
serialization
::
deserializer
{
//~ ERROR obsolete syntax: class traits
struct
Deserializer
:
extra
::
serialization
::
deserializer
{
//~ ERROR obsolete syntax: class traits
x
:
()
}
...
...
@@ -18,7 +18,7 @@ struct Foo {
a
:
()
}
fn
deserialize_foo
<
__
D
:
std
::
serialization
::
deserializer
>
(
__
d
:
__
D
)
{
fn
deserialize_foo
<
__
D
:
extra
::
serialization
::
deserializer
>
(
__
d
:
__
D
)
{
}
fn
main
()
{
let
des
=
Deserializer
();
let
foo
=
deserialize_foo
(
des
);
}
src/test/compile-fail/issue-3680.rs
浏览文件 @
1be40be6
...
...
@@ -10,6 +10,6 @@
fn
main
()
{
match
None
{
Err
(
_
)
=>
()
//~ ERROR mismatched types: expected `
core::option::Option<<V1>>` but found `core
::result::Result<<V2>,<V3>>`
Err
(
_
)
=>
()
//~ ERROR mismatched types: expected `
std::option::Option<<V1>>` but found `std
::result::Result<<V2>,<V3>>`
}
}
src/test/compile-fail/issue-3953.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
cmp
::
Eq
;
use
std
::
cmp
::
Eq
;
trait
Hahaha
:
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
//~ ERROR Duplicate supertrait
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
Eq
+
...
...
src/test/compile-fail/issue-511.rs
浏览文件 @
1be40be6
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
use
core
::
cmp
::
Eq
;
extern
mod
extra
;
use
std
::
cmp
::
Eq
;
fn
f
<
T
:
Eq
>
(
o
:
&
mut
Option
<
T
>
)
{
assert
!
(
*
o
==
option
::
None
);
...
...
src/test/compile-fail/issue-5358-1.rs
浏览文件 @
1be40be6
...
...
@@ -12,7 +12,7 @@
fn
main
()
{
match
S
(
Left
(
5
))
{
Right
(
_
)
=>
{}
//~ ERROR mismatched types: expected `S` but found `
core
::either::Either
Right
(
_
)
=>
{}
//~ ERROR mismatched types: expected `S` but found `
std
::either::Either
_
=>
{}
}
}
src/test/compile-fail/issue-5358.rs
浏览文件 @
1be40be6
...
...
@@ -12,6 +12,6 @@
fn
main
()
{
match
*
S
(
Left
(
5
))
{
S
(
_
)
=>
{}
//~ ERROR mismatched types: expected `
core
::either::Either<uint,uint>` but found a structure pattern
S
(
_
)
=>
{}
//~ ERROR mismatched types: expected `
std
::either::Either<uint,uint>` but found a structure pattern
}
}
src/test/compile-fail/lint-unused-imports.rs
浏览文件 @
1be40be6
...
...
@@ -12,23 +12,23 @@
use
cal
=
bar
::
c
::
cc
;
use
core
::
either
::
Right
;
//~ ERROR unused import
use
std
::
either
::
Right
;
//~ ERROR unused import
use
core
::
util
::
*
;
// shouldn't get errors for not using
use
std
::
util
::
*
;
// shouldn't get errors for not using
// everything imported
// Should get errors for both 'Some' and 'None'
use
core
::
option
::{
Some
,
None
};
//~ ERROR unused import
use
std
::
option
::{
Some
,
None
};
//~ ERROR unused import
//~^ ERROR unused import
use
core
::
io
::
ReaderUtil
;
//~ ERROR unused import
use
std
::
io
::
ReaderUtil
;
//~ ERROR unused import
// Be sure that if we just bring some methods into scope that they're also
// counted as being used.
use
core
::
io
::
WriterUtil
;
use
std
::
io
::
WriterUtil
;
// Make sure this import is warned about when at least one of its imported names
// is unused
use
core
::
vec
::{
filter
,
map
};
//~ ERROR unused import
use
std
::
vec
::{
filter
,
map
};
//~ ERROR unused import
mod
foo
{
pub
struct
Point
{
x
:
int
,
y
:
int
}
...
...
@@ -37,7 +37,7 @@ pub struct Square{p: Point, h: uint, w: uint}
mod
bar
{
// Don't ignore on 'pub use' because we're not sure if it's used or not
pub
use
core
::
cmp
::
Eq
;
pub
use
std
::
cmp
::
Eq
;
pub
mod
c
{
use
foo
::
Point
;
...
...
@@ -47,7 +47,7 @@ pub mod c {
#[allow(unused_imports)]
mod
foo
{
use
core
::
cmp
::
Eq
;
use
std
::
cmp
::
Eq
;
}
}
...
...
src/test/compile-fail/map-types.rs
浏览文件 @
1be40be6
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
container
::
Map
;
use
core
::
hashmap
::
HashMap
;
use
std
::
container
::
Map
;
use
std
::
hashmap
::
HashMap
;
// Test that trait types printed in error msgs include the type arguments.
...
...
@@ -17,5 +17,5 @@ fn main() {
let
x
:
@
Map
<~
str
,
~
str
>
=
@
HashMap
::
new
::
<~
str
,
~
str
>
()
as
@
Map
<~
str
,
~
str
>
;
let
y
:
@
Map
<
uint
,
~
str
>
=
@
x
;
//~^ ERROR mismatched types: expected `@
core
::container::Map<uint,~str>`
//~^ ERROR mismatched types: expected `@
std
::container::Map<uint,~str>`
}
src/test/compile-fail/moves-based-on-type-cyclic-types-issue-4821.rs
浏览文件 @
1be40be6
...
...
@@ -12,7 +12,7 @@
// temporary kinds wound up being stored in a cache and used later.
// See middle::ty::type_contents() for more information.
extern
mod
std
;
extern
mod
extra
;
struct
List
{
key
:
int
,
next
:
Option
<~
List
>
}
...
...
src/test/compile-fail/mutable-huh-ptr-assign.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
unsafe
fn
f
(
v
:
*
const
int
)
{
...
...
src/test/compile-fail/name-clash-nullary.rs
浏览文件 @
1be40be6
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
// error-pattern:declaration of `None` shadows
use
core
::
option
::
*
;
use
std
::
option
::
*
;
fn
main
()
{
let
None
:
int
=
42
;
...
...
src/test/compile-fail/no-capture-arc.rs
浏览文件 @
1be40be6
...
...
@@ -10,8 +10,8 @@
// error-pattern: use of moved value
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
fn
main
()
{
let
v
=
~
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
];
...
...
src/test/compile-fail/no-reuse-move-arc.rs
浏览文件 @
1be40be6
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
fn
main
()
{
let
v
=
~
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
];
...
...
src/test/compile-fail/no-send-res-ports.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
core
::
cell
::
Cell
;
use
std
::
cell
::
Cell
;
struct
Port
<
T
>
(
@
T
);
...
...
src/test/compile-fail/noexporttypeexe.rs
浏览文件 @
1be40be6
...
...
@@ -18,5 +18,5 @@ fn main() {
// because the def_id associated with the type was
// not convertible to a path.
let
x
:
int
=
noexporttypelib
::
foo
();
//~^ ERROR expected `int` but found `
core
::option::Option<int>`
//~^ ERROR expected `int` but found `
std
::option::Option<int>`
}
src/test/compile-fail/pattern-tyvar-2.rs
浏览文件 @
1be40be6
...
...
@@ -10,7 +10,7 @@
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
enum
bar
{
t1
((),
Option
<~
[
int
]
>
),
t2
,
}
...
...
src/test/compile-fail/pattern-tyvar.rs
浏览文件 @
1be40be6
...
...
@@ -9,7 +9,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
// error-pattern: mismatched types
...
...
src/test/compile-fail/qquote-1.rs
浏览文件 @
1be40be6
...
...
@@ -10,7 +10,7 @@
// xfail-test Can't use syntax crate here
extern
mod
std
;
extern
mod
extra
;
extern
mod
syntax
;
use
io
::
*
;
...
...
src/test/compile-fail/qquote-2.rs
浏览文件 @
1be40be6
...
...
@@ -10,10 +10,10 @@
// xfail-test Can't use syntax crate here
extern
mod
std
;
extern
mod
extra
;
extern
mod
syntax
;
use
std
::
io
::
*
;
use
extra
::
io
::
*
;
use
syntax
::
diagnostic
;
use
syntax
::
ast
;
...
...
src/test/compile-fail/regions-glb-free-free.rs
浏览文件 @
1be40be6
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
mod
argparse
{
extern
mod
std
;
extern
mod
extra
;
pub
struct
Flag
<
'self
>
{
name
:
&
'self
str
,
...
...
src/test/compile-fail/seq-args.rs
浏览文件 @
1be40be6
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
trait
seq
{
}
...
...
src/test/compile-fail/spawn-non-nil-fn.rs
浏览文件 @
1be40be6
...
...
@@ -10,6 +10,6 @@
// error-pattern: mismatched types
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
task
::
spawn
(||
->
int
{
10
});
}
src/test/compile-fail/sync-cond-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
sync
;
extern
mod
extra
;
use
extra
::
sync
;
fn
main
()
{
let
m
=
~
sync
::
Mutex
();
...
...
src/test/compile-fail/sync-rwlock-cond-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
sync
;
extern
mod
extra
;
use
extra
::
sync
;
fn
main
()
{
let
x
=
~
sync
::
RWlock
();
let
mut
y
=
None
;
...
...
src/test/compile-fail/sync-rwlock-read-mode-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: cannot infer an appropriate lifetime
extern
mod
std
;
use
std
::
sync
;
extern
mod
extra
;
use
extra
::
sync
;
fn
main
()
{
let
x
=
~
sync
::
RWlock
();
let
mut
y
=
None
;
...
...
src/test/compile-fail/sync-rwlock-write-mode-cond-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
sync
;
extern
mod
extra
;
use
extra
::
sync
;
fn
main
()
{
let
x
=
~
sync
::
RWlock
();
let
mut
y
=
None
;
...
...
src/test/compile-fail/sync-rwlock-write-mode-shouldnt-escape.rs
浏览文件 @
1be40be6
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
// error-pattern: reference is not valid outside of its lifetime
extern
mod
std
;
use
std
::
sync
;
extern
mod
extra
;
use
extra
::
sync
;
fn
main
()
{
let
x
=
~
sync
::
RWlock
();
let
mut
y
=
None
;
...
...
src/test/compile-fail/tag-that-dare-not-speak-its-name.rs
浏览文件 @
1be40be6
...
...
@@ -13,9 +13,9 @@
#[no_std]
;
extern
mod
core
;
extern
mod
std
;
fn
last
<
T
>
(
v
:
~
[
&
T
])
->
core
::
option
::
Option
<
T
>
{
fn
last
<
T
>
(
v
:
~
[
&
T
])
->
std
::
option
::
Option
<
T
>
{
fail
!
();
}
...
...
src/test/compile-fail/use-meta-dup.rs
浏览文件 @
1be40be6
...
...
@@ -10,6 +10,6 @@
// error-pattern:duplicate meta item `name`
extern
mod
std
(
name
=
"std
"
,
name
=
"nonstd"
);
extern
mod
extra
(
name
=
"extra
"
,
name
=
"nonstd"
);
fn
main
()
{
}
src/test/compile-fail/use-meta-mismatch.rs
浏览文件 @
1be40be6
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:can't find crate for `
std
`
// error-pattern:can't find crate for `
extra
`
extern
mod
std
(
complex
(
meta
(
item
)));
extern
mod
extra
(
complex
(
meta
(
item
)));
fn
main
()
{
}
src/test/compile-fail/view-items-at-top.rs
浏览文件 @
1be40be6
...
...
@@ -10,12 +10,12 @@
// xfail-test
extern
mod
std
;
extern
mod
extra
;
fn
f
()
{
}
use
std
::
net
;
//~ ERROR view items must be declared at the top
use
extra
::
net
;
//~ ERROR view items must be declared at the top
fn
main
()
{
}
src/test/run-fail/extern-fail.rs
浏览文件 @
1be40be6
...
...
@@ -12,7 +12,7 @@
// Testing that runtime failure doesn't cause callbacks to abort abnormally.
// Instead the failure will be delivered after the callbacks return.
use
core
::
old_iter
;
use
std
::
old_iter
;
mod
rustrt
{
pub
extern
{
...
...
src/test/run-fail/fail-main.rs
浏览文件 @
1be40be6
...
...
@@ -9,5 +9,5 @@
// except according to those terms.
// error-pattern:moop
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
fail
!
(
"moop"
);
}
src/test/run-fail/fmt-fail.rs
浏览文件 @
1be40be6
...
...
@@ -9,6 +9,6 @@
// except according to those terms.
// error-pattern:meh
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
let
str_var
:
~
str
=
~
"meh"
;
fail
!
(
fmt!
(
"%s"
,
str_var
));
}
src/test/run-fail/for-each-loop-fail.rs
浏览文件 @
1be40be6
...
...
@@ -9,5 +9,5 @@
// except according to those terms.
// error-pattern:moop
extern
mod
std
;
extern
mod
extra
;
fn
main
()
{
for
uint
::
range
(
0u
,
10u
)
|
_
i
|
{
fail
!
(
"moop"
);
}
}
src/test/run-fail/issue-2156.rs
浏览文件 @
1be40be6
...
...
@@ -10,8 +10,8 @@
// error-pattern:explicit failure
// Don't double free the string
extern
mod
std
;
use
core
::
io
::
ReaderUtil
;
extern
mod
extra
;
use
std
::
io
::
ReaderUtil
;
fn
main
()
{
do
io
::
with_str_reader
(
~
""
)
|
rdr
|
{
...
...
src/test/run-fail/issue-2444.rs
浏览文件 @
1be40be6
...
...
@@ -10,8 +10,8 @@
// error-pattern:explicit failure
extern
mod
std
;
use
std
::
arc
;
extern
mod
extra
;
use
extra
::
arc
;
enum
e
<
T
>
{
e
(
arc
::
ARC
<
T
>
)
}
...
...
src/test/run-fail/linked-failure.rs
浏览文件 @
1be40be6
...
...
@@ -11,7 +11,7 @@
// error-pattern:1 == 2
extern
mod
std
;
extern
mod
extra
;
fn
child
()
{
assert
!
((
1
==
2
));
}
...
...
src/test/run-fail/morestack2.rs
浏览文件 @
1be40be6
...
...
@@ -15,7 +15,7 @@
// See the hack in upcall_call_shim_on_c_stack where it messes
// with the stack limit.
extern
mod
std
;
extern
mod
extra
;
mod
rustrt
{
pub
extern
{
...
...
src/test/run-fail/morestack3.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-fail/morestack4.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-fail/run-unexported-tests.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-fail/spawnfail.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-fail/unwind-misc-1.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-fail/zip-different-lengths.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass-fulldeps/qquote.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/alt-join.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/alt-pattern-drop.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/attr-before-view-item.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/attr-before-view-item2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/auto-encode.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/bind-by-move.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/binops.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/bitv-perf-test.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/block-arg-call-as.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/block-vec-map_zip.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/borrowck-mut-uniq.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/c-stack-returning-int64.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/capture_nil.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/child-outlives-parent.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/class-cast-to-trait-cross-crate-2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/class-impl-parameterized-trait.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/class-impl-very-parameterized-trait.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/class-implements-multiple-traits.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/class-trait-bounded-param.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/clone-with-exterior.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/coherence-impl-in-fn.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/comm.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/core-export-f64-sqrt.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/core-run-destroy.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/deriving-meta-multiple.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/deriving-meta.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/drop-trait-generic.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/duplicate-use.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/explicit-self-generic.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/expr-repeat-vstore.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/extern-mod-syntax.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/float-nan.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/fn-bare-size.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/foreign-call-no-runtime.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/foreign-fn-linkname.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/foreign2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/getopts_ref.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/hashmap-memory.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/import-glob-crate.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/import-in-block.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/infinite-loops.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/intrinsics-integer.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-1696.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2101.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2214.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2383.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2611.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2631-b.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2718.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2804-2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2804.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2904.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-2989.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3026.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3176.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3424.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3556.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3559.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3563-3.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3574.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3609.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-3656.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-4016.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-4036.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-4092.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-4241.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/issue-4541.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/item-attributes.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/ivec-tag.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/log-knows-the-names-of-variants-in-std.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/lots-a-fail.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/mlist-cycle.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/mod-view-items.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/monomorphized-callees-with-ty-params-3314.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/morestack5.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/morestack6.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/move-3-unique.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/move-3.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/move-4-unique.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/move-4.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/mutable-alias-vec.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/new-import-syntax.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/new-style-constants.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/new-style-fixed-length-vec.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/newtype-struct-with-dtor.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/non-boolean-pure-fns.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/nullable-pointer-iotareduction.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/overload-index-operator.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-bank-proto.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-detect-term.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-peek.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-pingpong-bounded.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-pingpong-proto.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-presentation-examples.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-select.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/pipe-sleep.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/placement-new-arena.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/reflect-visit-data.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/regions-infer-borrow-scope-addr-of.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/ret-break-cont-in-block.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/rt-sched-1.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/send-iloop.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/send-resource.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/send-type-inference.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/sendfn-spawn-with-fn-arg.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/shape_intrinsic_tag_then_rec.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/spawn-types.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/spawn.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/stat.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/str-append.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/str-multiline.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/string-self-append.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/swap-1.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/swap-2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/swap-overlapping.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/syntax-extension-fmt.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-0.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-10.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-11.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-12.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-13.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-15.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-17.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-3.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-5.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-6.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-7.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-9.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-comm-chan-nil.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-killjoin-rsrc.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-life-0.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/task-spawn-move-and-copy.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/terminate-in-initializer.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/test-ignore-cfg.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/test-runner-hides-main.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/threads.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-num.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-num0.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-num1.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-num2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-num3.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-num5.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-overloading-simple.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-inheritance-overloading.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/trait-to-str.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/type-sizes.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unify-return-ty.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unique-kinds.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unique-send-2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unique-send.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unique-swap.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unwind-box.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unwind-resource.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unwind-resource2.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/unwind-unique.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/use-crate-name-alias.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/use.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/utf8_chars.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/vec-matching-autoslice.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/vec-matching-legal-tail-element-borrow.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/vec-matching.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/vec-self-append.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/vec-tail-matching.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
src/test/run-pass/weird-exprs.rs
浏览文件 @
1be40be6
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录