Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
c9f2c2de
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,发现更多精彩内容 >>
提交
c9f2c2de
编写于
9月 14, 2018
作者:
F
Felix S. Klock II
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow various lints as part of ui-ifying `src/test/run-pass` suite.
上级
d28c5baf
变更
187
展开全部
显示空白变更内容
内联
并排
Showing
187 changed file
with
296 addition
and
0 deletion
+296
-0
src/test/run-pass/abort-on-c-abi.rs
src/test/run-pass/abort-on-c-abi.rs
+1
-0
src/test/run-pass/alias-uninit-value.rs
src/test/run-pass/alias-uninit-value.rs
+3
-0
src/test/run-pass/align-with-extern-c-fn.rs
src/test/run-pass/align-with-extern-c-fn.rs
+3
-0
src/test/run-pass/alignment-gep-tup-like-1.rs
src/test/run-pass/alignment-gep-tup-like-1.rs
+3
-0
src/test/run-pass/alloca-from-derived-tydesc.rs
src/test/run-pass/alloca-from-derived-tydesc.rs
+3
-0
src/test/run-pass/allocator-alloc-one.rs
src/test/run-pass/allocator-alloc-one.rs
+2
-0
src/test/run-pass/atomic-access-bool.rs
src/test/run-pass/atomic-access-bool.rs
+1
-0
src/test/run-pass/atomic-compare_exchange.rs
src/test/run-pass/atomic-compare_exchange.rs
+2
-0
src/test/run-pass/atomic-print.rs
src/test/run-pass/atomic-print.rs
+2
-0
src/test/run-pass/attr-before-view-item.rs
src/test/run-pass/attr-before-view-item.rs
+2
-0
src/test/run-pass/attr-before-view-item2.rs
src/test/run-pass/attr-before-view-item2.rs
+2
-0
src/test/run-pass/attr-mix-new.rs
src/test/run-pass/attr-mix-new.rs
+4
-0
src/test/run-pass/attr-on-generic-formals.rs
src/test/run-pass/attr-on-generic-formals.rs
+2
-0
src/test/run-pass/augmented-assignments.rs
src/test/run-pass/augmented-assignments.rs
+1
-0
src/test/run-pass/auto-instantiate.rs
src/test/run-pass/auto-instantiate.rs
+1
-0
src/test/run-pass/auto-is-contextual.rs
src/test/run-pass/auto-is-contextual.rs
+2
-0
src/test/run-pass/binops.rs
src/test/run-pass/binops.rs
+1
-0
src/test/run-pass/blind-item-local-shadow.rs
src/test/run-pass/blind-item-local-shadow.rs
+2
-0
src/test/run-pass/block-arg-call-as.rs
src/test/run-pass/block-arg-call-as.rs
+1
-0
src/test/run-pass/block-expr-precedence.rs
src/test/run-pass/block-expr-precedence.rs
+2
-0
src/test/run-pass/builtin-clone-unwind.rs
src/test/run-pass/builtin-clone-unwind.rs
+2
-0
src/test/run-pass/builtin-superkinds-in-metadata.rs
src/test/run-pass/builtin-superkinds-in-metadata.rs
+1
-0
src/test/run-pass/builtin-superkinds-phantom-typaram.rs
src/test/run-pass/builtin-superkinds-phantom-typaram.rs
+1
-0
src/test/run-pass/cast.rs
src/test/run-pass/cast.rs
+2
-0
src/test/run-pass/cell-does-not-clone.rs
src/test/run-pass/cell-does-not-clone.rs
+1
-0
src/test/run-pass/check-static-recursion-foreign.rs
src/test/run-pass/check-static-recursion-foreign.rs
+1
-0
src/test/run-pass/cleanup-arm-conditional.rs
src/test/run-pass/cleanup-arm-conditional.rs
+2
-0
src/test/run-pass/cleanup-rvalue-for-scope.rs
src/test/run-pass/cleanup-rvalue-for-scope.rs
+3
-0
src/test/run-pass/cleanup-rvalue-scopes.rs
src/test/run-pass/cleanup-rvalue-scopes.rs
+2
-0
src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs
...t/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs
+3
-0
src/test/run-pass/clone-with-exterior.rs
src/test/run-pass/clone-with-exterior.rs
+1
-0
src/test/run-pass/close-over-big-then-small-data.rs
src/test/run-pass/close-over-big-then-small-data.rs
+1
-0
src/test/run-pass/collections-const-new.rs
src/test/run-pass/collections-const-new.rs
+1
-0
src/test/run-pass/command-before-exec.rs
src/test/run-pass/command-before-exec.rs
+1
-0
src/test/run-pass/command-exec.rs
src/test/run-pass/command-exec.rs
+1
-0
src/test/run-pass/complex.rs
src/test/run-pass/complex.rs
+4
-0
src/test/run-pass/core-run-destroy.rs
src/test/run-pass/core-run-destroy.rs
+4
-0
src/test/run-pass/crt-static-off-works.rs
src/test/run-pass/crt-static-off-works.rs
+1
-0
src/test/run-pass/crt-static-on-works.rs
src/test/run-pass/crt-static-on-works.rs
+1
-0
src/test/run-pass/default-method-simple.rs
src/test/run-pass/default-method-simple.rs
+1
-0
src/test/run-pass/defaults-well-formedness.rs
src/test/run-pass/defaults-well-formedness.rs
+1
-0
src/test/run-pass/discriminant_value.rs
src/test/run-pass/discriminant_value.rs
+1
-0
src/test/run-pass/diverging-fallback-control-flow.rs
src/test/run-pass/diverging-fallback-control-flow.rs
+4
-0
src/test/run-pass/diverging-fallback-method-chain.rs
src/test/run-pass/diverging-fallback-method-chain.rs
+1
-0
src/test/run-pass/double-ref.rs
src/test/run-pass/double-ref.rs
+1
-0
src/test/run-pass/early-ret-binop-add.rs
src/test/run-pass/early-ret-binop-add.rs
+2
-0
src/test/run-pass/early-vtbl-resolution.rs
src/test/run-pass/early-vtbl-resolution.rs
+2
-0
src/test/run-pass/edition-keywords-2015-2015.rs
src/test/run-pass/edition-keywords-2015-2015.rs
+3
-0
src/test/run-pass/edition-keywords-2015-2018.rs
src/test/run-pass/edition-keywords-2015-2018.rs
+3
-0
src/test/run-pass/edition-keywords-2018-2015.rs
src/test/run-pass/edition-keywords-2018-2015.rs
+1
-0
src/test/run-pass/edition-keywords-2018-2018.rs
src/test/run-pass/edition-keywords-2018-2018.rs
+1
-0
src/test/run-pass/empty-allocation-rvalue-non-null.rs
src/test/run-pass/empty-allocation-rvalue-non-null.rs
+1
-0
src/test/run-pass/env-home-dir.rs
src/test/run-pass/env-home-dir.rs
+2
-0
src/test/run-pass/epoch-gate-feature.rs
src/test/run-pass/epoch-gate-feature.rs
+2
-0
src/test/run-pass/estr-uniq.rs
src/test/run-pass/estr-uniq.rs
+2
-0
src/test/run-pass/existential_type.rs
src/test/run-pass/existential_type.rs
+3
-0
src/test/run-pass/explicit-i-suffix.rs
src/test/run-pass/explicit-i-suffix.rs
+1
-0
src/test/run-pass/export-glob-imports-target.rs
src/test/run-pass/export-glob-imports-target.rs
+2
-0
src/test/run-pass/expr-block.rs
src/test/run-pass/expr-block.rs
+1
-0
src/test/run-pass/expr-empty-ret.rs
src/test/run-pass/expr-empty-ret.rs
+1
-0
src/test/run-pass/exterior.rs
src/test/run-pass/exterior.rs
+1
-0
src/test/run-pass/fixup-deref-mut.rs
src/test/run-pass/fixup-deref-mut.rs
+1
-0
src/test/run-pass/format-hygiene.rs
src/test/run-pass/format-hygiene.rs
+1
-0
src/test/run-pass/fsu-moves-and-copies.rs
src/test/run-pass/fsu-moves-and-copies.rs
+2
-0
src/test/run-pass/guards-not-exhaustive.rs
src/test/run-pass/guards-not-exhaustive.rs
+1
-0
src/test/run-pass/guards.rs
src/test/run-pass/guards.rs
+1
-0
src/test/run-pass/hashmap-memory.rs
src/test/run-pass/hashmap-memory.rs
+3
-0
src/test/run-pass/html-literals.rs
src/test/run-pass/html-literals.rs
+1
-0
src/test/run-pass/if-ret.rs
src/test/run-pass/if-ret.rs
+1
-0
src/test/run-pass/ignore-all-the-things.rs
src/test/run-pass/ignore-all-the-things.rs
+3
-0
src/test/run-pass/infer-fn-tail-expr.rs
src/test/run-pass/infer-fn-tail-expr.rs
+1
-0
src/test/run-pass/init-large-type.rs
src/test/run-pass/init-large-type.rs
+1
-0
src/test/run-pass/init-res-into-things.rs
src/test/run-pass/init-res-into-things.rs
+2
-0
src/test/run-pass/instantiable.rs
src/test/run-pass/instantiable.rs
+2
-0
src/test/run-pass/invalid_const_promotion.rs
src/test/run-pass/invalid_const_promotion.rs
+1
-0
src/test/run-pass/issue-53728.rs
src/test/run-pass/issue-53728.rs
+1
-0
src/test/run-pass/item-attributes.rs
src/test/run-pass/item-attributes.rs
+5
-0
src/test/run-pass/item-name-overload.rs
src/test/run-pass/item-name-overload.rs
+1
-0
src/test/run-pass/keyword-changes-2012-07-31.rs
src/test/run-pass/keyword-changes-2012-07-31.rs
+1
-0
src/test/run-pass/kindck-implicit-close-over-mut-var.rs
src/test/run-pass/kindck-implicit-close-over-mut-var.rs
+2
-0
src/test/run-pass/lambda-infer-unresolved.rs
src/test/run-pass/lambda-infer-unresolved.rs
+1
-0
src/test/run-pass/large-records.rs
src/test/run-pass/large-records.rs
+1
-0
src/test/run-pass/last-use-in-block.rs
src/test/run-pass/last-use-in-block.rs
+2
-0
src/test/run-pass/last-use-in-cap-clause.rs
src/test/run-pass/last-use-in-cap-clause.rs
+1
-0
src/test/run-pass/last-use-is-capture.rs
src/test/run-pass/last-use-is-capture.rs
+1
-0
src/test/run-pass/lazy-init.rs
src/test/run-pass/lazy-init.rs
+1
-0
src/test/run-pass/link-section.rs
src/test/run-pass/link-section.rs
+1
-0
src/test/run-pass/lint-non-camel-case-types-non-uppercase-statics-unicode.rs
...int-non-camel-case-types-non-uppercase-statics-unicode.rs
+1
-0
src/test/run-pass/lint-non-camel-case-with-trailing-underscores.rs
...run-pass/lint-non-camel-case-with-trailing-underscores.rs
+1
-0
src/test/run-pass/list.rs
src/test/run-pass/list.rs
+1
-0
src/test/run-pass/liveness-assign-imm-local-after-ret.rs
src/test/run-pass/liveness-assign-imm-local-after-ret.rs
+1
-0
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
-0
src/test/run-pass/log-knows-the-names-of-variants.rs
src/test/run-pass/log-knows-the-names-of-variants.rs
+2
-0
src/test/run-pass/max-min-classes.rs
src/test/run-pass/max-min-classes.rs
+1
-0
src/test/run-pass/mid-path-type-params.rs
src/test/run-pass/mid-path-type-params.rs
+1
-0
src/test/run-pass/monad.rs
src/test/run-pass/monad.rs
+1
-0
src/test/run-pass/monomorphize-abi-alignment.rs
src/test/run-pass/monomorphize-abi-alignment.rs
+1
-0
src/test/run-pass/multiple-reprs.rs
src/test/run-pass/multiple-reprs.rs
+1
-0
src/test/run-pass/mutual-recursion-group.rs
src/test/run-pass/mutual-recursion-group.rs
+2
-0
src/test/run-pass/nested-class.rs
src/test/run-pass/nested-class.rs
+1
-0
src/test/run-pass/never-result.rs
src/test/run-pass/never-result.rs
+2
-0
src/test/run-pass/newlambdas-ret-infer.rs
src/test/run-pass/newlambdas-ret-infer.rs
+1
-0
src/test/run-pass/newlambdas-ret-infer2.rs
src/test/run-pass/newlambdas-ret-infer2.rs
+1
-0
src/test/run-pass/newtype-polymorphic.rs
src/test/run-pass/newtype-polymorphic.rs
+1
-0
src/test/run-pass/newtype.rs
src/test/run-pass/newtype.rs
+1
-0
src/test/run-pass/nil-decl-in-foreign.rs
src/test/run-pass/nil-decl-in-foreign.rs
+2
-0
src/test/run-pass/no-core-1.rs
src/test/run-pass/no-core-1.rs
+1
-0
src/test/run-pass/nullable-pointer-size.rs
src/test/run-pass/nullable-pointer-size.rs
+1
-0
src/test/run-pass/operator-overloading.rs
src/test/run-pass/operator-overloading.rs
+1
-0
src/test/run-pass/option-unwrap.rs
src/test/run-pass/option-unwrap.rs
+1
-0
src/test/run-pass/out-of-stack.rs
src/test/run-pass/out-of-stack.rs
+2
-0
src/test/run-pass/output-slot-variants.rs
src/test/run-pass/output-slot-variants.rs
+3
-0
src/test/run-pass/over-constrained-vregs.rs
src/test/run-pass/over-constrained-vregs.rs
+1
-0
src/test/run-pass/parse-panic.rs
src/test/run-pass/parse-panic.rs
+1
-0
src/test/run-pass/paths-containing-nul.rs
src/test/run-pass/paths-containing-nul.rs
+1
-0
src/test/run-pass/project-cache-issue-37154.rs
src/test/run-pass/project-cache-issue-37154.rs
+1
-0
src/test/run-pass/project-defer-unification.rs
src/test/run-pass/project-defer-unification.rs
+3
-0
src/test/run-pass/ptr-coercion.rs
src/test/run-pass/ptr-coercion.rs
+1
-0
src/test/run-pass/pure-sum.rs
src/test/run-pass/pure-sum.rs
+1
-0
src/test/run-pass/range-type-infer.rs
src/test/run-pass/range-type-infer.rs
+1
-0
src/test/run-pass/range.rs
src/test/run-pass/range.rs
+3
-0
src/test/run-pass/range_inclusive_gate.rs
src/test/run-pass/range_inclusive_gate.rs
+1
-0
src/test/run-pass/rcvr-borrowed-to-region.rs
src/test/run-pass/rcvr-borrowed-to-region.rs
+1
-0
src/test/run-pass/readalias.rs
src/test/run-pass/readalias.rs
+1
-0
src/test/run-pass/resolve-issue-2428.rs
src/test/run-pass/resolve-issue-2428.rs
+2
-0
src/test/run-pass/resource-assign-is-not-copy.rs
src/test/run-pass/resource-assign-is-not-copy.rs
+1
-0
src/test/run-pass/resource-destruct.rs
src/test/run-pass/resource-destruct.rs
+1
-0
src/test/run-pass/ret-none.rs
src/test/run-pass/ret-none.rs
+2
-0
src/test/run-pass/segfault-no-out-of-stack.rs
src/test/run-pass/segfault-no-out-of-stack.rs
+1
-0
src/test/run-pass/semistatement-in-lambda.rs
src/test/run-pass/semistatement-in-lambda.rs
+1
-0
src/test/run-pass/shadow.rs
src/test/run-pass/shadow.rs
+2
-0
src/test/run-pass/shadowed-use-visibility.rs
src/test/run-pass/shadowed-use-visibility.rs
+1
-0
src/test/run-pass/sigpipe-should-be-ignored.rs
src/test/run-pass/sigpipe-should-be-ignored.rs
+1
-0
src/test/run-pass/simple-infer.rs
src/test/run-pass/simple-infer.rs
+1
-0
src/test/run-pass/size-and-align.rs
src/test/run-pass/size-and-align.rs
+1
-0
src/test/run-pass/sized-borrowed-pointer.rs
src/test/run-pass/sized-borrowed-pointer.rs
+1
-0
src/test/run-pass/sized-owned-pointer.rs
src/test/run-pass/sized-owned-pointer.rs
+1
-0
src/test/run-pass/snake-case-no-lowercase-equivalent.rs
src/test/run-pass/snake-case-no-lowercase-equivalent.rs
+1
-0
src/test/run-pass/sse2.rs
src/test/run-pass/sse2.rs
+1
-0
src/test/run-pass/structured-compare.rs
src/test/run-pass/structured-compare.rs
+1
-0
src/test/run-pass/super-fast-paren-parsing.rs
src/test/run-pass/super-fast-paren-parsing.rs
+2
-0
src/test/run-pass/super.rs
src/test/run-pass/super.rs
+1
-0
src/test/run-pass/swap-overlapping.rs
src/test/run-pass/swap-overlapping.rs
+1
-0
src/test/run-pass/trivial-message.rs
src/test/run-pass/trivial-message.rs
+1
-0
src/test/run-pass/try-block.rs
src/test/run-pass/try-block.rs
+2
-0
src/test/run-pass/try-is-identifier-edition2015.rs
src/test/run-pass/try-is-identifier-edition2015.rs
+1
-0
src/test/run-pass/try-operator-hygiene.rs
src/test/run-pass/try-operator-hygiene.rs
+2
-0
src/test/run-pass/try-operator.rs
src/test/run-pass/try-operator.rs
+1
-0
src/test/run-pass/try-wait.rs
src/test/run-pass/try-wait.rs
+1
-0
src/test/run-pass/tup.rs
src/test/run-pass/tup.rs
+1
-0
src/test/run-pass/tydesc-name.rs
src/test/run-pass/tydesc-name.rs
+1
-0
src/test/run-pass/type-ascription.rs
src/test/run-pass/type-ascription.rs
+2
-0
src/test/run-pass/type-in-nested-module.rs
src/test/run-pass/type-in-nested-module.rs
+2
-0
src/test/run-pass/type-infer-generalize-ty-var.rs
src/test/run-pass/type-infer-generalize-ty-var.rs
+4
-0
src/test/run-pass/type-param-constraints.rs
src/test/run-pass/type-param-constraints.rs
+2
-0
src/test/run-pass/type-param.rs
src/test/run-pass/type-param.rs
+2
-0
src/test/run-pass/type-params-in-for-each.rs
src/test/run-pass/type-params-in-for-each.rs
+1
-0
src/test/run-pass/type-ptr.rs
src/test/run-pass/type-ptr.rs
+1
-0
src/test/run-pass/type-sizes.rs
src/test/run-pass/type-sizes.rs
+2
-0
src/test/run-pass/typeck_type_placeholder_1.rs
src/test/run-pass/typeck_type_placeholder_1.rs
+1
-0
src/test/run-pass/typeclasses-eq-example-static.rs
src/test/run-pass/typeclasses-eq-example-static.rs
+3
-0
src/test/run-pass/typeclasses-eq-example.rs
src/test/run-pass/typeclasses-eq-example.rs
+3
-0
src/test/run-pass/typeid-intrinsic.rs
src/test/run-pass/typeid-intrinsic.rs
+1
-0
src/test/run-pass/typestate-cfg-nesting.rs
src/test/run-pass/typestate-cfg-nesting.rs
+3
-0
src/test/run-pass/underscore-lifetimes.rs
src/test/run-pass/underscore-lifetimes.rs
+1
-0
src/test/run-pass/unit.rs
src/test/run-pass/unit.rs
+2
-0
src/test/run-pass/unreachable-code-1.rs
src/test/run-pass/unreachable-code-1.rs
+2
-0
src/test/run-pass/unreachable-code.rs
src/test/run-pass/unreachable-code.rs
+2
-0
src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs
src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs
+1
-0
src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs
src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs
+1
-0
src/test/run-pass/unsized.rs
src/test/run-pass/unsized.rs
+2
-0
src/test/run-pass/unsized2.rs
src/test/run-pass/unsized2.rs
+4
-0
src/test/run-pass/unwind-resource.rs
src/test/run-pass/unwind-resource.rs
+1
-0
src/test/run-pass/use-keyword-2.rs
src/test/run-pass/use-keyword-2.rs
+1
-0
src/test/run-pass/use-mod.rs
src/test/run-pass/use-mod.rs
+1
-0
src/test/run-pass/use.rs
src/test/run-pass/use.rs
+1
-0
src/test/run-pass/utf8_idents.rs
src/test/run-pass/utf8_idents.rs
+1
-0
src/test/run-pass/variant-attributes.rs
src/test/run-pass/variant-attributes.rs
+3
-0
src/test/run-pass/volatile-fat-ptr.rs
src/test/run-pass/volatile-fat-ptr.rs
+1
-0
src/test/run-pass/warn-ctypes-inhibit.rs
src/test/run-pass/warn-ctypes-inhibit.rs
+1
-0
src/test/run-pass/weird-exprs.rs
src/test/run-pass/weird-exprs.rs
+4
-0
src/test/run-pass/wf-bound-region-in-object-type.rs
src/test/run-pass/wf-bound-region-in-object-type.rs
+2
-0
src/test/run-pass/writealias.rs
src/test/run-pass/writealias.rs
+1
-0
src/test/run-pass/wrong-hashset-issue-42918.rs
src/test/run-pass/wrong-hashset-issue-42918.rs
+1
-0
src/test/run-pass/x86stdcall2.rs
src/test/run-pass/x86stdcall2.rs
+1
-0
src/test/run-pass/yield.rs
src/test/run-pass/yield.rs
+2
-0
src/test/run-pass/yield1.rs
src/test/run-pass/yield1.rs
+2
-0
未找到文件。
src/test/run-pass/abort-on-c-abi.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
// we never unwind through them.
...
...
src/test/run-pass/alias-uninit-value.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// Regression test for issue #374
...
...
src/test/run-pass/align-with-extern-c-fn.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
#![allow(unused_variables)]
// #45662
#![feature(repr_align)]
...
...
src/test/run-pass/alignment-gep-tup-like-1.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![feature(box_syntax)]
struct
pair
<
A
,
B
>
{
...
...
src/test/run-pass/alloca-from-derived-tydesc.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// pretty-expanded FIXME #23616
...
...
src/test/run-pass/allocator-alloc-one.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
#![feature(allocator_api,
nonnull)]
use
std
::
alloc
::{
Alloc
,
Global
,
Layout
,
handle_alloc_error
};
...
...
src/test/run-pass/atomic-access-bool.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
#![feature(atomic_access)]
use
std
::
sync
::
atomic
::{
AtomicBool
,
ATOMIC_BOOL_INIT
};
use
std
::
sync
::
atomic
::
Ordering
::
*
;
...
...
src/test/run-pass/atomic-compare_exchange.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
#![feature(extended_compare_and_swap)]
use
std
::
sync
::
atomic
::{
AtomicIsize
,
ATOMIC_ISIZE_INIT
};
use
std
::
sync
::
atomic
::
Ordering
::
*
;
...
...
src/test/run-pass/atomic-print.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
#![allow(deprecated)]
// ignore-cloudabi no process support
// ignore-emscripten no threads support
...
...
src/test/run-pass/attr-before-view-item.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_attributes)]
// pretty-expanded FIXME #23616
#![feature(custom_attribute,
test)]
...
...
src/test/run-pass/attr-before-view-item2.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_attributes)]
// pretty-expanded FIXME #23616
#![feature(custom_attribute,
test)]
...
...
src/test/run-pass/attr-mix-new.rs
浏览文件 @
c9f2c2de
...
...
@@ -7,6 +7,10 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_attributes)]
#![allow(unknown_lints)]
// pretty-expanded FIXME #23616
#![allow(unused_attribute)]
...
...
src/test/run-pass/attr-on-generic-formals.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_attributes)]
// This test ensures we can attach attributes to the formals in all
// places where generic parameter lists occur, assuming appropriate
// feature gates are enabled.
...
...
src/test/run-pass/augmented-assignments.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_imports)]
#![deny(unused_assignments)]
use
std
::
mem
;
...
...
src/test/run-pass/auto-instantiate.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#[derive(Debug)]
struct
Pair
<
T
,
U
>
{
a
:
T
,
b
:
U
}
struct
Triple
{
x
:
isize
,
y
:
isize
,
z
:
isize
}
...
...
src/test/run-pass/auto-is-contextual.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(path_statements)]
#![allow(dead_code)]
macro_rules!
auto
{
()
=>
(
struct
S
;)
}
...
...
src/test/run-pass/binops.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
// Binop corner cases
fn
test_nil
()
{
...
...
src/test/run-pass/blind-item-local-shadow.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#![allow(unused_imports)]
mod
bar
{
pub
fn
foo
()
->
bool
{
true
}
}
...
...
src/test/run-pass/block-arg-call-as.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_snake_case)]
fn
asBlock
<
F
>
(
f
:
F
)
->
usize
where
F
:
FnOnce
()
->
usize
{
return
f
();
...
...
src/test/run-pass/block-expr-precedence.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
#![allow(unused_parens)]
// This test has some extra semis in it that the pretty-printer won't
// reproduce so we don't want to automatically reformat it
...
...
src/test/run-pass/builtin-clone-unwind.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_variables)]
#![allow(unused_imports)]
// ignore-wasm32-bare compiled with panic=abort by default
// Test that builtin implementations of `Clone` cleanup everything
...
...
src/test/run-pass/builtin-superkinds-in-metadata.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_imports)]
// aux-build:trait_superkinds_in_metadata.rs
...
...
src/test/run-pass/builtin-superkinds-phantom-typaram.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// 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/cast.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_assignments)]
#![allow(unused_variables)]
pub
fn
main
()
{
let
i
:
isize
=
'Q'
as
isize
;
...
...
src/test/run-pass/cell-does-not-clone.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
use
std
::
cell
::
Cell
;
...
...
src/test/run-pass/check-static-recursion-foreign.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// Static recursion check shouldn't fail when given a foreign item (#18279)
// aux-build:check_static_recursion_foreign_helper.rs
...
...
src/test/run-pass/cleanup-arm-conditional.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
#![allow(unused_imports)]
// Test that cleanup scope for temporaries created in a match
// arm is confined to the match arm itself.
...
...
src/test/run-pass/cleanup-rvalue-for-scope.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_snake_case)]
#![allow(dead_code)]
#![allow(unused_variables)]
// Test that the lifetime of rvalues in for loops is extended
// to the for loop itself.
...
...
src/test/run-pass/cleanup-rvalue-scopes.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_snake_case)]
#![allow(unused_variables)]
// Test that destructors for rvalue temporaries run either at end of
// statement or end of block, as appropriate given the temporary
// lifetime rules.
...
...
src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
#![allow(dead_code)]
#![allow(unused_variables)]
// Test cleanup of rvalue temporary that occurs while `box` construction
// is in progress. This scenario revealed a rather terrible bug. The
// ingredients are:
...
...
src/test/run-pass/clone-with-exterior.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
// ignore-emscripten no threads support
#![feature(box_syntax)]
...
...
src/test/run-pass/close-over-big-then-small-data.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// 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/collections-const-new.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// Test several functions can be used for constants
// 1. Vec::new()
// 2. String::new()
...
...
src/test/run-pass/command-before-exec.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
// ignore-windows - this is a unix-specific test
// ignore-cloudabi no processes
// ignore-emscripten no processes
...
...
src/test/run-pass/command-exec.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
// ignore-windows - this is a unix-specific test
// ignore-pretty issue #37199
// ignore-cloudabi no processes
...
...
src/test/run-pass/complex.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unconditional_recursion)]
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![allow(unused_mut)]
...
...
src/test/run-pass/core-run-destroy.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
#![allow(stable_features)]
#![allow(deprecated)]
#![allow(unused_imports)]
// compile-flags:--test
// ignore-cloudabi no processes
// ignore-emscripten no processes
...
...
src/test/run-pass/crt-static-off-works.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
// compile-flags:-C target-feature=-crt-static -Z unstable-options
// ignore-musl - requires changing the linker which is hard
...
...
src/test/run-pass/crt-static-on-works.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
// compile-flags:-C target-feature=+crt-static -Z unstable-options
#![feature(cfg_target_feature)]
...
...
src/test/run-pass/default-method-simple.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
trait
Foo
{
fn
f
(
&
self
)
{
...
...
src/test/run-pass/defaults-well-formedness.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
trait
Trait
<
T
>
{}
struct
Foo
<
U
,
V
=
i32
>
(
U
,
V
)
where
U
:
Trait
<
V
>
;
...
...
src/test/run-pass/discriminant_value.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(stable_features)]
#![feature(core,
core_intrinsics)]
extern
crate
core
;
...
...
src/test/run-pass/diverging-fallback-control-flow.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![allow(unreachable_code)]
// Test various cases where we permit an unconstrained variable
// to fallback based on control-flow.
//
...
...
src/test/run-pass/diverging-fallback-method-chain.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_imports)]
// Test a regression found when building compiler. The `produce()`
// error type `T` winds up getting unified with result of `x.parse()`;
// the type of the closure given to `unwrap_or_else` needs to be
...
...
src/test/run-pass/double-ref.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// pretty-expanded FIXME #23616
fn
check_expr
()
{
...
...
src/test/run-pass/early-ret-binop-add.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#![allow(unreachable_code)]
// pretty-expanded FIXME #23616
use
std
::
ops
::
Add
;
...
...
src/test/run-pass/early-vtbl-resolution.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// pretty-expanded FIXME #23616
trait
thing
<
A
>
{
...
...
src/test/run-pass/edition-keywords-2015-2015.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_mut)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
// edition:2015
// aux-build:edition-kw-macro-2015.rs
...
...
src/test/run-pass/edition-keywords-2015-2018.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_mut)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
// edition:2015
// aux-build:edition-kw-macro-2018.rs
...
...
src/test/run-pass/edition-keywords-2018-2015.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_assignments)]
// edition:2018
// aux-build:edition-kw-macro-2015.rs
...
...
src/test/run-pass/edition-keywords-2018-2018.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_assignments)]
// edition:2018
// aux-build:edition-kw-macro-2018.rs
...
...
src/test/run-pass/empty-allocation-rvalue-non-null.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_variables)]
// pretty-expanded FIXME #23616
pub
fn
main
()
{
...
...
src/test/run-pass/env-home-dir.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_variables)]
#![allow(deprecated)]
// ignore-cloudabi no environment variables present
// ignore-emscripten env vars don't work?
...
...
src/test/run-pass/epoch-gate-feature.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#![allow(unused_variables)]
// Checks if the correct registers are being used to pass arguments
// when the sysv64 ABI is specified.
...
...
src/test/run-pass/estr-uniq.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_assignments)]
#![allow(unknown_lints)]
#![allow(dead_assignment)]
...
...
src/test/run-pass/existential_type.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![feature(existential_type)]
fn
main
()
{
...
...
src/test/run-pass/explicit-i-suffix.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
// pretty-expanded FIXME #23616
pub
fn
main
()
{
...
...
src/test/run-pass/export-glob-imports-target.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_upper_case_globals)]
#![allow(dead_code)]
// Test that a glob-export functions as an import
// when referenced within its own local scope.
...
...
src/test/run-pass/expr-block.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
...
...
src/test/run-pass/expr-empty-ret.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// Issue #521
// pretty-expanded FIXME #23616
...
...
src/test/run-pass/exterior.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
use
std
::
cell
::
Cell
;
...
...
src/test/run-pass/fixup-deref-mut.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// pretty-expanded FIXME #23616
use
std
::
ops
::{
Deref
,
DerefMut
};
...
...
src/test/run-pass/format-hygiene.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_upper_case_globals)]
pub
const
arg0
:
u8
=
1
;
pub
fn
main
()
{
...
...
src/test/run-pass/fsu-moves-and-copies.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(stable_features)]
// Issue 4691: Ensure that functional-struct-updates operates
// correctly and moves rather than copy when appropriate.
...
...
src/test/run-pass/guards-not-exhaustive.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_snake_case)]
#[derive(Copy,
Clone)]
enum
Q
{
R
(
Option
<
usize
>
)
}
...
...
src/test/run-pass/guards.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_shorthand_field_patterns)]
#[derive(Copy,
Clone)]
struct
Pair
{
x
:
isize
,
y
:
isize
}
...
...
src/test/run-pass/hashmap-memory.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![allow(unused_mut)]
// ignore-emscripten No support for threads
/**
...
...
src/test/run-pass/html-literals.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
// A test of the macro system. Can we do HTML literals?
/*
...
...
src/test/run-pass/if-ret.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_parens)]
// pretty-expanded FIXME #23616
fn
foo
()
{
if
(
return
)
{
}
}
...
...
src/test/run-pass/ignore-all-the-things.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_shorthand_field_patterns)]
#![allow(dead_code)]
#![allow(unused_variables)]
// pretty-expanded FIXME #23616
#![feature(slice_patterns)]
...
...
src/test/run-pass/infer-fn-tail-expr.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// issue #680
...
...
src/test/run-pass/init-large-type.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
// Makes sure that zero-initializing large types is reasonably fast,
// Doing it incorrectly causes massive slowdown in LLVM during
// optimisation.
...
...
src/test/run-pass/init-res-into-things.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![feature(box_syntax)]
use
std
::
cell
::
Cell
;
...
...
src/test/run-pass/instantiable.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// pretty-expanded FIXME #23616
use
std
::
ptr
;
...
...
src/test/run-pass/invalid_const_promotion.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_mut)]
// ignore-wasm32
// ignore-emscripten
...
...
src/test/run-pass/issue-53728.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#[repr(u16)]
enum
DeviceKind
{
Nil
=
0
,
...
...
src/test/run-pass/item-attributes.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(unused_attributes)]
#![allow(dead_code)]
#![allow(unknown_lints)]
// These are attributes of the implicit crate. Really this just needs to parse
// for completeness since .rs files linked from .rc files support this
// notation to specify their module's attributes
...
...
src/test/run-pass/item-name-overload.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
...
...
src/test/run-pass/keyword-changes-2012-07-31.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// return -> return
// mod -> module
// match -> match
...
...
src/test/run-pass/kindck-implicit-close-over-mut-var.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_must_use)]
#![allow(dead_code)]
use
std
::
thread
;
fn
user
(
_
i
:
isize
)
{}
...
...
src/test/run-pass/lambda-infer-unresolved.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_mut)]
// This should typecheck even though the type of e is not fully
// resolved when we finish typechecking the ||.
...
...
src/test/run-pass/large-records.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
...
...
src/test/run-pass/last-use-in-block.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
#![allow(unused_parens)]
// Issue #1818
...
...
src/test/run-pass/last-use-in-cap-clause.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// Make sure #1399 stays fixed
struct
A
{
a
:
Box
<
isize
>
}
...
...
src/test/run-pass/last-use-is-capture.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// Make sure #1399 stays fixed
#![feature(box_syntax)]
...
...
src/test/run-pass/lazy-init.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_mut)]
fn
foo
(
x
:
isize
)
{
println!
(
"{}"
,
x
);
}
...
...
src/test/run-pass/link-section.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_upper_case_globals)]
#[cfg(not(target_os
=
"macos"
))]
#[link_section=
".moretext"
]
fn
i_live_in_more_text
()
->
&
'static
str
{
...
...
src/test/run-pass/lint-non-camel-case-types-non-uppercase-statics-unicode.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
#![allow(dead_code)]
#![forbid(non_camel_case_types)]
...
...
src/test/run-pass/lint-non-camel-case-with-trailing-underscores.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// This is ok because we often use the trailing underscore to mean 'prime'
// pretty-expanded FIXME #23616
...
...
src/test/run-pass/list.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
// pretty-expanded FIXME #23616
#![feature(box_syntax)]
...
...
src/test/run-pass/liveness-assign-imm-local-after-ret.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unreachable_code)]
// pretty-expanded FIXME #23616
#![allow(dead_code)]
...
...
src/test/run-pass/log-knows-the-names-of-variants-in-std.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#[derive(Clone,
Debug)]
enum
foo
{
a
(
usize
),
...
...
src/test/run-pass/log-knows-the-names-of-variants.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#[derive(Debug)]
enum
foo
{
a
(
usize
),
...
...
src/test/run-pass/max-min-classes.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_snake_case)]
trait
Product
{
fn
product
(
&
self
)
->
isize
;
}
...
...
src/test/run-pass/mid-path-type-params.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
// pretty-expanded FIXME #23616
struct
S
<
T
>
{
...
...
src/test/run-pass/monad.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
...
...
src/test/run-pass/monomorphize-abi-alignment.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_upper_case_globals)]
/*!
* On x86_64-linux-gnu and possibly other platforms, structs get 8-byte "preferred" alignment,
* but their "ABI" alignment (i.e., what actually matters for data layout) is the largest alignment
...
...
src/test/run-pass/multiple-reprs.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(dead_code)]
use
std
::
mem
::{
size_of
,
align_of
};
use
std
::
os
::
raw
::
c_int
;
...
...
src/test/run-pass/mutual-recursion-group.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// pretty-expanded FIXME #23616
...
...
src/test/run-pass/nested-class.rs
浏览文件 @
c9f2c2de
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_camel_case_types)]
pub
fn
main
()
{
struct
b
{
...
...
src/test/run-pass/never-result.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/newlambdas-ret-infer.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/newlambdas-ret-infer2.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/newtype-polymorphic.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/newtype.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/nil-decl-in-foreign.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/no-core-1.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/nullable-pointer-size.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/operator-overloading.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/option-unwrap.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/out-of-stack.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/output-slot-variants.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/over-constrained-vregs.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/parse-panic.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/paths-containing-nul.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/project-cache-issue-37154.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/project-defer-unification.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/ptr-coercion.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/pure-sum.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/range-type-infer.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/range.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/range_inclusive_gate.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/rcvr-borrowed-to-region.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/readalias.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/resolve-issue-2428.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/resource-assign-is-not-copy.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/resource-destruct.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/ret-none.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/segfault-no-out-of-stack.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/semistatement-in-lambda.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/shadow.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/shadowed-use-visibility.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/sigpipe-should-be-ignored.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/simple-infer.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/size-and-align.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/sized-borrowed-pointer.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/sized-owned-pointer.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/snake-case-no-lowercase-equivalent.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/sse2.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/structured-compare.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/super-fast-paren-parsing.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/super.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/swap-overlapping.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/trivial-message.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/try-block.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/try-is-identifier-edition2015.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/try-operator-hygiene.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/try-operator.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/try-wait.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/tup.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/tydesc-name.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-ascription.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-in-nested-module.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-infer-generalize-ty-var.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-param-constraints.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-param.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-params-in-for-each.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-ptr.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/type-sizes.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/typeck_type_placeholder_1.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/typeclasses-eq-example-static.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/typeclasses-eq-example.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/typeid-intrinsic.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/typestate-cfg-nesting.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/underscore-lifetimes.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unit.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unreachable-code-1.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unreachable-code.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unsized.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unsized2.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/unwind-resource.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/use-keyword-2.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/use-mod.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/use.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/utf8_idents.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/variant-attributes.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/volatile-fat-ptr.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/warn-ctypes-inhibit.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/weird-exprs.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/wf-bound-region-in-object-type.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/writealias.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/wrong-hashset-issue-42918.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/x86stdcall2.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/yield.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
src/test/run-pass/yield1.rs
浏览文件 @
c9f2c2de
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录