]> git.lizzy.rs Git - rust.git/commitdiff
Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling with...
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 25 Sep 2018 21:51:35 +0000 (23:51 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 26 Sep 2018 11:10:54 +0000 (13:10 +0200)
Most were added mechanically.

822 files changed:
src/test/run-pass/array-slice-vec/array_const_index-1.rs
src/test/run-pass/array-slice-vec/check-static-mut-slices.rs
src/test/run-pass/array-slice-vec/evec-slice.rs
src/test/run-pass/array-slice-vec/slice.rs
src/test/run-pass/array-slice-vec/vec-late-init.rs
src/test/run-pass/array-slice-vec/vec-macro-with-brackets.rs
src/test/run-pass/array-slice-vec/vec-matching-legal-tail-element-borrow.rs
src/test/run-pass/associated-consts/associated-const-range-match-patterns.rs
src/test/run-pass/associated-types/associated-types-cc.rs
src/test/run-pass/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs
src/test/run-pass/associated-types/associated-types-duplicate-binding-in-env.rs
src/test/run-pass/associated-types/associated-types-impl-redirect.rs
src/test/run-pass/associated-types/associated-types-issue-21212.rs
src/test/run-pass/associated-types/associated-types-nested-projections.rs
src/test/run-pass/associated-types/associated-types-normalize-in-bounds-binding.rs
src/test/run-pass/associated-types/associated-types-normalize-in-bounds-ufcs.rs
src/test/run-pass/associated-types/associated-types-normalize-in-bounds.rs
src/test/run-pass/associated-types/associated-types-projection-bound-in-supertraits.rs
src/test/run-pass/associated-types/associated-types-projection-in-object-type.rs
src/test/run-pass/associated-types/associated-types-projection-in-supertrait.rs
src/test/run-pass/associated-types/associated-types-projection-in-where-clause.rs
src/test/run-pass/associated-types/associated-types-region-erasure-issue-20582.rs
src/test/run-pass/associated-types/associated-types-sugar-path.rs
src/test/run-pass/associated-types/associated-types-where-clause-impl-ambiguity.rs
src/test/run-pass/autoref-autoderef/autoderef-and-borrow-method-receiver.rs
src/test/run-pass/binding/bind-field-short-with-modifiers.rs
src/test/run-pass/binding/fat-arrow-match.rs
src/test/run-pass/binding/func-arg-incomplete-pattern.rs
src/test/run-pass/binding/if-let.rs
src/test/run-pass/binding/inconsistent-lifetime-mismatch.rs
src/test/run-pass/binding/match-arm-statics.rs
src/test/run-pass/binding/match-bot-2.rs
src/test/run-pass/binding/match-enum-struct-0.rs
src/test/run-pass/binding/match-enum-struct-1.rs
src/test/run-pass/binding/match-join.rs
src/test/run-pass/binding/match-naked-record.rs
src/test/run-pass/binding/match-path.rs
src/test/run-pass/binding/match-pattern-no-type-params.rs
src/test/run-pass/binding/match-pattern-simple.rs
src/test/run-pass/binding/match-phi.rs
src/test/run-pass/binding/match-str.rs
src/test/run-pass/binding/match-tag.rs
src/test/run-pass/binding/mut-in-ident-patterns.rs
src/test/run-pass/binding/nested-exhaustive-match.rs
src/test/run-pass/binding/nested-pattern.rs
src/test/run-pass/binding/optional_comma_in_match_arm.rs
src/test/run-pass/binding/use-uninit-match.rs
src/test/run-pass/binding/use-uninit-match2.rs
src/test/run-pass/borrowck/borrowck-assignment-to-static-mut.rs
src/test/run-pass/borrowck/borrowck-borrow-of-mut-base-ptr-safe.rs
src/test/run-pass/borrowck/borrowck-field-sensitivity.rs
src/test/run-pass/borrowck/borrowck-lend-args.rs
src/test/run-pass/borrowck/borrowck-macro-interaction-issue-6304.rs
src/test/run-pass/borrowck/borrowck-multiple-borrows-interior-boxes.rs
src/test/run-pass/borrowck/borrowck-pat-enum.rs
src/test/run-pass/borrowck/borrowck-static-item-in-fn.rs
src/test/run-pass/borrowck/borrowck-trait-lifetime.rs
src/test/run-pass/borrowck/borrowck-uniq-via-ref.rs
src/test/run-pass/cfg/cfg-match-arm.rs
src/test/run-pass/cfg/cfg_stmt_expr.rs
src/test/run-pass/cfg/conditional-compile.rs
src/test/run-pass/coerce/coerce-overloaded-autoderef.rs
src/test/run-pass/coerce/coerce-reborrow-imm-ptr-arg.rs
src/test/run-pass/coerce/coerce-reborrow-imm-vec-arg.rs
src/test/run-pass/coerce/coerce-unsize-subtype.rs
src/test/run-pass/coherence/coherence-blanket.rs
src/test/run-pass/coherence/coherence-covered-type-parameter.rs
src/test/run-pass/coherence/coherence-impl-in-fn.rs
src/test/run-pass/coherence/coherence-iterator-vec-any-elem.rs
src/test/run-pass/coherence/coherence-iterator-vec.rs
src/test/run-pass/coherence/coherence-multidispatch-tuple.rs
src/test/run-pass/coherence/coherence-negative-impls-safe.rs
src/test/run-pass/coherence/coherence_copy_like.rs
src/test/run-pass/consts/const-adt-align-mismatch.rs
src/test/run-pass/consts/const-block-item-macro-codegen.rs
src/test/run-pass/consts/const-block-item.rs
src/test/run-pass/consts/const-bound.rs
src/test/run-pass/consts/const-enum-byref-self.rs
src/test/run-pass/consts/const-enum-byref.rs
src/test/run-pass/consts/const-enum-cast.rs
src/test/run-pass/consts/const-enum-ptr.rs
src/test/run-pass/consts/const-enum-struct.rs
src/test/run-pass/consts/const-enum-struct2.rs
src/test/run-pass/consts/const-enum-structlike.rs
src/test/run-pass/consts/const-enum-tuple.rs
src/test/run-pass/consts/const-enum-tuple2.rs
src/test/run-pass/consts/const-enum-tuplestruct.rs
src/test/run-pass/consts/const-enum-tuplestruct2.rs
src/test/run-pass/consts/const-err.rs
src/test/run-pass/consts/const-fields-and-indexing.rs
src/test/run-pass/consts/const-fn-const-eval.rs
src/test/run-pass/consts/const-fn-stability-calls.rs
src/test/run-pass/consts/const-index-feature-gate.rs
src/test/run-pass/consts/const-nullary-enum.rs
src/test/run-pass/consts/const-pattern-variant.rs
src/test/run-pass/consts/const-rec-and-tup.rs
src/test/run-pass/consts/const-region-ptrs-noncopy.rs
src/test/run-pass/consts/const-size_of-align_of.rs
src/test/run-pass/consts/const-str-ptr.rs
src/test/run-pass/consts/const-struct-offsets.rs
src/test/run-pass/consts/const-trait-to-trait.rs
src/test/run-pass/consts/const-unsafe-fn.rs
src/test/run-pass/cross-crate/static-array-across-crate.rs
src/test/run-pass/cross-crate/xcrate-trait-lifetime-param.rs
src/test/run-pass/ctfe/assoc-const.rs
src/test/run-pass/ctfe/const-block-non-item-statement-3.rs
src/test/run-pass/ctfe/const-block-non-item-statement.rs
src/test/run-pass/ctfe/const-fn-destructuring-arg.rs
src/test/run-pass/ctfe/ice-48279.rs
src/test/run-pass/ctfe/issue-37550.rs
src/test/run-pass/ctfe/match-const-fn-structs.rs
src/test/run-pass/ctfe/mozjs-error.rs
src/test/run-pass/deriving/deriving-clone-array.rs
src/test/run-pass/deriving/deriving-clone-enum.rs
src/test/run-pass/deriving/deriving-clone-generic-enum.rs
src/test/run-pass/deriving/deriving-hash.rs
src/test/run-pass/deriving/deriving-meta-multiple.rs
src/test/run-pass/deriving/deriving-meta.rs
src/test/run-pass/deriving/deriving-show-2.rs
src/test/run-pass/deriving/deriving-show.rs
src/test/run-pass/deriving/deriving-via-extension-c-enum.rs
src/test/run-pass/deriving/deriving-via-extension-enum.rs
src/test/run-pass/deriving/deriving-via-extension-hash-enum.rs
src/test/run-pass/deriving/deriving-via-extension-hash-struct.rs
src/test/run-pass/deriving/deriving-via-extension-struct-like-enum-variant.rs
src/test/run-pass/drop/drop-struct-as-object.rs
src/test/run-pass/drop/drop-trait-enum.rs
src/test/run-pass/drop/drop-trait-generic.rs
src/test/run-pass/drop/drop-trait.rs
src/test/run-pass/drop/drop-uninhabited-enum.rs
src/test/run-pass/drop/dynamic-drop.rs
src/test/run-pass/drop/no-drop-flag-size.rs
src/test/run-pass/dynamically-sized-types/dst-coerce-rc.rs
src/test/run-pass/dynamically-sized-types/dst-coercions.rs
src/test/run-pass/dynamically-sized-types/dst-field-align.rs
src/test/run-pass/dynamically-sized-types/dst-index.rs
src/test/run-pass/extern/extern-1.rs
src/test/run-pass/extern/extern-call-deep2.rs
src/test/run-pass/extern/extern-call-scrub.rs
src/test/run-pass/extern/extern-mod-abi.rs
src/test/run-pass/extern/extern-prelude-no-speculative.rs
src/test/run-pass/extern/extern-types-inherent-impl.rs
src/test/run-pass/extern/extern-types-pointer-cast.rs
src/test/run-pass/extern/extern-types-thin-pointer.rs
src/test/run-pass/extern/extern-types-trait-impl.rs
src/test/run-pass/for-loop-while/break-value.rs
src/test/run-pass/for-loop-while/for-loop-goofiness.rs
src/test/run-pass/for-loop-while/for-loop-no-std.rs
src/test/run-pass/for-loop-while/label_break_value.rs
src/test/run-pass/for-loop-while/liveness-assign-imm-local-after-loop.rs
src/test/run-pass/for-loop-while/liveness-move-in-loop.rs
src/test/run-pass/for-loop-while/loop-break-value.rs
src/test/run-pass/for-loop-while/loop-diverges.rs
src/test/run-pass/for-loop-while/while-label.rs
src/test/run-pass/for-loop-while/while-loop-constraints-2.rs
src/test/run-pass/foreign/foreign-mod-unused-const.rs
src/test/run-pass/foreign/foreign2.rs
src/test/run-pass/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs
src/test/run-pass/functions-closures/closure-expected-type/issue-38714.rs
src/test/run-pass/functions-closures/closure-reform.rs
src/test/run-pass/functions-closures/closure_to_fn_coercion-expected-types.rs
src/test/run-pass/functions-closures/fn-coerce-field.rs
src/test/run-pass/functions-closures/fn-item-type-cast.rs
src/test/run-pass/functions-closures/fn-item-type-coerce.rs
src/test/run-pass/functions-closures/parallel-codegen-closures.rs
src/test/run-pass/generator/issue-52398.rs
src/test/run-pass/generator/match-bindings.rs
src/test/run-pass/generator/too-live-local-in-immovable-gen.rs
src/test/run-pass/generator/yield-in-args-rev.rs
src/test/run-pass/generator/yield-subtype.rs
src/test/run-pass/generics/generic-fn.rs
src/test/run-pass/generics/generic-tag-match.rs
src/test/run-pass/generics/generic-tag.rs
src/test/run-pass/generics/generic-type-synonym.rs
src/test/run-pass/generics/generic-unique.rs
src/test/run-pass/higher-rank-trait-bounds/hrtb-binder-levels-in-object-types.rs
src/test/run-pass/higher-rank-trait-bounds/hrtb-debruijn-object-types-in-closures.rs
src/test/run-pass/higher-rank-trait-bounds/hrtb-precedence-of-plus-where-clause.rs
src/test/run-pass/higher-rank-trait-bounds/hrtb-precedence-of-plus.rs
src/test/run-pass/higher-rank-trait-bounds/hrtb-resolve-lifetime.rs
src/test/run-pass/higher-rank-trait-bounds/hrtb-trait-object-passed-to-closure.rs
src/test/run-pass/higher-rank-trait-bounds/hrtb-type-outlives.rs
src/test/run-pass/hygiene/hygiene-dodging-1.rs
src/test/run-pass/hygiene/hygienic-labels-in-let.rs
src/test/run-pass/hygiene/hygienic-labels-in-let.stderr
src/test/run-pass/hygiene/hygienic-labels.rs
src/test/run-pass/hygiene/hygienic-labels.stderr
src/test/run-pass/hygiene/issue-44128.rs
src/test/run-pass/hygiene/legacy_interaction.rs
src/test/run-pass/impl-trait/nesting.rs
src/test/run-pass/imports/import-glob-0.rs
src/test/run-pass/imports/import-glob-1.rs
src/test/run-pass/imports/import-prefix-macro.rs
src/test/run-pass/imports/import-rename.rs
src/test/run-pass/intrinsics/intrinsic-move-val-cleanups.rs
src/test/run-pass/issues/issue-10025.rs
src/test/run-pass/issues/issue-10028.rs
src/test/run-pass/issues/issue-10228.rs
src/test/run-pass/issues/issue-10392.rs
src/test/run-pass/issues/issue-10396.rs
src/test/run-pass/issues/issue-10763.rs
src/test/run-pass/issues/issue-10802.rs
src/test/run-pass/issues/issue-10806.rs
src/test/run-pass/issues/issue-10902.rs
src/test/run-pass/issues/issue-11085.rs
src/test/run-pass/issues/issue-1112.rs
src/test/run-pass/issues/issue-11612.rs
src/test/run-pass/issues/issue-11677.rs
src/test/run-pass/issues/issue-11709.rs
src/test/run-pass/issues/issue-11869.rs
src/test/run-pass/issues/issue-1251.rs
src/test/run-pass/issues/issue-12612.rs
src/test/run-pass/issues/issue-12729.rs
src/test/run-pass/issues/issue-12909.rs
src/test/run-pass/issues/issue-13204.rs
src/test/run-pass/issues/issue-13214.rs
src/test/run-pass/issues/issue-13304.rs
src/test/run-pass/issues/issue-13405.rs
src/test/run-pass/issues/issue-13494.rs
src/test/run-pass/issues/issue-13507-2.rs
src/test/run-pass/issues/issue-13763.rs
src/test/run-pass/issues/issue-13808.rs
src/test/run-pass/issues/issue-13837.rs
src/test/run-pass/issues/issue-13902.rs
src/test/run-pass/issues/issue-14330.rs
src/test/run-pass/issues/issue-14456.rs
src/test/run-pass/issues/issue-1451.rs
src/test/run-pass/issues/issue-14821.rs
src/test/run-pass/issues/issue-14865.rs
src/test/run-pass/issues/issue-14919.rs
src/test/run-pass/issues/issue-15063.rs
src/test/run-pass/issues/issue-15221.rs
src/test/run-pass/issues/issue-15261.rs
src/test/run-pass/issues/issue-15487.rs
src/test/run-pass/issues/issue-15689-2.rs
src/test/run-pass/issues/issue-15730.rs
src/test/run-pass/issues/issue-15735.rs
src/test/run-pass/issues/issue-15763.rs
src/test/run-pass/issues/issue-15793.rs
src/test/run-pass/issues/issue-16441.rs
src/test/run-pass/issues/issue-16452.rs
src/test/run-pass/issues/issue-16560.rs
src/test/run-pass/issues/issue-16596.rs
src/test/run-pass/issues/issue-16597.rs
src/test/run-pass/issues/issue-16602-3.rs
src/test/run-pass/issues/issue-16668.rs
src/test/run-pass/issues/issue-16783.rs
src/test/run-pass/issues/issue-16819.rs
src/test/run-pass/issues/issue-1701.rs
src/test/run-pass/issues/issue-17074.rs
src/test/run-pass/issues/issue-17121.rs
src/test/run-pass/issues/issue-17216.rs
src/test/run-pass/issues/issue-17336.rs
src/test/run-pass/issues/issue-17718-borrow-interior.rs
src/test/run-pass/issues/issue-17718-const-destructors.rs
src/test/run-pass/issues/issue-17718-static-unsafe-interior.rs
src/test/run-pass/issues/issue-17718.rs
src/test/run-pass/issues/issue-17732.rs
src/test/run-pass/issues/issue-17746.rs
src/test/run-pass/issues/issue-17756.rs
src/test/run-pass/issues/issue-17771.rs
src/test/run-pass/issues/issue-17816.rs
src/test/run-pass/issues/issue-17904.rs
src/test/run-pass/issues/issue-18083.rs
src/test/run-pass/issues/issue-18110.rs
src/test/run-pass/issues/issue-1821.rs
src/test/run-pass/issues/issue-18353.rs
src/test/run-pass/issues/issue-18446.rs
src/test/run-pass/issues/issue-1866.rs
src/test/run-pass/issues/issue-18738.rs
src/test/run-pass/issues/issue-18906.rs
src/test/run-pass/issues/issue-18988.rs
src/test/run-pass/issues/issue-19001.rs
src/test/run-pass/issues/issue-19037.rs
src/test/run-pass/issues/issue-19097.rs
src/test/run-pass/issues/issue-19102.rs
src/test/run-pass/issues/issue-19127.rs
src/test/run-pass/issues/issue-19129-2.rs
src/test/run-pass/issues/issue-19340-1.rs
src/test/run-pass/issues/issue-19340-2.rs
src/test/run-pass/issues/issue-19404.rs
src/test/run-pass/issues/issue-19499.rs
src/test/run-pass/issues/issue-19631.rs
src/test/run-pass/issues/issue-19632.rs
src/test/run-pass/issues/issue-19850.rs
src/test/run-pass/issues/issue-20186.rs
src/test/run-pass/issues/issue-20313.rs
src/test/run-pass/issues/issue-20343.rs
src/test/run-pass/issues/issue-20389.rs
src/test/run-pass/issues/issue-20414.rs
src/test/run-pass/issues/issue-20427.rs
src/test/run-pass/issues/issue-20454.rs
src/test/run-pass/issues/issue-20616.rs
src/test/run-pass/issues/issue-2063-resource.rs
src/test/run-pass/issues/issue-20644.rs
src/test/run-pass/issues/issue-20763-1.rs
src/test/run-pass/issues/issue-20763-2.rs
src/test/run-pass/issues/issue-20953.rs
src/test/run-pass/issues/issue-21033.rs
src/test/run-pass/issues/issue-21058.rs
src/test/run-pass/issues/issue-21174.rs
src/test/run-pass/issues/issue-21245.rs
src/test/run-pass/issues/issue-21402.rs
src/test/run-pass/issues/issue-21475.rs
src/test/run-pass/issues/issue-21486.rs
src/test/run-pass/issues/issue-21520.rs
src/test/run-pass/issues/issue-21562.rs
src/test/run-pass/issues/issue-21622.rs
src/test/run-pass/issues/issue-21726.rs
src/test/run-pass/issues/issue-21891.rs
src/test/run-pass/issues/issue-2190-1.rs
src/test/run-pass/issues/issue-2216.rs
src/test/run-pass/issues/issue-22346.rs
src/test/run-pass/issues/issue-22471.rs
src/test/run-pass/issues/issue-22546.rs
src/test/run-pass/issues/issue-22577.rs
src/test/run-pass/issues/issue-22629.rs
src/test/run-pass/issues/issue-22781.rs
src/test/run-pass/issues/issue-22828.rs
src/test/run-pass/issues/issue-2284.rs
src/test/run-pass/issues/issue-2311-2.rs
src/test/run-pass/issues/issue-2312.rs
src/test/run-pass/issues/issue-23406.rs
src/test/run-pass/issues/issue-23442.rs
src/test/run-pass/issues/issue-23485.rs
src/test/run-pass/issues/issue-23491.rs
src/test/run-pass/issues/issue-23699.rs
src/test/run-pass/issues/issue-23833.rs
src/test/run-pass/issues/issue-24085.rs
src/test/run-pass/issues/issue-24086.rs
src/test/run-pass/issues/issue-24161.rs
src/test/run-pass/issues/issue-24353.rs
src/test/run-pass/issues/issue-24434.rs
src/test/run-pass/issues/issue-2445-b.rs
src/test/run-pass/issues/issue-2445.rs
src/test/run-pass/issues/issue-24533.rs
src/test/run-pass/issues/issue-2463.rs
src/test/run-pass/issues/issue-2487-a.rs
src/test/run-pass/issues/issue-2502.rs
src/test/run-pass/issues/issue-25180.rs
src/test/run-pass/issues/issue-25339.rs
src/test/run-pass/issues/issue-25394.rs
src/test/run-pass/issues/issue-25467.rs
src/test/run-pass/issues/issue-2550.rs
src/test/run-pass/issues/issue-25549-multiple-drop.rs
src/test/run-pass/issues/issue-25693.rs
src/test/run-pass/issues/issue-25916.rs
src/test/run-pass/issues/issue-26095.rs
src/test/run-pass/issues/issue-2611-3.rs
src/test/run-pass/issues/issue-26205.rs
src/test/run-pass/issues/issue-2633.rs
src/test/run-pass/issues/issue-2642.rs
src/test/run-pass/issues/issue-26873-multifile.rs
src/test/run-pass/issues/issue-26873-onefile.rs
src/test/run-pass/issues/issue-26997.rs
src/test/run-pass/issues/issue-27060.rs
src/test/run-pass/issues/issue-2708.rs
src/test/run-pass/issues/issue-2718.rs
src/test/run-pass/issues/issue-27240.rs
src/test/run-pass/issues/issue-2734.rs
src/test/run-pass/issues/issue-2735.rs
src/test/run-pass/issues/issue-2748-a.rs
src/test/run-pass/issues/issue-27639.rs
src/test/run-pass/issues/issue-27889.rs
src/test/run-pass/issues/issue-2804-2.rs
src/test/run-pass/issues/issue-28279.rs
src/test/run-pass/issues/issue-28676.rs
src/test/run-pass/issues/issue-28822.rs
src/test/run-pass/issues/issue-2895.rs
src/test/run-pass/issues/issue-29030.rs
src/test/run-pass/issues/issue-29037.rs
src/test/run-pass/issues/issue-2904.rs
src/test/run-pass/issues/issue-29071-2.rs
src/test/run-pass/issues/issue-29071.rs
src/test/run-pass/issues/issue-29276.rs
src/test/run-pass/issues/issue-2935.rs
src/test/run-pass/issues/issue-29466.rs
src/test/run-pass/issues/issue-29485.rs
src/test/run-pass/issues/issue-29522.rs
src/test/run-pass/issues/issue-29740.rs
src/test/run-pass/issues/issue-29927.rs
src/test/run-pass/issues/issue-30018-nopanic.rs
src/test/run-pass/issues/issue-3037.rs
src/test/run-pass/issues/issue-30371.rs
src/test/run-pass/issues/issue-3052.rs
src/test/run-pass/issues/issue-3121.rs
src/test/run-pass/issues/issue-31260.rs
src/test/run-pass/issues/issue-3149.rs
src/test/run-pass/issues/issue-31597.rs
src/test/run-pass/issues/issue-31776.rs
src/test/run-pass/issues/issue-32008.rs
src/test/run-pass/issues/issue-3220.rs
src/test/run-pass/issues/issue-33287.rs
src/test/run-pass/issues/issue-33461.rs
src/test/run-pass/issues/issue-33498.rs
src/test/run-pass/issues/issue-3389.rs
src/test/run-pass/issues/issue-33903.rs
src/test/run-pass/issues/issue-3424.rs
src/test/run-pass/issues/issue-3447.rs
src/test/run-pass/issues/issue-34751.rs
src/test/run-pass/issues/issue-34784.rs
src/test/run-pass/issues/issue-34796.rs
src/test/run-pass/issues/issue-35546.rs
src/test/run-pass/issues/issue-3556.rs
src/test/run-pass/issues/issue-35600.rs
src/test/run-pass/issues/issue-3563-3.rs
src/test/run-pass/issues/issue-35815.rs
src/test/run-pass/issues/issue-36023.rs
src/test/run-pass/issues/issue-36075.rs
src/test/run-pass/issues/issue-3609.rs
src/test/run-pass/issues/issue-3656.rs
src/test/run-pass/issues/issue-3702.rs
src/test/run-pass/issues/issue-37222.rs
src/test/run-pass/issues/issue-37291/main.rs
src/test/run-pass/issues/issue-37598.rs
src/test/run-pass/issues/issue-37725.rs
src/test/run-pass/issues/issue-37733.rs
src/test/run-pass/issues/issue-38002.rs
src/test/run-pass/issues/issue-38437.rs
src/test/run-pass/issues/issue-38556.rs
src/test/run-pass/issues/issue-38727.rs
src/test/run-pass/issues/issue-3874.rs
src/test/run-pass/issues/issue-3888-2.rs
src/test/run-pass/issues/issue-3895.rs
src/test/run-pass/issues/issue-39089.rs
src/test/run-pass/issues/issue-39467.rs
src/test/run-pass/issues/issue-39709.rs
src/test/run-pass/issues/issue-3979-generics.rs
src/test/run-pass/issues/issue-3979-xcrate.rs
src/test/run-pass/issues/issue-3979.rs
src/test/run-pass/issues/issue-3991.rs
src/test/run-pass/issues/issue-39984.rs
src/test/run-pass/issues/issue-40003.rs
src/test/run-pass/issues/issue-40136.rs
src/test/run-pass/issues/issue-40235.rs
src/test/run-pass/issues/issue-4025.rs
src/test/run-pass/issues/issue-40770.rs
src/test/run-pass/issues/issue-40883.rs
src/test/run-pass/issues/issue-40951.rs
src/test/run-pass/issues/issue-4107.rs
src/test/run-pass/issues/issue-41213.rs
src/test/run-pass/issues/issue-41272.rs
src/test/run-pass/issues/issue-41298.rs
src/test/run-pass/issues/issue-41696.rs
src/test/run-pass/issues/issue-41849-variance-req.rs
src/test/run-pass/issues/issue-41936-variance-coerce-unsized-cycle.rs
src/test/run-pass/issues/issue-42007.rs
src/test/run-pass/issues/issue-4208.rs
src/test/run-pass/issues/issue-42453.rs
src/test/run-pass/issues/issue-42467.rs
src/test/run-pass/issues/issue-42956.rs
src/test/run-pass/issues/issue-4333.rs
src/test/run-pass/issues/issue-43357.rs
src/test/run-pass/issues/issue-43483.rs
src/test/run-pass/issues/issue-43923.rs
src/test/run-pass/issues/issue-44247.rs
src/test/run-pass/issues/issue-44373.rs
src/test/run-pass/issues/issue-44402.rs
src/test/run-pass/issues/issue-4464.rs
src/test/run-pass/issues/issue-45124.rs
src/test/run-pass/issues/issue-45152.rs
src/test/run-pass/issues/issue-45425.rs
src/test/run-pass/issues/issue-46855.rs
src/test/run-pass/issues/issue-4734.rs
src/test/run-pass/issues/issue-47364.rs
src/test/run-pass/issues/issue-47638.rs
src/test/run-pass/issues/issue-47673.rs
src/test/run-pass/issues/issue-47703-1.rs
src/test/run-pass/issues/issue-47703-tuple.rs
src/test/run-pass/issues/issue-47703.rs
src/test/run-pass/issues/issue-47722.rs
src/test/run-pass/issues/issue-47789.rs
src/test/run-pass/issues/issue-4830.rs
src/test/run-pass/issues/issue-4865-1.rs
src/test/run-pass/issues/issue-4865-3.rs
src/test/run-pass/issues/issue-4875.rs
src/test/run-pass/issues/issue-48962.rs
src/test/run-pass/issues/issue-48984.rs
src/test/run-pass/issues/issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs
src/test/run-pass/issues/issue-50442.rs
src/test/run-pass/issues/issue-50689.rs
src/test/run-pass/issues/issue-51345.rs
src/test/run-pass/issues/issue-5192.rs
src/test/run-pass/issues/issue-5243.rs
src/test/run-pass/issues/issue-52557.rs
src/test/run-pass/issues/issue-52705/main.rs
src/test/run-pass/issues/issue-5280.rs
src/test/run-pass/issues/issue-53333.rs
src/test/run-pass/issues/issue-5353.rs
src/test/run-pass/issues/issue-5521.rs
src/test/run-pass/issues/issue-5530.rs
src/test/run-pass/issues/issue-5550.rs
src/test/run-pass/issues/issue-5554.rs
src/test/run-pass/issues/issue-5572.rs
src/test/run-pass/issues/issue-5708.rs
src/test/run-pass/issues/issue-5754.rs
src/test/run-pass/issues/issue-5791.rs
src/test/run-pass/issues/issue-5884.rs
src/test/run-pass/issues/issue-5900.rs
src/test/run-pass/issues/issue-5997.rs
src/test/run-pass/issues/issue-6117.rs
src/test/run-pass/issues/issue-6449.rs
src/test/run-pass/issues/issue-6470.rs
src/test/run-pass/issues/issue-6557.rs
src/test/run-pass/issues/issue-6892.rs
src/test/run-pass/issues/issue-6919.rs
src/test/run-pass/issues/issue-6991.rs
src/test/run-pass/issues/issue-7268.rs
src/test/run-pass/issues/issue-7344.rs
src/test/run-pass/issues/issue-7563.rs
src/test/run-pass/issues/issue-7607-2.rs
src/test/run-pass/issues/issue-7660.rs
src/test/run-pass/issues/issue-7673-cast-generically-implemented-trait.rs
src/test/run-pass/issues/issue-7899.rs
src/test/run-pass/issues/issue-8171-default-method-self-inherit-builtin-trait.rs
src/test/run-pass/issues/issue-8249.rs
src/test/run-pass/issues/issue-8259.rs
src/test/run-pass/issues/issue-8351-1.rs
src/test/run-pass/issues/issue-8351-2.rs
src/test/run-pass/issues/issue-8398.rs
src/test/run-pass/issues/issue-8460.rs
src/test/run-pass/issues/issue-8578.rs
src/test/run-pass/issues/issue-868.rs
src/test/run-pass/issues/issue-8783.rs
src/test/run-pass/issues/issue-8851.rs
src/test/run-pass/issues/issue-8860.rs
src/test/run-pass/issues/issue-9047.rs
src/test/run-pass/issues/issue-9110.rs
src/test/run-pass/issues/issue-9129.rs
src/test/run-pass/issues/issue-9243.rs
src/test/run-pass/issues/issue-9249.rs
src/test/run-pass/issues/issue-9259.rs
src/test/run-pass/issues/issue-9382.rs
src/test/run-pass/issues/issue-9396.rs
src/test/run-pass/issues/issue-9719.rs
src/test/run-pass/issues/issue-9737.rs
src/test/run-pass/issues/issue29927-1.rs
src/test/run-pass/iterators/into-iterator-type-inference-shift.rs
src/test/run-pass/macros/colorful-write-macros.rs
src/test/run-pass/macros/die-macro.rs
src/test/run-pass/macros/macro-at-most-once-rep.rs
src/test/run-pass/macros/macro-comma-behavior.rs
src/test/run-pass/macros/macro-follow.rs
src/test/run-pass/macros/macro-followed-by-seq.rs
src/test/run-pass/macros/macro-lifetime-used-with-bound.rs
src/test/run-pass/macros/macro-meta-items.rs
src/test/run-pass/macros/macro-stmt_macro_in_expr_macro.rs
src/test/run-pass/macros/macro-with-braces-in-expr-position.rs
src/test/run-pass/macros/parse-complex-macro-invoc-op.rs
src/test/run-pass/macros/paths-in-macro-invocations.rs
src/test/run-pass/macros/type-macros-simple.rs
src/test/run-pass/macros/typeck-macro-interaction-issue-8852.rs
src/test/run-pass/macros/use-macro-self.rs
src/test/run-pass/methods/method-attributes.rs
src/test/run-pass/methods/method-normalize-bounds-issue-20604.rs
src/test/run-pass/methods/method-recursive-blanket-impl.rs
src/test/run-pass/mir/mir-typeck-normalize-fn-sig.rs
src/test/run-pass/mir/mir_build_match_comparisons.rs
src/test/run-pass/mir/mir_codegen_array.rs
src/test/run-pass/mir/mir_codegen_critical_edge.rs
src/test/run-pass/mir/mir_early_return_scope.rs
src/test/run-pass/mir/mir_fat_ptr_drop.rs
src/test/run-pass/mir/mir_small_agg_arg.rs
src/test/run-pass/modules/mod_dir_path.rs
src/test/run-pass/moves/move-1-unique.rs
src/test/run-pass/moves/move-2-unique.rs
src/test/run-pass/moves/move-2.rs
src/test/run-pass/moves/move-3-unique.rs
src/test/run-pass/moves/move-4-unique.rs
src/test/run-pass/moves/move-4.rs
src/test/run-pass/moves/move-scalar.rs
src/test/run-pass/moves/moves-based-on-type-capture-clause.rs
src/test/run-pass/nll/issue-48623-closure.rs
src/test/run-pass/nll/issue-48623-generator.rs
src/test/run-pass/numbers-arithmetic/num-wrapping.rs
src/test/run-pass/overloaded/overloaded-autoderef-vtable.rs
src/test/run-pass/overloaded/overloaded-autoderef.rs
src/test/run-pass/overloaded/overloaded_deref_with_ref_pattern.rs
src/test/run-pass/overloaded/overloaded_deref_with_ref_pattern_issue15609.rs
src/test/run-pass/packed/packed-struct-borrow-element.rs
src/test/run-pass/packed/packed-struct-generic-layout.rs
src/test/run-pass/packed/packed-struct-generic-size.rs
src/test/run-pass/packed/packed-struct-generic-size.stderr
src/test/run-pass/packed/packed-struct-layout.rs
src/test/run-pass/packed/packed-struct-size.rs
src/test/run-pass/packed/packed-tuple-struct-size.rs
src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs
src/test/run-pass/panic-runtime/abort.rs
src/test/run-pass/panic-runtime/lto-abort.rs
src/test/run-pass/panic-runtime/lto-unwind.rs
src/test/run-pass/panics/panic-handler-set-twice.rs
src/test/run-pass/panics/panic-in-dtor-drops-fields.rs
src/test/run-pass/privacy/privacy1.rs
src/test/run-pass/privacy/private-class-field.rs
src/test/run-pass/privacy/private-method.rs
src/test/run-pass/process/process-exit.rs
src/test/run-pass/regions/regions-addr-of-interior-of-unique-box.rs
src/test/run-pass/regions/regions-assoc-type-region-bound.rs
src/test/run-pass/regions/regions-assoc-type-static-bound.rs
src/test/run-pass/regions/regions-bot.rs
src/test/run-pass/regions/regions-bound-lists-feature-gate-2.rs
src/test/run-pass/regions/regions-bound-lists-feature-gate.rs
src/test/run-pass/regions/regions-creating-enums2.rs
src/test/run-pass/regions/regions-creating-enums5.rs
src/test/run-pass/regions/regions-debruijn-of-object.rs
src/test/run-pass/regions/regions-early-bound-lifetime-in-assoc-fn.rs
src/test/run-pass/regions/regions-expl-self.rs
src/test/run-pass/regions/regions-fn-subtyping-2.rs
src/test/run-pass/regions/regions-fn-subtyping.rs
src/test/run-pass/regions/regions-free-region-outlives-static-outlives-free-region.rs
src/test/run-pass/regions/regions-infer-borrow-scope.rs
src/test/run-pass/regions/regions-infer-reborrow-ref-mut-recurse.rs
src/test/run-pass/regions/regions-infer-region-in-fn-but-not-type.rs
src/test/run-pass/regions/regions-issue-22246.rs
src/test/run-pass/regions/regions-lifetime-static-items-enclosing-scopes.rs
src/test/run-pass/regions/regions-lub-ref-ref-rc.rs
src/test/run-pass/regions/regions-mock-codegen.rs
src/test/run-pass/regions/regions-no-variance-from-fn-generics.rs
src/test/run-pass/regions/regions-nullary-variant.rs
src/test/run-pass/regions/regions-params.rs
src/test/run-pass/regions/regions-reassign-let-bound-pointer.rs
src/test/run-pass/regions/regions-reassign-match-bound-pointer.rs
src/test/run-pass/regions/regions-relate-bound-regions-on-closures-to-inference-variables.rs
src/test/run-pass/regions/regions-scope-chain-example.rs
src/test/run-pass/regions/regions-self-in-enums.rs
src/test/run-pass/regions/regions-variance-contravariant-use-contravariant.rs
src/test/run-pass/regions/regions-variance-covariant-use-covariant.rs
src/test/run-pass/rfcs/rfc-1014-2.rs
src/test/run-pass/rfcs/rfc-1014.rs
src/test/run-pass/rfcs/rfc-2005-default-binding-mode/box.rs
src/test/run-pass/rfcs/rfc-2005-default-binding-mode/general.rs
src/test/run-pass/rfcs/rfc-2005-default-binding-mode/lit.rs
src/test/run-pass/rfcs/rfc-2005-default-binding-mode/tuple-struct.rs
src/test/run-pass/rfcs/rfc-2008-non-exhaustive/structs.rs
src/test/run-pass/rfcs/rfc-2008-non-exhaustive/structs_same_crate.rs
src/test/run-pass/rfcs/rfc-2126-crate-paths/crate-path-absolute.rs
src/test/run-pass/rfcs/rfc-2126-crate-paths/crate-path-visibility-ambiguity.rs
src/test/run-pass/rfcs/rfc-2126-extern-absolute-paths/basic.rs
src/test/run-pass/rfcs/rfc-2126-extern-absolute-paths/extern.rs
src/test/run-pass/rfcs/rfc-2175-or-if-while-let/basic.rs
src/test/run-pass/rfcs/rfc-2421-unreserve-pure-offsetof-sizeof-alignof.rs
src/test/run-pass/rfcs/rfc1623.rs
src/test/run-pass/self/explicit-self-closures.rs
src/test/run-pass/self/explicit-self-generic.rs
src/test/run-pass/self/explicit-self.rs
src/test/run-pass/self/object-safety-sized-self-by-value-self.rs
src/test/run-pass/self/object-safety-sized-self-generic-method.rs
src/test/run-pass/self/self-impl.rs
src/test/run-pass/self/self-type-param.rs
src/test/run-pass/sepcomp/sepcomp-fns-backwards.rs
src/test/run-pass/sepcomp/sepcomp-statics.rs
src/test/run-pass/sepcomp/sepcomp-unwind.rs
src/test/run-pass/simd/simd-intrinsic-generic-cast.rs
src/test/run-pass/simd/simd-type.rs
src/test/run-pass/specialization/defaultimpl/allowed-cross-crate.rs
src/test/run-pass/specialization/defaultimpl/projection.rs
src/test/run-pass/specialization/specialization-allowed-cross-crate.rs
src/test/run-pass/specialization/specialization-on-projection.rs
src/test/run-pass/specialization/specialization-projection-alias.rs
src/test/run-pass/specialization/specialization-projection.rs
src/test/run-pass/statics/static-method-in-trait-with-tps-intracrate.rs
src/test/run-pass/structs-enums/align-struct.rs
src/test/run-pass/structs-enums/class-attributes-1.rs
src/test/run-pass/structs-enums/class-attributes-2.rs
src/test/run-pass/structs-enums/class-cast-to-trait.rs
src/test/run-pass/structs-enums/class-dtor.rs
src/test/run-pass/structs-enums/class-exports.rs
src/test/run-pass/structs-enums/class-impl-very-parameterized-trait.rs
src/test/run-pass/structs-enums/class-implement-trait-cross-crate.rs
src/test/run-pass/structs-enums/class-poly-methods.rs
src/test/run-pass/structs-enums/class-separate-impl.rs
src/test/run-pass/structs-enums/class-str-field.rs
src/test/run-pass/structs-enums/class-typarams.rs
src/test/run-pass/structs-enums/classes-self-referential.rs
src/test/run-pass/structs-enums/classes-simple-method.rs
src/test/run-pass/structs-enums/classes-simple.rs
src/test/run-pass/structs-enums/classes.rs
src/test/run-pass/structs-enums/empty-struct-braces.rs
src/test/run-pass/structs-enums/enum-alignment.rs
src/test/run-pass/structs-enums/enum-clike-ffi-as-int.rs
src/test/run-pass/structs-enums/enum-discr.rs
src/test/run-pass/structs-enums/enum-discrim-autosizing.rs
src/test/run-pass/structs-enums/enum-discrim-manual-sizing.rs
src/test/run-pass/structs-enums/enum-export-inheritance.rs
src/test/run-pass/structs-enums/enum-variants.rs
src/test/run-pass/structs-enums/field-destruction-order.rs
src/test/run-pass/structs-enums/foreign-struct.rs
src/test/run-pass/structs-enums/ivec-tag.rs
src/test/run-pass/structs-enums/namespaced-enum-emulate-flat.rs
src/test/run-pass/structs-enums/namespaced-enum-glob-import.rs
src/test/run-pass/structs-enums/namespaced-enums.rs
src/test/run-pass/structs-enums/nested-enum-same-names.rs
src/test/run-pass/structs-enums/newtype-struct-with-dtor.rs
src/test/run-pass/structs-enums/nonzero-enum.rs
src/test/run-pass/structs-enums/rec-align-u32.rs
src/test/run-pass/structs-enums/rec-align-u64.rs
src/test/run-pass/structs-enums/simple-generic-tag.rs
src/test/run-pass/structs-enums/simple-match-generic-tag.rs
src/test/run-pass/structs-enums/struct-aliases-xcrate.rs
src/test/run-pass/structs-enums/struct-like-variant-construct.rs
src/test/run-pass/structs-enums/struct-order-of-eval-1.rs
src/test/run-pass/structs-enums/struct-order-of-eval-2.rs
src/test/run-pass/structs-enums/struct-path-associated-type.rs
src/test/run-pass/structs-enums/struct-variant-field-visibility.rs
src/test/run-pass/structs-enums/tag-align-dyn-u64.rs
src/test/run-pass/structs-enums/tag-align-dyn-variants.rs
src/test/run-pass/structs-enums/tag-align-u64.rs
src/test/run-pass/structs-enums/tag-disr-val-shape.rs
src/test/run-pass/structs-enums/tag-exports.rs
src/test/run-pass/structs-enums/tag-in-block.rs
src/test/run-pass/structs-enums/tag-variant-disr-type-mismatch.rs
src/test/run-pass/structs-enums/tag.rs
src/test/run-pass/structs-enums/tuple-struct-trivial.rs
src/test/run-pass/structs-enums/variant-structs-trivial.rs
src/test/run-pass/threads-sendsync/comm.rs
src/test/run-pass/threads-sendsync/send-is-not-static-par-for.rs
src/test/run-pass/threads-sendsync/send-resource.rs
src/test/run-pass/threads-sendsync/send-type-inference.rs
src/test/run-pass/threads-sendsync/sendable-class.rs
src/test/run-pass/threads-sendsync/spawn-fn.rs
src/test/run-pass/threads-sendsync/spawning-with-debug.rs
src/test/run-pass/threads-sendsync/task-comm-0.rs
src/test/run-pass/threads-sendsync/task-comm-1.rs
src/test/run-pass/threads-sendsync/task-comm-10.rs
src/test/run-pass/threads-sendsync/task-comm-11.rs
src/test/run-pass/threads-sendsync/task-comm-12.rs
src/test/run-pass/threads-sendsync/task-comm-13.rs
src/test/run-pass/threads-sendsync/task-comm-14.rs
src/test/run-pass/threads-sendsync/task-comm-15.rs
src/test/run-pass/threads-sendsync/task-comm-16.rs
src/test/run-pass/threads-sendsync/task-comm-17.rs
src/test/run-pass/threads-sendsync/task-comm-3.rs
src/test/run-pass/threads-sendsync/task-comm-4.rs
src/test/run-pass/threads-sendsync/task-comm-6.rs
src/test/run-pass/threads-sendsync/task-comm-7.rs
src/test/run-pass/threads-sendsync/task-comm-9.rs
src/test/run-pass/threads-sendsync/task-life-0.rs
src/test/run-pass/threads-sendsync/task-spawn-move-and-copy.rs
src/test/run-pass/threads-sendsync/threads.rs
src/test/run-pass/traits/auto-traits.rs
src/test/run-pass/traits/cycle-trait-type-trait.rs
src/test/run-pass/traits/impl-implicit-trait.rs
src/test/run-pass/traits/infer-from-object-trait-issue-26952.rs
src/test/run-pass/traits/object-one-type-two-traits.rs
src/test/run-pass/traits/overlap-permitted-for-marker-traits-neg.rs
src/test/run-pass/traits/supertrait-default-generics.rs
src/test/run-pass/traits/syntax-trait-polarity.rs
src/test/run-pass/traits/trait-bounds-basic.rs
src/test/run-pass/traits/trait-bounds-in-arc.rs
src/test/run-pass/traits/trait-bounds-on-structs-and-enums.rs
src/test/run-pass/traits/trait-bounds.rs
src/test/run-pass/traits/trait-coercion-generic.rs
src/test/run-pass/traits/trait-coercion.rs
src/test/run-pass/traits/trait-copy-guessing.rs
src/test/run-pass/traits/trait-default-method-bound-subst4.rs
src/test/run-pass/traits/trait-default-method-xc.rs
src/test/run-pass/traits/trait-impl-2.rs
src/test/run-pass/traits/trait-inheritance-auto-xc.rs
src/test/run-pass/traits/trait-inheritance-auto.rs
src/test/run-pass/traits/trait-inheritance-call-bound-inherited.rs
src/test/run-pass/traits/trait-inheritance-call-bound-inherited2.rs
src/test/run-pass/traits/trait-inheritance-cast-without-call-to-supertrait.rs
src/test/run-pass/traits/trait-inheritance-cast.rs
src/test/run-pass/traits/trait-inheritance-cross-trait-call.rs
src/test/run-pass/traits/trait-inheritance-diamond.rs
src/test/run-pass/traits/trait-inheritance-multiple-inheritors.rs
src/test/run-pass/traits/trait-inheritance-multiple-params.rs
src/test/run-pass/traits/trait-inheritance-num.rs
src/test/run-pass/traits/trait-inheritance-num0.rs
src/test/run-pass/traits/trait-inheritance-num1.rs
src/test/run-pass/traits/trait-inheritance-overloading-simple.rs
src/test/run-pass/traits/trait-inheritance-simple.rs
src/test/run-pass/traits/trait-inheritance2.rs
src/test/run-pass/traits/trait-object-auto-dedup.rs
src/test/run-pass/traits/trait-static-method-overwriting.rs
src/test/run-pass/traits/trait-where-clause-vs-impl.rs
src/test/run-pass/traits/traits-conditional-model-fn.rs
src/test/run-pass/traits/traits-default-method-mut.rs
src/test/run-pass/traits/traits-issue-22655.rs
src/test/run-pass/traits/traits-negative-impls.rs
src/test/run-pass/unboxed-closures/unboxed-closures-blanket-fn-mut.rs
src/test/run-pass/unboxed-closures/unboxed-closures-blanket-fn.rs
src/test/run-pass/unboxed-closures/unboxed-closures-call-fn-autoderef.rs
src/test/run-pass/unboxed-closures/unboxed-closures-counter-not-moved.rs
src/test/run-pass/unboxed-closures/unboxed-closures-direct-sugary-call.rs
src/test/run-pass/unboxed-closures/unboxed-closures-drop.rs
src/test/run-pass/unboxed-closures/unboxed-closures-simple.rs
src/test/run-pass/unboxed-closures/unboxed-closures-zero-args.rs
src/test/run-pass/uniform-paths/basic-nested.rs
src/test/run-pass/uniform-paths/basic.rs
src/test/run-pass/union/union-align.rs
src/test/run-pass/union/union-backcomp.rs
src/test/run-pass/union/union-basic.rs
src/test/run-pass/union/union-derive.rs
src/test/run-pass/union/union-drop-assign.rs
src/test/run-pass/union/union-drop.rs
src/test/run-pass/union/union-generic.rs
src/test/run-pass/union/union-macro.rs
src/test/run-pass/union/union-packed.rs
src/test/run-pass/union/union-pat-refutability.rs
src/test/run-pass/unique/unique-assign-drop.rs
src/test/run-pass/unique/unique-assign.rs
src/test/run-pass/unique/unique-cmp.rs
src/test/run-pass/unique/unique-containing-tag.rs
src/test/run-pass/unique/unique-create.rs
src/test/run-pass/unique/unique-decl.rs
src/test/run-pass/unique/unique-generic-assign.rs
src/test/run-pass/unique/unique-in-tag.rs
src/test/run-pass/unique/unique-match-discrim.rs
src/test/run-pass/unique/unique-move-temp.rs
src/test/run-pass/unique/unique-move.rs
src/test/run-pass/unique/unique-object-move.rs
src/test/run-pass/unique/unique-pat-2.rs
src/test/run-pass/unique/unique-pat-3.rs
src/test/run-pass/unique/unique-send-2.rs
src/test/run-pass/where-clauses/where-clause-method-substituion.rs
src/test/run-pass/where-clauses/where-clause-region-outlives.rs
src/test/run-pass/where-clauses/where-clauses-lifetimes.rs
src/test/run-pass/where-clauses/where-clauses-unboxed-closures.rs
src/test/run-pass/zero-sized/zero-sized-binary-heap-push.rs
src/test/run-pass/zero-sized/zero-sized-btreemap-insert.rs
src/test/run-pass/zero-sized/zero-sized-vec-push.rs

index c026a47c4f9ec03fb923fccfde61d69451fa3775..2bc8bf9796e829d301e4bef629ec918f6de500b5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(stable_features)]
 
 #![feature(const_indexing)]
index 3d2fc8195eb287cca5bf60075fdef2cc09230aff..998a1d9ee27857982f09577405406c3f3f8e9522 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // Checks that mutable static items can have mutable slices
 
index 7f54801910b73d0f5ec8ea1c624338f348080396..b1a55a04a2499c96c0844ae5d2c8b7330188aa63 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 
 pub fn main() {
     let x : &[isize] = &[1,2,3,4,5];
index 6c43d8832302845cff196efca3f2f08ab8ff793f..b85cb97b6bafdff9ee70ec784be5076eaec83af1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 // Test slicing sugar.
 
index dc7241a0e05c040a930ca4db33937a16e5b35a30..234d63672d943435734b9e63b889a840dbbddcf9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 
 
 pub fn main() {
index b5d1459300aeb2ba720b24fafd11fb932180ff70..aa7d96a5e5a2ae99830345596f56189ad9e6165a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 // pretty-expanded FIXME #23616
 
index e727e56c0f8e8e2f04250ab5ff85990754b0ac53..3d4a84aa5c3c0ccb1f021065ff58db6df8a7fb97 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 #![feature(slice_patterns)]
 
index eeff27753235e621f62b6d0d7f4cbe7f0be7c2ae..b425d759b03f495734ae1de57997a52aa62a7046 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 struct Foo;
 
index a8c7caa9361bdd6e20d33d9baea1ca2295f69e99..282e44ed42b69da7ead0aeb5c86cd47b1dda8421 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // aux-build:associated-types-cc-lib.rs
 
 // Test that we are able to reference cross-crate traits that employ
index e6175dc34ecc53f2e9838613c6b101319bf930e1..53d25b23b480a7019f3a614a03573492f9a016e8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Check that we do not report ambiguities when equivalent predicates
 // (modulo bound lifetime names) appears in the environment
 // twice. Issue #21965.
index 6836d2860b51913f663c06392c8dc30b29d4f7f7..b04da14795fcbebef77794a6bf395e2d860ac186 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Check that we do not report ambiguities when the same predicate
 // appears in the environment twice. Issue #21965.
 
index aca7674892586131bc7a2f9d1b15b47db6c79236..fd2fade2f887dd1ef889da9096cbd49c1745e727 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
+#![allow(unused_imports)]
 // Test how resolving a projection interacts with inference.  In this
 // case, we were eagerly unifying the type variable for the iterator
 // type with `I` from the where clause, ignoring the in-scope `impl`
index 259661dc058cd8acc27ecf6ce4cec54b7a35ef88..c5baec7be00df1b835dac721a368297200fb967a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Regression test for #21212: an overflow occurred during trait
 // checking where normalizing `Self::Input` led to normalizing the
 // where clauses in the environment which in turn required normalizing
index a877a3cfa9ddad2677bf60167eb4b7e83c76260c..af6f3da195e864c1cfe5811934a5a04b4f284227 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that we can resolve nested projection types. Issue #20666.
 
 // pretty-expanded FIXME #23616
index d989e08e8083c066db697b52fc3a143d8474383b..4dd810d10565d75cd9d6994435c444dfc9826e6d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that we normalize associated types that appear in a bound that
 // contains a binding. Issue #21664.
 
index 3d3540bbf72bfb3552e5a196bdb59a5eb573afc8..d534051267d918f233880e3788d0387b3ec15c18 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that we normalize associated types that appear in bounds; if
 // we didn't, the call to `self.split2()` fails to type check.
 
index 79d23c3999e6bcb60a441c2ce82be62ea8390a4c..6651a0b53ac3cc7d1db5755795258c7dd08f31a7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that we normalize associated types that appear in bounds; if
 // we didn't, the call to `self.split2()` fails to type check.
 
index 57c7f557ffaf147f19dd50641a2467bac6de1926..2f27cb1cd9ee9135d66ac87a84b0bce469908f5c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that we correctly handle projection bounds appearing in the
 // supertrait list (and in conjunction with overloaded operators). In
 // this case, the `Result=Self` binding in the supertrait listing of
index 8b98325598c8a8fc996841e3e38743f3f0247aef..c0844e9076e357d6c2133b3f01fb2a226a982179 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 // Corrected regression test for #20831. The original did not compile.
 // When fixed, it revealed another problem concerning projections that
 // appear in associated type bindings in object types, which were not
index 001faef7f4816b9184744e2bdea4e390538b23d9..23c9fb89f393a73d34cb15c74c054718e591cb61 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that we are handle to correctly handle a projection type
 // that appears in a supertrait bound. Issue #20559.
 
index c2379e0f07829c4030196600c715ae89edcf2f58..238f98086ceb1ba2a9b7dacb12a9bfcff92878da 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test a where clause that uses a non-normalized projection type.
 
 // pretty-expanded FIXME #23616
index b4038a21828c6adbac3eaf615cb84e478955d3fb..40864835d2e41400216212ffedebd2fadda8844f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #20582. This test caused an ICE related to
 // inconsistent region erasure in codegen.
 
index 3b148c5e1065468c1c4c43edc18b4bbf2f284286..c3c76eb1313a0d29e792844e57bd6abb11f43e2b 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
+#![allow(unused_imports)]
 // Test paths to associated types using the type-parameter-only sugar.
 
 use std::ops::Deref;
index 5f24a44c14b5c709c06a252e525f40246a18c3c1..5c03a6bbc027a4b3d7afbb1ea54e4f6a52bca1cb 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 // Test how resolving a projection interacts with inference.  In this
 // case, we were eagerly unifying the type variable for the iterator
 // type with `I` from the where clause, ignoring the in-scope `impl`
index 0ce3ef7fd7b3e9710dd866eae54694322e762def..8ab2bf2f9b8919a6bd7b6d3e21a3dd5e954b7cdd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct Foo {
index 24f037742708d3614033efbea2ce52222f8e4f3e..59fe52f7b596986d8e2d0b59910c2b9b6ca5fdad 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 #![allow(non_shorthand_field_patterns)]
 
 pub fn main() {
index c0e68f99ad0e70fb5fd147fef2aa5eba7a698704..678485b324d96ce4fb7c50d79da354959326070a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 enum color {
index d766feeb72c907962df9eb30d2efe0034e4f72eb..bc994f0f7fa5954c63e334903d79676b5ac9bb84 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that we do not leak when the arg pattern must drop part of the
 // argument (in this case, the `y` field).
 
index 9147bf14cadbcb0140200754da73575ab75db604..933865342c427118b7f303d85c4ac87993516e83 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 pub fn main() {
     let x = Some(3);
index 9e9fc8b4249092f72cdee6521016f8665d343e14..fd2764f84d7ae57340bc56279895eda5bba14bda 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn foo(_: &[&str]) {}
index c5111073ca8b2b5b41718fe4053f2f88f5e4af40..b6f4cb18d9aebe8eea9ba54c51db744010781d80 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // compile-flags: -g
 
 #[derive(PartialEq, Eq)]
index 8f9a8d2cfcca1cdb9ba99ceca883a2067effee7a..f25b423607bcead59355736eca70824bde2be946 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // n.b. This was only ever failing with optimization disabled.
 
 fn a() -> isize { match return 1 { 2 => 3, _ => panic!() } }
index 9ddf3b421d5e8867927913cc6ce94031e9275be9..bc364b04aecfc935dc2e2eae7ac8d63936a1b90a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // regression test for issue #5625
 
 
index 46d9c19bf849a774578f3ecfc5ed9a59f10d42c4..71cacc2f6bf62f9d3e931b098aff41123af0fa8c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E {
     Foo{f : isize},
index 94ea8edd70f41c21f269db3c187198cb32cb88a9..cd7cc87a40bf1ef5b4c42b80daee107564427da5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 fn foo<T>(y: Option<T>) {
     let mut x: isize;
     let mut rs: Vec<isize> = Vec::new();
index 550ace8b64958848a14cedc4fdd9d457f38fe4c7..9c4c36693b9c0288b916eec85d4f39e2d2fc3c37 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct X { x: isize }
index 06d7095a9248f006bd94f0658a13c4b8277a3f18..385713001a3fca72e38010bdf1bfa65fe90481ed 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index 2486fa782e0f9dcd01d70b18578bb861f644b38e..e42a24f20b941940782776776006fa737190a087 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 enum maybe<T> { nothing, just(T), }
index d15256612692b23c7f50e4379da97970e5964a8c..3522ba71b6abb9d8edc49fa03cb7cd84ae10acfa 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 
 // pretty-expanded FIXME #23616
index 06a011c0fa277df43b2ba7174faa4c036754ad3d..43a55da573bd0ddca90863dcccfcd431e94d4105 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 // pretty-expanded FIXME #23616
 #![allow(non_camel_case_types)]
 #![allow(unused_variables)]
index 0722a6f0b32ef380d0da0774e4bfcde11cc4f081..7b051cfa4359dfcde97af0132e0937c66f91b38e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Issue #53
 #![allow(non_camel_case_types)]
 
index aeeb7dd4bc9eda33e49c3bdeb283d6a4fca80055..ca7b7c70afbbb3ae9fe2ebeb0a644f6efc9c3a14 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 #![allow(non_camel_case_types)]
 
 
index 1e28b77f2ce0fb8266927fd04920557e95497ab2..e9f143cfbc96728971e3ce5e9dd6ab2f4d328607 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 #![allow(non_camel_case_types)]
 #![allow(non_shorthand_field_patterns)]
 
index 8456e63d4c7ba80c4aa5cb25615bf873d81b9724..61bb0e8a4689eea610bd0daeec226705fc431640 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct Foo { foo: bool, bar: Option<isize>, baz: isize }
index 5bf558a4871297e6a6fdddaa6e38617b1c2d8cab..96bdadc06247f5e5713a3a5838794c04fb02ed5f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // a bug was causing this to complain about leaked memory on exit
index 90ef3c2b7eafda5158349be24cbf72b5a7e77015..304a0323297e68b1f2edd74c584b896054c2ae02 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_unsafe)]
 // ignore-pretty issue #37199
 #![allow(while_true)]
 
index 1fc597b636ecfbfcdb9f6defbc5addf1c74af553..472045fcdb3f122a09b7f76cb797f836c5a8d5c2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index 8eb44fd76e1d28b118e151c4d9eca9bf06a9967c..2f8384f9e846ce5b26353c0e090b99da17137549 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
 #![allow(non_camel_case_types)]
 
 
index fa79ac84c865266ca82e59263b993b6c3bd9e9db..ad16027c34d2c11572d082123829f04db37806ca 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test taken from #45641 (https://github.com/rust-lang/rust/issues/45641)
 
 // revisions: ast mir
index 72634651d9593de40f20c0aaa004fb66a3517a3a..a3a6348292349f3259546a77c208b1637daa5b7f 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 // Test that freezing an `&mut` pointer while referent is
 // frozen is legal.
 //
index a3d6f129f183e1585d02e89941ff306a8c786d4b..782054bb1b15993e5c368b66b9002e94d6176bc6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 #![feature(box_syntax)]
index 4ec7e0a58983ea8205740ee28ddc05146481f9cb..3458ab91f3d4dedbd5832e51cc224fb997e17c60 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
index 3f81c2e5619e0035ce4c16ca9dd7ca8afad6ce63..ea47661a1fad3f9f09dbf1debc52bd0524eba32c 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(unconditional_recursion)]
 
 // Check that we do not ICE when compiling this
index 4650ce8d2c42f069c94e9b256425794612e25f94..c51a615c963385a9de82595039139397a084bea3 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test case from #39963.
 
 #![feature(nll)]
index 3b9c4aed03ec10c43ff0810ff4965a9f628b10a7..5a184fd0179852d213e3b69730d047dcd2d6e3dc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-pretty issue #37199
 
 fn match_ref(v: Option<isize>) -> isize {
index 809948d5423d693a24acfce2ce1a11c114838437..9bc2a64eea6014bb2b5bb8b03cc537b0effcd7fb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for issue #7740
 
 // pretty-expanded FIXME #23616
index cf7a976628e8df0db1d34aa853a5fbfee6f39ec4..78d25117ff2119f9a9f0e57a6563ae4bfdb38bed 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // This test verifies that casting from the same lifetime on a value
 // to the same lifetime on a trait succeeds. See issue #10766.
 
index f9b650e0e82808789cda98a3280a4d0329178001..e9d7f6f3eb3144491380f377cca035cb5254adee 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
index 8443d59e86977a0211937634c7c9cddf98be5429..8a7271c38ce242ef7839e25cbbbd84d4aa3d454d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 enum Foo {
index 102ca22f0bd7b0b2aafeada1bfaa875cbc3083a0..405cc402e5989dd35d3cd3d3f215ac3f70a91bc9 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 #![deny(non_snake_case)]
 #![feature(stmt_expr_attributes)]
 
index 203624624845b81d929cff276bfbc79fc23bd084..0328a62588c9aede017d8a0243c0425e7b9b2180 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 #![allow(non_camel_case_types)]
 #![allow(improper_ctypes)]
index c6b9e61dae1c5c72d25f3134e1eb19b966763747..9f3ef90f9d9158a5c5e573bb9e577694d9e09961 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 use std::rc::Rc;
index be5e55afbc57c11482c77db13123b092ca748295..4c6510f9b9b22c43ad195d4b828ad7428360ad29 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn negate(x: &isize) -> isize {
index f8849e6af866d1c9be5e11eaa5e22d6999788bc4..3d61db475da48df79181bbe66e6452611a2ba865 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn sum(x: &[isize]) -> isize {
index ab571a8b40dcde3066ab227ed0d52a676de23cfc..068b010da1ee1e3c5815c0e5e486b1e0142ac199 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 use std::rc::Rc;
index fa09b13bf67303868a2a7fdd694d8b583ab145ab..93bfdd2fdd218a545f86cb26813cbcc583cf23a3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // aux-build:coherence_lib.rs
 
 // pretty-expanded FIXME #23616
index 3ddeb58dddc805f46f820ac20e5c4a5a0f2cc2bf..8cbafdf717747f63edd5df720332537dc36c9563 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:coherence_lib.rs
 
 // pretty-expanded FIXME #23616
index de7cb7664b646c29c9c189ecfed48809f456e50a..b6915919acbbb0bbae02bf19038b60726961c571 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 pub fn main() {
index d446f0dca9ab521ce249abb26fa6a08d1f3c39cb..f56c827b55da82b05890651683564c8fbb1ea02d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:coherence_lib.rs
 
 // pretty-expanded FIXME #23616
index 38ad5b8115a7d3c15560ac6dbc2dda8c81c26fd4..16501553d9f58e615fb5ffbb274796f0fd038b29 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:coherence_lib.rs
 
 // pretty-expanded FIXME #23616
index ab04f946fa626f003c9ac68d8490bac7dfc8ba5a..f6d711bd6cd3fe6e8517fe730bff22313f170051 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // pretty-expanded FIXME #23616
 
 use std::fmt::Debug;
index 7984193862e44359f6c7df55269e53fb2f65802b..50b3500ad8df2f2544c71ffec21506dcb2d1f8ec 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #![feature(optin_builtin_traits)]
index c6903d911f981517f87e66e3b60b8500225d6cd7..f637ac64908843dba461c753fb6d4aeb610b9668 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that we are able to introduce a negative constraint that
 // `MyType: !MyTrait` along with other "fundamental" wrappers.
 
index 10875d5046ca68be37ac9303520f1037ea07998c..057da22e270d0074f9b85edd48c963a65f11203c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(deprecated)]
 
 use std::mem;
index ab452e4fe46895e23b4bd5611d3782c816bcc559..7a0d0781a1f92818773b32375b40c655faf7201a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // General test that function items in static blocks
 // can be generated with a macro.
 
index fe3483ae9f0d2953526191bd6e5d0d092eb763e7..83e50eba6dc6a626893bc7e09d0fb5497bcde713 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 
 mod foo {
     pub trait Value {
index a4ac766a740ff50f19641eea16cb71a663acff21..485b87b4604c6ebc08674111fe9b3894bd60d49f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Make sure const bounds work on things, and test that a few types
 // are const.
 
index 9656bc54eb24f4af7fdf696c0b240b79bb51307f..203ceaddfaac9d23bf9b53c8c83d809fdc6e35fa 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V, VV(isize) }
 static C: E = E::V;
index 1e418f66c13c475b2be919e4cde51df0e49c0a25..29fe20523f581067d2cd4b579d9eb81784142950 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V, VV(isize) }
 static C: E = E::V;
index 39602153c7928497321deaf4e145e7a29569a563..ea28ac3658739c20ddb7c539f684d35eff2fab39 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 enum A { A1, A2 }
index 78c784e4bb3f4fb44c221570ff11b595c1d739ed..bc27bff4b9a582178284f98f9e6488ce359a8124 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V0, V1(isize) }
 static C: &'static E = &E::V0;
index 4a4ad9d89e6b6c8eb698b2ae5d969f1aaee44bbe..01ac27b5113ad7c122990bc3f82a352c5d6a83c3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V16(u16), V32(u32) }
 struct S { a: E, b: u16, c: u16 }
index c37b06f83370e18090955155305a7e3db3ab5885..d4923238a7843f2f821710ecbfd0e9d70adcf677 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V0, V16(u16) }
 struct S { a: E, b: u16, c: u16 }
index a6bac3c9e7d3e68d9bfb9a6feed7ecae2b0573ce..17fec9391169caeee13d9f14c0d7ee8fcacc867c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E {
     S0 { s: String },
index 2f0dcdaf9b259a3137aed8a79d2c606fd679e28e..a318a16c325cdd81fc691797f900c7ec8492bd18 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V16(u16), V32(u32) }
 static C: (E, u16, u16) = (E::V16(0xDEAD), 0x600D, 0xBAD);
index 1db56e0e6f257c0ae7d687629c91ba1009242fad..916e5c3796bb4152982f08decf382bab68b16764 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V0, V16(u16) }
 static C: (E, u16, u16) = (E::V0, 0x600D, 0xBAD);
index f37ff4d9c9994be62515433eb0d4e57a3d64a70d..343c6014080419fdf1c4cce11af3ab5f11d50d43 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V16(u16), V32(u32) }
 struct S(E, u16, u16);
index 5d6a77dddb88e871a4cc1315a470510a914800c2..68bfdb56942e22ce13c5a14915f7ef1dd2b55d4d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E { V0, V16(u16) }
 struct S(E, u16, u16);
index 2074ee3e9081f26bc767e4b80c7382ac02de0045..c23440f991a8996621c06ddac12c1da954bfccfa 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // check for const_err regressions
 
 #![deny(const_err)]
index c0ba4404f00a1220da4884b78effb44435dbb881..639f13931144df89b1df5776d2d090aff0d3decd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 const x : [isize; 4] = [1,2,3,4];
index 897073cd62338a197926152c90afe1744676e773..78276f17e57da6120e48d309afd8a475a51e5cdb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(min_const_fn)]
 
 const fn add(x: usize, y: usize) -> usize {
index b520ebab17c2f3556b2475ffb6de7ae1b6668ae8..7c6b2df0cde947a0bb3f5c97d0f48d13b9347879 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test use of const fn from another crate without a feature gate.
 
 // aux-build:const_fn_lib.rs
index 3e26ea9dcae80c9aeb3e52dc7cd3fadd952954c1..83ebaff3249b48ec7ff0f1bfeee3d0d3095fcff6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 const ARR: [usize; 1] = [2];
 const ARR2: [i32; ARR[0]] = [5, 6];
 
index d1e359eab4e4f1385581792d9b0c6ccd3ef5b2bb..289717724c91ce21349b2fd903229536b46caccb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum Foo {
     Bar,
index 95e0a5a62e32267ec0fed5ea580b878b98dc7957..b0e91e616a08ca2a9d5c3efccf2f8ccfacff52e7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_patterns)]
 #![feature(min_const_fn)]
 
 #[derive(PartialEq, Eq)]
index 15f74d23b6dbf7746bedbe87ba4fb977e6ab2c9e..768aab29c1f09b222d990cef7121b6ee39a07fa4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 #![allow(overflowing_literals)]
 
index fdbebc479900e48a33582ec11cda5e1b3f296599..96db2c884310dfc55fa0ab2ec3405b3c0f29666d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 type Big = [u64; 8];
index 289c61ea9faa69b904dcf96ecb7a947038a6e719..6732e4f14c8801cea25fe61e8173a3884fc5c3ae 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(min_const_fn)]
 
 use std::mem;
index 59482811829300ee0922bc923b9bc1b9b9f2ea71..91ff3daa94fff4a4c7a255c8911875f8cd4e58ee 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 use std::{str, string};
 
 const A: [u8; 2] = ['h' as u8, 'i' as u8];
index ec77b59e09d02c1b17d7408ad7f2fc8402f09e2b..a968e8aa3972d467480a02f0a6625298d9088007 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 #![allow(non_upper_case_globals)]
 
index 6b7e4972536f4a6a78e3d83b60295096107f90f3..fddfedec393e5d897e8df1ba13d2fe70781bf7b6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Issue #24644 - block causes a &Trait -> &Trait coercion:
 trait Trait {}
 
index 6e05b0ac4d89df3cc7e0bf5d76f2426b5b6080b5..cb60b2fdf07697b4d454408d063fe4667ef6f7ff 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // A quick test of 'unsafe const fn' functionality
 
 #![feature(min_const_fn)]
index c21be4ce47c7283ff9295718a258b5385d2361a4..b921ce01cfd2edd82fc6adbd5c3aee947cb35694 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:pub_static_array.rs
 
 extern crate pub_static_array as array;
index 467ee2cedb9fe4eb7999c94be8f0388c1dbd92ea..70a6a052af9531d77c69414d1bc9ad47872b3d94 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:xcrate-trait-lifetime-param.rs
 
 // pretty-expanded FIXME #23616
index cead174392619dfa697f4b6c6a9416c0373d8639..835365820d7ff76f149aa0bbb66a1b5a41348388 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 trait Nat {
     const VALUE: usize;
index 09590d5f1977161c25fc70eb82a905c6615179d3..0fcf9a5acbdb192b07427da49ab0218b93babedf 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(const_let)]
 
index 5490bd4d3ad83a1ed8315fe0b6abfa01cc33ffd2..b7ed8af35d4c1de056bdba84d0a6e7f0255ae570 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(const_let)]
 
index 323232acc675f4e328faee0c4f7dcfd3155efd38..88f0d0714f9a1a66d08dbdaff8b85d61608b354a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // test that certain things are disallowed in constant functions
 
index 34b7b56f274a039ca2a37ee4ef7c795443948a5e..40fdcda355fad1309580fdf2d301488dd23840b2 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_unsafe)]
 
 // https://github.com/rust-lang/rust/issues/48279
 
index 21c4ec2c09ec3e91a6ad1d812193c43c57925715..54e0e83efed3a4d1b9817e19aee8ffffdfaecab1 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 
 #![feature(const_fn, const_let)]
 
index 6c829f142dd0ad24daadeeae04e5577726577deb..1c6d72d530f07be47006568531d7995cd25810f0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 // https://github.com/rust-lang/rust/issues/46114
 
index ea200ba738fb6db6d9948847036350d9654cf5a1..f79fbe72bdf97ace947bf9ee629e6fdcde8ee40f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 struct CustomAutoRooterVFTable {
index 2d3be810def9a84e798f9d554e53e9560130229f..916488fcbe9da85973422c38cf8fb4163c4c6922 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // test for issue #30244
 
 #[derive(Copy, Clone)]
index cf924e0ff5eddf08af322589d685ded96b09383f..09a0a6fdeae1f15c5bf62582c8f55cde6909eb23 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #[derive(Clone)]
index 2b1ace396a7401bc945751696f6d1815d8a1c5cd..74258411d7fd9c0e3d06a76b9ed2d58581b828b7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #[derive(Clone)]
index aec8a7075a51a5d5602d583159be3ea8d582f9f7..e149e0e1e0ea95bfc5cf48ac39d9284fe2f58122 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 #![allow(deprecated)]
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
index 33f98a74b142265d7756aa96a7d3e36f21a9c1fb..326a95bdf0271baa87b87d79de05daf2b55fb4e2 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(unused_imports)]
 // pretty-expanded FIXME #23616
 #![allow(deprecated)]
 
index 309cd5aed1db89cb6998be2b359be6f8eeac5f28..cf016f3e0c688cc7f8f84ef920570a11134c508c 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(unused_imports)]
 // pretty-expanded FIXME #23616
 #![allow(deprecated)]
 
index 3a1f40239c852d5242607211d97bc8b425f3038e..d5f2535cb706ba94cf0cc1723232906b02b5f02d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::fmt;
 
 #[derive(Debug)]
index f19b014067d614135bf88cc8e1a177923bf01b5a..000cbe9fa0908862aeade850abc4d171f25df9d6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Debug)]
 struct Unit;
 
index 445545aaa0f29fad611289c555dbfcbd80e0c6e6..a3d4e179731a7e952e7a464d5d2b44e29536a250 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(PartialEq, Debug)]
 enum Foo {
     Bar,
index 5b00f11a901b5da805e1c38538cb6ac48b98d32f..8afce9a9e47588a56545a64e467f4f009769f928 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(PartialEq, Debug)]
 enum Foo {
     Bar(isize, isize),
index fe2716396d8b249cea6561f846d840453b22abaa..be44fc4d057668fd889ca944ece85dd47ef2267c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Hash)]
 enum Foo {
     Bar(isize, char),
index 2178673cac81605a91447a91d8d07c0b3b32b7a2..17133f6967502e1d8b9af6b3b95931358727bfa5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #[derive(Hash)]
index 67a1472e88384ecbd88eebe1fe26a3595d77a523..babe99b3c56ec9a691aa233c150132eb2c89dc44 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(PartialEq, Debug)]
 enum S {
     X { x: isize, y: isize },
index 97ec423643c1f5a13ea395c1d39fc32b96baba61..b171c1c3a06dc9efee8e8d9b75886b3913fd1f34 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(non_upper_case_globals)]
 
 // Test that destructor on a struct runs successfully after the struct
index 4d3cf2bd05334612884e0015921593095707adf7..a34e922a60650b17ce9dd2edd4dc888ff429f873 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 // ignore-emscripten no threads support
 
 #![feature(box_syntax)]
index c09482a4540999cb04e0111362ac04d22c0bc4b3..fc1c0baf4b4b3247152bca8502499db584ec6a2b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct S<T> {
     x: T
 }
index 2e867ac0fc0949786a6fc48b6b381d5a724f4ff4..61ce68037ce5d395f293dea9452853139dd67f36 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct Foo {
     x: isize
 }
index 6fb0abd96439a167e19a6fec900a58168ea2ac70..6ff17a33d4a44b5c8dc4a8024259f3a9a32c2911 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 enum Foo { }
index de10c9f2403c8376415bf75ce7dfcfdfcb1f45d7..8fecaa2a109a2c7bd132310b6891b2399bde8d48 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 // revisions:lexical nll
 #![cfg_attr(nll, feature(nll))]
 
index abaaf7d701ea8cb0b2bb49591c19087c2229c7a7..a8fa202e3b5e0e0d486d3dcd5bad9e41d62997cf 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::mem::size_of;
 
 struct Test<T> {
index fb7b2bc8bf7f977b60ef03c6be34b810a3e39468..64ec31433561222c1c37e7721ba7bb63a48c0f15 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(stable_features)]
 // Test a very simple custom DST coercion.
 
index 21170403d43ced3c610f03914e257422a7890df1..10a59599b40e826cf8690931aef0cc2b5ffbaf0a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test coercions involving DST and/or raw pointers
 
 // pretty-expanded FIXME #23616
index 1537050593c43d34be85bc415c360a0eed802400..84f0233711090b1761d5f194566e54cacb7fb6ad 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct Foo<T: ?Sized> {
     a: u16,
     b: T
index 56323816b4c3e286f68788df22fcd9f25b97c282..7dd5c19379589228784909a83cb6bdd10bcfd911 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that overloaded index expressions with DST result types
 // work and don't ICE.
 
index c3168aaf869bc1cb2e1004017de3ed8bf22c9010..f468da4a449d730da5a645f0e9a2fad71904639d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 extern fn f() {
index e11e73a2b0fadbc4c2ee66ead9f32d29d535a9d1..28157c5a8d5e94b62b5ca9aeb05fce2c935f0460 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 #![feature(libc)]
index 1e564e668713151d3480e5a0f985f7dcffa87c94..ea18069fa32fcbb84ca8f6a0c8e3ed15fbb1461e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // This time we're testing repeatedly going up and down both stacks to
 // make sure the stack pointers are maintained properly in both
 // directions
index fcff3ed251eb498f92c0de38b5a4fe564b8a9c94..51b2498b6c76eb8c238e81959760c785d516b11f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 extern "C" {
index 8d4219ccf44e4337986a02934afd45d39372b406..6ca1815a1917e984b6b9be127410c64d56e59ca2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // compile-flags: --extern LooksLikeExternCrate=/path/to/nowhere
 
 mod m {
index efe55442e0b94c01eedddb661811e99d877e429b..955a756ebdc8ccd7a67f9bfa199791ca2bedddf1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that inherent impls can be defined for extern types.
 
 #![feature(extern_types)]
index 7905c7ba0028598808631e06b963536847ab0939..5110bd42690c8d5e1b8ffe0e1b383f294d230cf3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that pointers to extern types can be cast from/to usize,
 // despite being !Sized.
 
index 08fbadf3d2bd01c91580ef81a620b1ec383699d0..9a535fd1931b76ed7306d157906ba3713a35f1fb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that pointers and references to extern types are thin, ie they have the same size and
 // alignment as a pointer to ().
 
index b8eb4b6a98b3f5da83f5f7df05cb576dbee4189f..d427e66757327162363453e15dc5a4413f151edb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that traits can be implemented for extern types.
 
 #![feature(extern_types)]
index c77e9a209dd6fd5096a8d33f8676301cd03d55bc..8811d313994df6866e1d06576e6fdea752f3694d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // pretty-expanded FIXME #23616
 
 fn int_id(x: isize) -> isize { return x; }
index ade51c4abbc232d3466afce2102f9359bc4fb575..bcc5ad7b7ad7288c6e23a5330737d6f10877529f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum BogusOption<T> {
     None,
index dc03a500f8c49503b227d045f8dc815259b3bcfe..c91cd115dfb4c2e8d49f659ee31527e9d7d8902c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 #![feature(lang_items, start, alloc)]
 #![no_std]
 
index 831b23b03c32592b2c53d8bdf864fb2a252667d4..687253baa654405294262da2e2dee2ee76a52863 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 #![feature(label_break_value)]
 
 // Test control flow to follow label_break_value semantics
index fd0b234c7b32c71a3011243e00ffbc7e6b57fa55..57d846d6557b4e4053a036d08ebb8aaa6592f1c0 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 // pretty-expanded FIXME #23616
 
 #![allow(unreachable_code)]
index b5da1c1e22164c4962dc07b391eb741adc4d4af2..4b148eba9d9a36c12c7508421396f90361184db9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
index 9f23b4e93e68666e29f636ea387748a3004afcdb..2038df4e2a4d7c29f4ec0e9a17857efb6d73fe87 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 #![feature(never_type)]
 
 #[allow(unused)]
index 86ff4c05438787d05ff9925b45f9a8fc2e46b531..47e5e71c62368f36d67da40d29b9f0fcf6417deb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_parens)]
 // pretty-expanded FIXME #23616
 
 /* Make sure a loop{} can be the tailexpr in the body
index da0cf295ba0f68b4910e361ba8c8d8a742bf0799..218aea5ee1daa6d688ae0cc063bad299f1ce1305 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 
 
 pub fn main() {
index 802f7be543ac8bd438d11d62681284bed4ef3ac1..2cdf273f3e33a83c57b3d3e316315847cf130c1b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 #![allow(unused_variables)]
 
 pub fn main() {
index 61d537c692ceedd2b5daeb55a1e89f5a14cb70b3..6b7b6d619deec3102df07f7cbb13f11967c96d9a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 mod foo {
index 307e6b182e7a47024ad205e3d452ea67a75e9c6b..bd6c8e6b53d60ddbdb950092c127cadaec1e427e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-wasm32-bare no libc to test ffi with
 // pretty-expanded FIXME #23616
 
index a58b9ba567b6ceda75eb1003dd7fe014987633f7..af71c95dc676a877b81b17d02aabd7387a5b6e00 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 fn with_closure<A, F>(_: F)
     where F: FnOnce(Vec<A>, A)
 {
index 3304b2e2600d62faf622afd2aa10b9d1c2d6df78..2ed3663bb57853e651843dac4dd2745e59670629 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 struct UsizeRef<'a> {
     a: &'a usize
 }
index 52e0e56026bb1a5a28c99a43359e60ae249861eb..95a9438300d928e93293d47c69b168c551783b4e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
index e2e2b3251779eff5feffeedf15c3ed265bfe2e69..747afc1330167d4c6ff1fe22c7e7d0daa968d1b0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Ensure that we deduce expected argument types when a `fn()` type is expected (#41755)
 
 fn foo(f: fn(Vec<u32>) -> usize) { }
index 5845af6b60d4021d7eb585c1164a07930388dfb7..166f05368be6d7e3ea4dac827b0514d968f629db 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 #![allow(non_camel_case_types)]
 
index 0c032bd79fd7a4988c14234ff4c07dd7277d8969..02b05513ad7dbdc6707d03f9e149fbc0d8326618 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test explicit coercions from a fn item type to a fn pointer type.
 
 
index 3b0cd1ec1e58f4322d35c7fd6bafb6763072d06e..ad931a836b8f5106744f34f1bebed2ee27e3fa5d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test implicit coercions from a fn item type to a fn pointer type.
 
 // pretty-expanded FIXME #23616
index 0b8604f66f9b23419d243dff3355f99210e96cea..95592993cb61aceaa73a55fa2f197a5931f815be 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(stable_features)]
 
 // Tests parallel codegen - this can fail if the symbol for the anonymous
index 9ed65a0eee06d537e1516373de717f0ad9c41758..ff4d3e881f04ca346a6196883cbcc65626ce0c5c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 #![feature(generators)]
 
index 10d8bb8c9a7ef731a103422b41449430329696c7..25230df1749c7324dd4347b7e150d7b64b73b649 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(generators)]
 
index 81a5f571202f3723db0296a6d0ff5bd29b8b8adf..655ed20ac1f10218b63a5879bc044e156e1be643 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_unsafe)]
 
 #![feature(generators)]
 
index 3048b1225d3182c6b60527ef1c1567696536e702..d74885495abb0859eff4b0b38c3109409258da92 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // Test that a borrow that occurs after a yield in the same
 // argument list is not treated as live across the yield by
index 62d3a59ab7889e493095038f7cf7015c1045ac2a..82804b253a7a4268cb7a62882564db2b89075b3a 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(dead_code)]
 
 // revisions:lexical nll
 //[nll]compile-flags: -Z disable-nll-user-type-assert
index ae26ea1b155fa5b8c94f113cb38d6c71c9bbb603..4cb663bc9eeb536119e0f27f8ef57d3881c11fff 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 
 fn id<T>(x: T) -> T { return x; }
 
index 7f0bfe8ba3148f7a4de2beb395dc43e69f33ce10..798d5dcee2ed7a4c92127823fe4ecb026dda629b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 #![allow(non_camel_case_types)]
 
 enum foo<T> { arm(T), }
index 54a006a163e5a37697140dbca1d7f24ac3379bf2..bc7af903b321d4ae42cdc1beb97eaf0f593ab74a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 518480301b95af8ac4da88c2a0be374b9745f9d6..ccea523c69cd9e081f4817c6b2877fe7422fa269 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 
 // pretty-expanded FIXME #23616
index c21a0be3d39cbc94b215d8c80f3888e07fa5601f..182f516a3c8ad4119737076f996e88348ad958b4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 struct Triple<T> { x: T, y: T, z: T }
index 641912269a164602d380c835ecc9c356f6615adc..7d13e64de2fa8bac89a2a0d4971aa42aea21db39 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test that we handle binder levels in object types correctly.
 // Initially, the reference to `'tcx` in the object type
 // `&Typer<'tcx>` was getting an incorrect binder level, yielding
index 19c7c8c489ae04ccd51cefc374f03c7bf024b4f0..8856c08bee724957632454acd29b8d4ef22c3343 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait Typer<'tcx> {
index 32abdde39ab36964b52c59f1bcc9a23307bbfbb0..337935ad7f093fc49308d0fea16125335661d02d 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 // Test that `F : Fn(isize) -> isize + Send` is interpreted as two
index 5d29115d35e7e82b63569ec20a6512bd8f0c9442..4b85b2b4077d74d47a65e7054021bdbd7c69da45 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 // Test that `Fn(isize) -> isize + 'static` parses as `(Fn(isize) -> isize) +
index 3f940cd4cd787657b83af2ad807651ce9c107ead..cbdead794a99cfe22bafab7c72a69f2d03a22444 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // A basic test of using a higher-ranked trait bound.
 
 // pretty-expanded FIXME #23616
index 2274fdc5684a779d615aee6b2985745927bd7d38..c9c3dd33136808d5affbdfa8f82b29ce5a802bc8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that `&PrinterSupport`, which is really short for `&'a
 // PrinterSupport<'b>`, gets properly expanded when it appears in a
 // closure type. This used to result in messed up De Bruijn indices.
index f36533629cdb43ab7a3f7c6dbe61a870c98d43d5..1d54594964c8932d207baeef8672100c07058fb8 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test what happens when a HR obligation is applied to an impl with
 // "outlives" bounds. Currently we're pretty conservative here; this
 // will probably improve in time.
index bbb46d85d18d968127a988f7e65a632e229bfafe..8c3e8d221f34a3b26356571bbb0b4577e090fc1c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 
 mod x {
     pub fn g() -> usize {14}
index d68809a1c6e626b3409c4425aaf2d89488b3a046..892be9695cc17e9d0fe966f9d02b108a3ca44709 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
+
 // Test that labels injected by macros do not break hygiene.  This
 // checks cases where the macros invocations are under the rhs of a
 // let statement.
index d96b99746a74a3ad0ee61dcadad61e3e75a9755c..e31c1484399fcc663f95bcc9c969338647eef243 100644 (file)
@@ -1,5 +1,5 @@
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:23:9
+  --> $DIR/hygienic-labels-in-let.rs:25:9
    |
 LL |         'x: loop { $e }
    |         ^^ lifetime 'x already in scope
@@ -11,7 +11,7 @@ LL |             loop_x!(break 'x);
    |             ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:55:9
+  --> $DIR/hygienic-labels-in-let.rs:57:9
    |
 LL |         'x: loop {
    |         -- first declared here
@@ -20,7 +20,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:55:9
+  --> $DIR/hygienic-labels-in-let.rs:57:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -29,7 +29,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:23:9
+  --> $DIR/hygienic-labels-in-let.rs:25:9
    |
 LL |         'x: loop { $e }
    |         ^^ lifetime 'x already in scope
@@ -41,7 +41,7 @@ LL |             loop_x!(break 'x);
    |             ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:23:9
+  --> $DIR/hygienic-labels-in-let.rs:25:9
    |
 LL |         'x: loop { $e }
    |         ^^
@@ -53,7 +53,7 @@ LL |             loop_x!(break 'x);
    |             ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:23:9
+  --> $DIR/hygienic-labels-in-let.rs:25:9
    |
 LL |         'x: loop { $e }
    |         ^^ lifetime 'x already in scope
@@ -65,7 +65,7 @@ LL |             loop_x!(break 'x);
    |             ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:65:9
+  --> $DIR/hygienic-labels-in-let.rs:67:9
    |
 LL |         'x: loop {
    |         -- first declared here
@@ -74,7 +74,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:65:9
+  --> $DIR/hygienic-labels-in-let.rs:67:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -83,7 +83,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:65:9
+  --> $DIR/hygienic-labels-in-let.rs:67:9
    |
 LL |         'x: for _ in 0..1 {
    |         -- first declared here
@@ -92,7 +92,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:65:9
+  --> $DIR/hygienic-labels-in-let.rs:67:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -101,7 +101,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:30:9
+  --> $DIR/hygienic-labels-in-let.rs:32:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         ^^ lifetime 'x already in scope
@@ -113,7 +113,7 @@ LL |             while_true!(break 'x);
    |             ---------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:30:9
+  --> $DIR/hygienic-labels-in-let.rs:32:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -125,7 +125,7 @@ LL |             while_true!(break 'x);
    |             ---------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:30:9
+  --> $DIR/hygienic-labels-in-let.rs:32:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         ^^ lifetime 'x already in scope
@@ -137,7 +137,7 @@ LL |             while_true!(break 'x);
    |             ---------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:30:9
+  --> $DIR/hygienic-labels-in-let.rs:32:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -149,7 +149,7 @@ LL |             while_true!(break 'x);
    |             ---------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:30:9
+  --> $DIR/hygienic-labels-in-let.rs:32:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         ^^ lifetime 'x already in scope
@@ -161,7 +161,7 @@ LL |             while_true!(break 'x);
    |             ---------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:75:9
+  --> $DIR/hygienic-labels-in-let.rs:77:9
    |
 LL |         'x: loop {
    |         -- first declared here
@@ -170,7 +170,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:75:9
+  --> $DIR/hygienic-labels-in-let.rs:77:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -179,7 +179,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:75:9
+  --> $DIR/hygienic-labels-in-let.rs:77:9
    |
 LL |         'x: for _ in 0..1 {
    |         -- first declared here
@@ -188,7 +188,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:75:9
+  --> $DIR/hygienic-labels-in-let.rs:77:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -197,7 +197,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:75:9
+  --> $DIR/hygienic-labels-in-let.rs:77:9
    |
 LL |         'x: for _ in 0..1 {
    |         -- first declared here
@@ -206,7 +206,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:75:9
+  --> $DIR/hygienic-labels-in-let.rs:77:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         -- first declared here
@@ -215,7 +215,7 @@ LL |         'x: for _ in 0..1 {
    |         ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:37:9
+  --> $DIR/hygienic-labels-in-let.rs:39:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
@@ -227,7 +227,7 @@ LL |             run_once!(continue 'x);
    |             ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:37:9
+  --> $DIR/hygienic-labels-in-let.rs:39:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -239,7 +239,7 @@ LL |             run_once!(continue 'x);
    |             ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:37:9
+  --> $DIR/hygienic-labels-in-let.rs:39:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
@@ -251,7 +251,7 @@ LL |             run_once!(continue 'x);
    |             ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:37:9
+  --> $DIR/hygienic-labels-in-let.rs:39:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -263,7 +263,7 @@ LL |             run_once!(continue 'x);
    |             ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:37:9
+  --> $DIR/hygienic-labels-in-let.rs:39:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
@@ -275,7 +275,7 @@ LL |             run_once!(continue 'x);
    |             ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:37:9
+  --> $DIR/hygienic-labels-in-let.rs:39:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         -- first declared here
@@ -287,7 +287,7 @@ LL |             run_once!(continue 'x);
    |             ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels-in-let.rs:37:9
+  --> $DIR/hygienic-labels-in-let.rs:39:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
index 723ffb30b7f80c983b4c7294189abd1a529ba19f..e69f9cd1a86cd3cd4ede21f8d60110eae4a4f496 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // Test that labels injected by macros do not break hygiene.
 
 // Issue #24278: The label/lifetime shadowing checker from #24162
index 45c0cacde9a0c95a22640502d0defc8750284d21..7bd2886159e981234d5871a33e6071731171e0cc 100644 (file)
@@ -1,5 +1,5 @@
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:21:9
+  --> $DIR/hygienic-labels.rs:22:9
    |
 LL |         'x: loop { $e }
    |         ^^ lifetime 'x already in scope
@@ -11,7 +11,7 @@ LL |         loop_x!(break 'x);
    |         ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:46:5
+  --> $DIR/hygienic-labels.rs:47:5
    |
 LL |     'x: for _ in 0..1 {
    |     -- first declared here
@@ -20,7 +20,7 @@ LL |     'x: loop {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:46:5
+  --> $DIR/hygienic-labels.rs:47:5
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -29,7 +29,7 @@ LL |     'x: loop {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:21:9
+  --> $DIR/hygienic-labels.rs:22:9
    |
 LL |         'x: loop { $e }
    |         ^^ lifetime 'x already in scope
@@ -41,7 +41,7 @@ LL |         loop_x!(break 'x);
    |         ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:21:9
+  --> $DIR/hygienic-labels.rs:22:9
    |
 LL |         'x: loop { $e }
    |         ^^
@@ -53,7 +53,7 @@ LL |         loop_x!(break 'x);
    |         ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:21:9
+  --> $DIR/hygienic-labels.rs:22:9
    |
 LL |         'x: loop { $e }
    |         ^^ lifetime 'x already in scope
@@ -65,7 +65,7 @@ LL |         loop_x!(break 'x);
    |         ------------------ in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:52:5
+  --> $DIR/hygienic-labels.rs:53:5
    |
 LL |     'x: for _ in 0..1 {
    |     -- first declared here
@@ -74,7 +74,7 @@ LL |     'x: while 1 + 1 == 2 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:52:5
+  --> $DIR/hygienic-labels.rs:53:5
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -83,7 +83,7 @@ LL |     'x: while 1 + 1 == 2 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:52:5
+  --> $DIR/hygienic-labels.rs:53:5
    |
 LL |     'x: loop {
    |     -- first declared here
@@ -92,7 +92,7 @@ LL |     'x: while 1 + 1 == 2 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:52:5
+  --> $DIR/hygienic-labels.rs:53:5
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -101,7 +101,7 @@ LL |     'x: while 1 + 1 == 2 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:35:9
+  --> $DIR/hygienic-labels.rs:36:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         ^^ lifetime 'x already in scope
@@ -113,7 +113,7 @@ LL |         while_x!(break 'x);
    |         ------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:35:9
+  --> $DIR/hygienic-labels.rs:36:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -125,7 +125,7 @@ LL |         while_x!(break 'x);
    |         ------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:35:9
+  --> $DIR/hygienic-labels.rs:36:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         ^^ lifetime 'x already in scope
@@ -137,7 +137,7 @@ LL |         while_x!(break 'x);
    |         ------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:35:9
+  --> $DIR/hygienic-labels.rs:36:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -149,7 +149,7 @@ LL |         while_x!(break 'x);
    |         ------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:35:9
+  --> $DIR/hygienic-labels.rs:36:9
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         ^^ lifetime 'x already in scope
@@ -160,7 +160,7 @@ LL |         while_x!(break 'x);
    |         ------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:57:5
+  --> $DIR/hygienic-labels.rs:58:5
    |
 LL |     'x: for _ in 0..1 {
    |     -- first declared here
@@ -169,7 +169,7 @@ LL |     'x: for _ in 0..1 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:57:5
+  --> $DIR/hygienic-labels.rs:58:5
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -178,7 +178,7 @@ LL |     'x: for _ in 0..1 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:57:5
+  --> $DIR/hygienic-labels.rs:58:5
    |
 LL |     'x: loop {
    |     -- first declared here
@@ -187,7 +187,7 @@ LL |     'x: for _ in 0..1 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:57:5
+  --> $DIR/hygienic-labels.rs:58:5
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -196,7 +196,7 @@ LL |     'x: for _ in 0..1 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:57:5
+  --> $DIR/hygienic-labels.rs:58:5
    |
 LL |     'x: while 1 + 1 == 2 {
    |     -- first declared here
@@ -205,7 +205,7 @@ LL |     'x: for _ in 0..1 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:57:5
+  --> $DIR/hygienic-labels.rs:58:5
    |
 LL |         'x: while 1 + 1 == 2 { $e }
    |         -- first declared here
@@ -214,7 +214,7 @@ LL |     'x: for _ in 0..1 {
    |     ^^ lifetime 'x already in scope
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:28:9
+  --> $DIR/hygienic-labels.rs:29:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
@@ -226,7 +226,7 @@ LL |         run_once!(continue 'x);
    |         ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:28:9
+  --> $DIR/hygienic-labels.rs:29:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -238,7 +238,7 @@ LL |         run_once!(continue 'x);
    |         ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:28:9
+  --> $DIR/hygienic-labels.rs:29:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
@@ -250,7 +250,7 @@ LL |         run_once!(continue 'x);
    |         ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:28:9
+  --> $DIR/hygienic-labels.rs:29:9
    |
 LL |         'x: loop { $e }
    |         -- first declared here
@@ -262,7 +262,7 @@ LL |         run_once!(continue 'x);
    |         ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:28:9
+  --> $DIR/hygienic-labels.rs:29:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
@@ -274,7 +274,7 @@ LL |         run_once!(continue 'x);
    |         ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:28:9
+  --> $DIR/hygienic-labels.rs:29:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
@@ -286,7 +286,7 @@ LL |         run_once!(continue 'x);
    |         ----------------------- in this macro invocation
 
 warning: label name `'x` shadows a label name that is already in scope
-  --> $DIR/hygienic-labels.rs:28:9
+  --> $DIR/hygienic-labels.rs:29:9
    |
 LL |         'x: for _ in 0..1 { $e }
    |         ^^ lifetime 'x already in scope
index 879cd851434d9f3f8072eb88541c01a34b900626..db9e0de2e9a536621da401999fa230f827e6b72c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 #![feature(decl_macro)]
 
 pub macro create_struct($a:ident) {
index d0845b5802bc581d980c690575b83080884d2182..72370396ebbac04b3cba9d65954d54764e7289c5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-pretty pretty-printing is unhygienic
 
 // aux-build:legacy_interaction.rs
index f721ace0afe8e94af7e5218bd5ab193ee2818036..3bb081181ffd086b59e8eee4d86cf41eb4a7503a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 fn foo<T>(t: T) -> impl Into<[T; { const FOO: usize = 1; FOO }]> {
     [t]
index f72fb1f0b135fcab178fa16e55474c834219e76a..731a716d4a5b5f94584e3dd7f234b37602c28117 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use module_of_many_things::*;
 use dug::too::greedily::and::too::deep::*;
 
index b1f40d749178b8a16d90664ab5474a1c32bf9899..c4e50c172645d08f9cfb4a3c9fcecbd94a5a6934 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 // This should resolve fine. Prior to fix, the last import
 // was being tried too early, and marked as unrsolved before
 // the glob import had a chance to be resolved.
index ceb662c6e3d00dd118385ab50a7670a5d71b132c..5768029ef8cd49fd6d1a771b4d054ae358962ad9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 mod a {
     pub mod b {
         pub mod c {
index 8d4757f0a477edee16a2a515e2f3e8f579302fb1..082e8321e18a6e879abd50d7e87ffe8437a8cfb4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 use foo::{x, y as fooy};
 use Maybe::{Yes as MaybeYes};
 
index 5b04daeb33202ba855619a8b7d9da1913a930310..0f8088c8969fc8509791668f254a3377e9742dac 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_unsafe)]
+#![allow(unreachable_code)]
 // ignore-emscripten no threads support
 #![allow(stable_features)]
 
index bd286bca93848106636106d2da3bb56dd235fb33..109663ac8aea758ce2116d694b52b2aa42317bdc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 unsafe extern fn foo() {}
index b89ecb0b9df4206c78fe6dc3b4f7e5cc202fab92..2f7cbcde803b889704b6a764954c1425b2556a8c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue-10028.rs
 
 // pretty-expanded FIXME #23616
index 7ed8f5be936adb123951a567b731a795a0946927..940b478c615d0a8f198f1515d5da8c4d5b72fd23 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 enum StdioContainer {
index 65c88f445c29dea13ad00f342f9af7d1dbf7a37d..8042797f778ec87431ff6bb9b09621849f7286e9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 struct A { foo: isize }
 struct B { a: isize, b: isize, c: isize }
index f0b3b276fcf34901bf025a5e63843db17e44f9d6..5b7bfe1a02ec98aadba4bb116773717237b6c6f9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Debug)]
 enum Foo<'s> {
     V(&'s str)
index 9f03cd34114f830b818611adabab3027c8381ecb..705cc3fad132c0817c230b894b7347225bceb3ae 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 extern "Rust" fn foo() {}
index 3967ee4458382ae193d8f249e7e3db64c254a354..bd5d7059c2134f24bf2ff36ab4876c94a72c8d79 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 struct DroppableStruct;
index 3cfbd703954067e5cc86f27d575cbc1e03160458..6dfa0ecc2918c511c70d0981c59b09012f146897 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 
 // pretty-expanded FIXME #23616
 
index f27b4576d033c8a5ffb22785a6cac9d4fa69aaf0..df9dc0b63d9ca5dcfc1bc299ec67a4d94b35fdab 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub mod two_tuple {
index 76a047e2a207649cc160d942e88d21fa946a0880..50c87575773e970d600c2f10de73ed68322defed 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // compile-flags: --cfg foo
 
 // pretty-expanded FIXME #23616
index ee1711b13333cef38f4434a906b5c8f014c65fac..4283ae0fafbb4141fcee3993e12185b45e1349dd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Issue #1112
 // Alignment of interior pointers to dynamic-size types
 
index 763e538fb8f5b1fc0e5d82ab24ecc847dc232d7c..ba17a02dd38756b2b6212f2aa45739d265f3fe33 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // #11612
 // We weren't updating the auto adjustments with all the resolved
 // type information after type check.
index a4d4feb4f8ac43419cfd2c5113f4da0fd1173060..d9bc76f9b033820299ae103cb21dfbcf847f5156 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 
 #![allow(dead_code)]
 
index ffd6f1dfb55b133827e5e1903ee08a97fc8e695c..7f1669abe1cd251c157818f5e921713989f8acba 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-pretty issue #37199
 
 // Don't panic on blocks without results
index be20f7a0feca03aea0f3e960614dcc067515e037..b3543f726daa7a9ecb8bf3fa51b70606cdf1e54d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct A {
index a7bc8718003e17fd8f7b6ca8df5429ff7e65d214..f9d48b8c835a5a5cdbd23a2c811d9b26b4c29bb5 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 // ignore-wasm32-bare no libc to test ffi with
 
index dd9c9abaf65fcfa1777c2d80465a1d0b1cc9f122..d9b563be2c0c2d0e4b2812c313c2faa8c2840c54 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // aux-build:issue_12612_1.rs
 // aux-build:issue_12612_2.rs
 
index f75090c4223a708e359c7959b62b092bcb632a2a..efcc05cc19641f2209f31cc42bd319fcb33fbe55 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub struct Foo;
index d4db01a5e582941bf8d86f38094a6a21fe01e198..4070464ba3a832f1ee26102494641e35df7ba629 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 use std::collections::HashMap;
index 4aa2c49b428a12d8e930973c3696d9f716ac695d..0d5a7e07138750195afdf047109112cb433b18fc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 // Test that when instantiating trait default methods, typeck handles
 // lifetime parameters defined on the method bound correctly.
 
index 634cbbb0417d406d573d0b615c4520d6a54a30c9..1c119bb634df4f75c9fcfbc0233c7a0b5c748270 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // defining static with struct that contains enum
 // with &'static str variant used to cause ICE
 
index 117cb0bbe16e63aa30450b016f4ed3e202f2386d..a2a30b26d47d56c063956993c8122fc87cd439c8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 // ignore-cloudabi no processes
 // ignore-emscripten no processes
 
index 3b9fdf84b5d0fa374a6c24ab2ed262893a3c0935..a8ca38838d19e441f4c64c251418646dd65cb800 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 struct Foo<'a> {
index 553f3a7fec96712e79faaf79875785fe69d88eda..0750a4c89593665a2a745e4e68d6c24424ef4b74 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 // This test may not always fail, but it can be flaky if the race it used to
index 894cd7ac0117ec9a39458786469906324603e26e..a189b8f1688bb126b410c68f8895eed4dc46b6f2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // aux-build:issue13507.rs
 
 extern crate issue13507;
index 0b27e2fab31ea6c255916eddb38e3e6bf5cc4d4c..7b335d31238f1bac634b01b2289f454e978c9c71 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 mod u8 {
index 2d6b78c6b07add79f8618152ad4b382b2617cc12..e759ef1c5b411db47f0e6920cfead36c180e6a67 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 struct Foo<'a> {
index eaa17499850c418f301ebb884502f61746a13fca..98a86748851a863d9745c9495c2b4a9abaf446a0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct TestStruct {
index 87413be05e57c0175f50ffe388f7dd87469b6a9c..4f0ab3c55f24cf9bd8d952a5ca0d8f32b88871e3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 const JSVAL_TAG_CLEAR: u32 = 0xFFFFFF80;
index d50dc64f4374a2218304de62307625b0bf0ac779..fe54c1cf05c8c09673eb77f7bc57f69bd440d138 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // pretty-expanded FIXME #23616
 
 #[macro_use] extern crate std as std2;
index 27eb0ebcbfe9e3c9ea79de5a683999b4c20038f2..cfd037e31f685a3a119e7acc0e72b6a3f4734776 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 // ignore-cloudabi no processes
 // ignore-emscripten no processes
 
index fb344c3b4b781dcb995322b5c39dbbecb60b6225..7cdc54fa59f590fbc0cb31a03b62939d59d52fce 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 #![allow(non_snake_case)]
 #![allow(unused_variables)]
index c01ffb7d6b14101febc0c5bd270420de8f331c99..69291afb92f24eed9edb12b10c9f6beb9f3f9096 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 trait SomeTrait {}
 struct Meow;
 impl SomeTrait for Meow {}
index 4e278c66886be81825dd78bd1be95ba8d4ba34e3..94da75cdc05f846ba18152880e5cae53067c247c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum X {
     Foo(usize),
index a9768661256f63400287f1efee0a8b016871026e..dd02e513287aaca6e676df1e40f63b3b1d014242 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait Matcher {
index 863dde1fc5e567c3d68c026c570cd159d917d24e..c8cbc120251f51f9902f5cc81ae719fdd610b658 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 enum Two { A, B}
 impl Drop for Two {
     fn drop(&mut self) {
index 25e163e3958a5557ae8d94a8ec90e85292a94c9a..375cb5e14e55c714d68a7502ffccc2745dcf1434 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(path_statements)]
 // pretty-expanded FIXME #23616
 
 macro_rules! inner {
index b715a388d105fe2805a1db11b868205bcdbd30ae..263f9b0bd4b2acf2831cfc9a90b995e9f6052a6e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 // pretty-expanded FIXME #23616
index de4de14ca33c12236590a26632c068bb343bd32a..48bcf2183f09aa44fdf2302618c94f85082b6b83 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
 // ignore-windows
 // ignore-wasm32-bare no libs to link
 
index 7b4d1e3e3e2b754ee67b98045d2d1d9c2a667495..dedc66336e7be821ede4e3671b5a0595f0a4e1b8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #[derive(Clone)]
index c2f5f9f2e60adae164cbd18354e0a11b59d192b4..b5a0715bae6b4e30d2b475ad1c8134f1d774707e 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 fn main() {
index 9e95b173e8947e6f4a61d507b6034a4e115acb19..5ac47bd68bcf17fd357fa4be20a6de08d3944563 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct A<'a> {
     a: &'a i32,
     b: &'a i32,
index f241efa74d3e65a3eb805966604d9eae004a320c..a8aba30a37f41ede0b7e22a2998e253ca2646a5d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 #![feature(box_syntax)]
 
 #[derive(PartialEq, Debug)]
index 97f4c0095ec882021300a3d29b776c63530c0a06..9c5bea1a53ecf4866c74e94f624ca9d153df8ac7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum NestedEnum {
     First,
index 5a0ea2adc639feb374056962d41b77f9a4e88b06..cabed87edda2f71f690539cc09af1c41b3ad1738 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct Empty;
index 2b78582b577d3dd4b1af04c2afb4284983a23450..10c9f316b8903ba66ecb899be1bf0974bafcccb4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn main() {
index 50009f4f6ea17fdb80be87635e9bc60416f9319b..795b1efeeebaa99745fde7c665fd2e0451c4b1cb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // ignore-emscripten no threads support
 
 use std::thread;
index cdbc3daf4ab12c987865096bb3692a0fb25344fc..d9583809a89fcec4245bf071c9d8bbb04a8ef705 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait MatrixRow { fn dummy(&self) { }}
 
index 6b437eb65aac72b5c772189326b5469e7256337d..61b828142109be02c0e8896b59c9f8ee050e714c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // compile-flags:--test
 
 mod tests {
index 5346851f0f28137e95fb8ad416ea82bcf3bcaaae..bc4cbcbd329445d02bcdc9eb1c8bb96b0623a364 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
+#![allow(unused_assignments)]
 #[derive(Debug)]
 enum Foo {
     Bar(u32, u32),
index 08f696cfcf4b1ee662ca170342b101b46ef04da2..fdb49c689843064cb8cf3c1b52f5dd7bb02f1a71 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct Parser<'a, I, O> {
     parse: Box<FnMut(I) -> Result<O, String> + 'a>
 }
index bafeb9716c51637eedf379ba87d2f771b818c9c2..3f1d07b88ec2e147b0562f3b5e054b095be09637 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 pub fn main() {
index 498abc1c73375d36f798deb27c8de73b274f509c..dab126ccc42938a88d525cd78c8caa3fdcb4b6b2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // `#[cfg]` on struct field permits empty unusable struct
 
 struct S {
index 433fd4c1af3f6bbaa1bb44486a1b7a9604f26119..90b71d5dfe28d8240fdb1f8456b6328267249788 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index 063cf7b0a03b966e5b28a99c46cf3e81dfdfc29f..1f45e01203f7877261f8d865a26f030689317022 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 static X2: u64 = !0 as u16 as u64;
 static Y2: u64 = !0 as u32 as u64;
index 8da01966959e0b624a7a0adecd29c6b0400f31ef..fafcdde2bbe3e4be2569dc5948681855d03f070d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 // ignore-cloudabi no std::fs
 
index dc2848cc1908763c67d373b98d2342fa86ad43b8..c27eb74c90f587ec726432d07282fcdb71fa1be2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 struct Leak<'a> {
     dropped: &'a mut bool
 }
index aea2b67a92fbb194c4f797020a4c9602e460b323..b1a77d73aa473948d2037302fcff337688beacc0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 #[allow(dead_code)]
 fn check(a: &str) {
     let x = a as *const str;
index 505aefdd1c7c1c3391b926eac853e08ded9f9582..51f617340da5364b9da8abe41a630e35704bd416 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct S { a: usize }
 
 static A: S = S { a: 3 };
index 6f8fbbd9f789f5b197960f2dba384086a1445603..16f9cea82fa10db51008bff949779a4e5624b330 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct A;
 impl Drop for A {
     fn drop(&mut self) {}
index 2ac6a9013585049b814ac2bd589a6f6719d27d8a..f6a2f0997531ea59ca7268b9bf167c2ec2222547 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
+#![allow(unused_imports)]
 // pretty-expanded FIXME #23616
 
 use std::marker;
index c332d0b586d3108bf06bdde1d7f03eed00e9d434..33e69824dfcbc9edccdf2c45a412c7e593c1865e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue-17718-aux.rs
 
 extern crate issue_17718_aux as other;
index e69d8fabe8684bc6a0af5c65bfe9e16b209ebbb5..c0ab42b4264b4433e1ae4d5f08636f80f0757d2a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait Person {
index 7e88068419e8d786c3cf7ab2fe417395e914f5de..0cdefc290a860245423b675a39c8987bb50acadf 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #17746
 
 fn main() {}
index 8c3f6b9358887ad34821e0f91d54f0cc61476897..7b8fa866fffd17476510776db66f610b2ab52967 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(non_upper_case_globals)]
 
 const count : usize = 2 as usize;
index ccea8846b086f042a442305dbbef9c72f1170280..ed5acf5e1bb822fbab303b34cfbc5a1c60acb3fb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait Aaa { fn dummy(&self) { } }
index 0f96035b2745d9e22c137b620744bdee9b5fb53c..ddeac242f78ecb4d109b7496a3f58f0132541fd9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 use std::marker::PhantomData;
 
 fn main() {
index 2a86611a196d8729661d3a558f1c46d999133697..9b76c9fca2aedd1501b74976a31711a53ab460ce 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that we can parse where clauses on various forms of tuple
 // structs.
 
index 152cba82222c5ec3cb118ba41a36942b9f79a158..9118ad28493d51425992ad033f16b7d69490f963 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 // These crossed imports should resolve fine, and not block on
 // each other and be reported as unresolved.
 
index d6733050216d248634c8c5eec2ea807514f16405..6d80e2664dc60fec9caaa79a29e1f09dd15ca5ea 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // pretty-expanded FIXME #23616
 
 fn main() {
index 27c225a1916a08d08c90f7a9c55e3fedb66383c2..d37b6df6e34a8949ddf3be1e6ebf59aeec633d76 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // Issue #1821 - Don't recurse trying to typecheck this
index 279ee89a4920b16b81fabd7d9256c97076bea89c..a3e7552691bf967bc35d1def67da933981024bf5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that wrapping an unsized struct in an enum which gets optimised does
 // not ICE.
 
index 0758ceb0954ee0b3db1586b76cffe2c0988573c9..09f3e451ad134ead3b97c9ac367e7e044dabcd0d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that methods in trait impls should override default methods.
 
 trait T {
index cf4a0ddea98759c8f96077b5fe0142486a20a67c..f27d8032dd6600060a8f1a65c0271cf0d11e8dae 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index f586552dcb363282c42fd23a7cc95b88f8cb182f..8ed663cbbd6f453e418a8a346c8633bc642b9297 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Eq, PartialEq, PartialOrd, Ord)]
 enum Test<'a> {
     Int(&'a isize),
index 08a39350c578fc5cb93f8aa5938a943a6622ae7a..4f771752c865a00d4cdb2b73e7eeb5c923f7c8a7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub trait Borrow<Borrowed: ?Sized> {
index 422a0f7d7d65eedb081604b33a24e7bc8c45221d..691d41174303f7dd0010031ee04d484e3992a127 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 pub trait Foo : Send { }
 
 pub struct MyFoo {
index 4407cbf501e667cb2925f5d0b96756f2b143a53a..e4460d33b9e0fd25676b78bae82eab604d1e8a4b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // check that we handle recursive arrays correctly in `type_of`
 
 struct Loopy {
index eb3c265617ba7b7683d7123b3f054cda8ef5026e..350c17415dacb07ccec6deae69a2f0881e8f416d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct Str([u8]);
index d3415c34791ac6c01fcf61a29bb0e5796e113403..1ad7f524be4625021d746d0a7b84acda08fb82fe 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // regression test for #19097
 
 struct Foo<T>(T);
index eecc9db486e2446d16f89b3c404e1d4a93ff63c2..c26dca255b99ec2393f8b904b648cc4c86431ecf 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 #![deny(unused_qualifications)]
 
 use self::A::B;
index 3290b179864e343091d08270aa052c923b1cf0f9..9826b1b08d25b8fd600758877a3ccb1331dfc946 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 fn foo<T, F: FnOnce(T) -> T>(f: F) {}
index 4999ee1287c455f0b70bb5146b39df1a2e6a2cef..8d43ece368024149c90af62ea12db6799e6c2830 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 trait Trait<Input> {
index 53531fcad87577098285ecc47b16535909b21433..62c39d0ff3d749c1a504618bf1bebc57af989078 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // aux-build:issue-19340-1.rs
 
 // pretty-expanded FIXME #23616
index a1b68e87626a20ff1604aa089057376509734b67..3f86c7c9180bd4ba1fa3e9259c6618efc98f5611 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 enum Homura {
index 3a5ce65aef8ebcea8ea83c3221c3f9658962a1fa..3f8aad4e0b148e355370a9fffa52e4ff9f436be6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 use std::any::TypeId;
 use std::rc::Rc;
 
index 5fb209b2dfe40d195d929e682d894fff06dcd103..efdcce17f5f7c777b02442ab611a6b092075d567 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(path_statements)]
+#![allow(unused_variables)]
 // Regression test for issue #19499. Due to incorrect caching of trait
 // results for closures with upvars whose types were not fully
 // computed, this rather bizarre little program (along with many more
index 12804983ee45b25699020bb429b283a5b2dc07f6..604e3d608741aa6d47057ae0304537f6e942d9b4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait PoolManager {
index 801d5947f92c65f2ae59feb3eb379f6db5826597..5784886e94c955032d254aece0b66d1f36e484ec 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait PoolManager {
index fa837f57edefadacc6375c5896068f6ccc2d47ee..f5b1697528f044c8ae36c66734b3879e161f4d93 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that `<Type as Trait>::Output` and `Self::Output` are accepted as type annotations in let
 // bindings
 
index 0f42d8b1caae574b4ac4a5e9989cc94e8effcec9..16ac2babd42753f0fc7755ce6f74b9dc51e846c0 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 struct Foo;
 
 impl Foo {
index 9e6561369b8b8bdae5b65ec87ac8d8df5047b796..bc87372e14feaf2d46e1f824f1024ae2bc6704eb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #![feature(link_llvm_intrinsics)]
index 62506e1c49dff04671106fe7c38657126675fb94..0173b0b2f9cf724908921b05b6b44cb812c224ab 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Regression test for Issue #20343.
 
 // pretty-expanded FIXME #23616
index 21cd3a55268abd5857c6ffa7f7d44313235f4737..02d444f414c103197dd1f2313cc8a5d66b2a737e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue_20389.rs
 
 // pretty-expanded FIXME #23616
index 2e2449933c08100e68ce7bf12e17d62fffaacdf7..f42ba1ff3036573796d7450c89baab8f5f69ae2b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait Trait {
index b03c489e25211495a189b39f20afbd9f30b4cc72..86d94ad85b381651b8de0f6a79366ff1fe29c607 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
+#![allow(unused_imports)]
 #![allow(non_upper_case_globals)]
 #![allow(non_camel_case_types)]
 
index 41cc94909a0078b44e2250ddab26fbb3e9956874..e00ddf4905fd81c2085284c352f22c4648dafabd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 use std::thread;
 
 fn _foo() {
index c28d2123669279bfe89ac367c7d0657981dbbaab..fa72cf3e76f4d1fef0d71be3f1a647d430660ba7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 type MyType<'a, T> = &'a T;
 
 // combine lifetime bounds and type arguments in usual way
index 12e9b481dc1f8ed1f2a4a99a639e4aac4e38512b..6e30c13204008698489ba87a16157898065773dc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // test that autoderef of a type like this does not
 // cause compiler to loop.  Note that no instances
 // of such a type could ever be constructed.
index 728e2be3d23bf98c98efccf31f757d7c3e4322b1..c53565262e81e27716950b0e9a05cff61f70f3ee 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 #![allow(stable_features)]
 
 // A reduced version of the rustbook ice. The problem this encountered
index 0afcc1bd96618f6d45b4b0962ce79f463a34a7f0..df85f615cd2a546b87956321f73b961053b9d419 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait T0 {
index 4b25d4f05deff0787370cbce9b32468aa47296f7..489b87ce90f8dbeee25b426bd05348a0da671385 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait T0 {
index e3dc286df3470fa7ca048638b6cdc1cdb40a3854..e2200c0d39bbe1660dc3eab02b9ee816d68ab7d6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 fn main() {
     let mut shrinker: Box<Iterator<Item=i32>> = Box::new(vec![1].into_iter());
     println!("{:?}", shrinker.next());
index f96d2db30d3ab6174c2c90bfd991a5b6905244ce..20357ecd63a8240269a8ccfc185ecd2f3350724f 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 #![feature(box_patterns)]
index 318abfe691edd5945ef9af3ebc360bddd2610464..e2ad0ba5bb2db8873d14cef95a9889a76231d543 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(core_intrinsics)]
 
 struct NT(str);
index 3af5e5323a650b45232296e355c9591213d229f9..f387b93d8f92a512e9d8c3fa91520817eb28b473 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 trait Trait<'a> {
     type A;
     type B;
index 6bc14489d959411e36601c1c147791137d9c6781..234d70e4dd012c3b176f28fc21d4c01c0eacc4ac 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for issue #21245. Check that we are able to infer
 // the types in these examples correctly. It used to be that
 // insufficient type propagation caused the type of the iterator to be
index 210ba0711b407b366768243be8680e8d28437f68..041547a5728fe151c94973c3ba4cb637f175b19d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #[derive(Hash)]
index 883d6d215bd2920bdd86e5f85610de21312417c7..cdfdad3848d5c6cdc1512da7db0d82e55757c32d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // pretty-expanded FIXME #23616
 
 use m::{START, END};
index faf9b42a0e8b77d740ff4a7f9e377d2304979572..5e5768937113458b6dcadd3e8172c3d61e00796c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // Issue #21486: Make sure that all structures are dropped, even when
 // created via FRU and control-flow breaks in the middle of
 // construction.
index 71eb229ef00b41d34b35ce0b992306aedd9bc1b6..33d79b6616296cd4ae1c4893804001c7af28ad5f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that the requirement (in `Bar`) that `T::Bar : 'static` does
 // not wind up propagating to `T`.
 
index 6b876df9d04b5f488f9c7ed3a8ae838776d578c3..4e90ed7c4473e9720174d8f12425c590f0b8df30 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 extern crate core;
index e7289e5d162c48d46fe9f29a29cbbe29513891f4..16db178452e7baf2060f6bd09d21fe862dbf9060 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 
 struct Index;
 
index 49369759929d126f58274065fd493c6938ca0ea5..ffdff9aa2bafc5034341552e97fd92270e4b6ca4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #21726: an issue arose around the rules for
 // subtyping of projection types that resulted in an unconstrained
 // region, yielding region inference failures.
index 1e577ba7303df57ca9128f270a23ba9e36467060..90a496617b0cef715418dbef074372ecbd4f4168 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 // pretty-expanded FIXME #23616
index 2d7a7382f0b41c1fa38807f9394231caffa07369..c77407a6bb1f50c5c9d6d1a5ac17e511cbc881a6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 #![allow(non_upper_case_globals)]
 
 // pretty-expanded FIXME #23616
index 9283cd93fa3782186ec4a1a98af27078a2036727..42cd3c0488bbf66572ef642ba7ec7717b013aba1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 pub fn main() {
     let mut x = 0;
 
index 6689b6081ec4688fa19725800339be096444ba64..0b58591cd62bcf56525f25696fbc39f98e49ff10 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 // This used to cause an ICE because the retslot for the "return" had the wrong type
index 87b4bc1734b5e18a33564b3f0ca69f14dd19b021..b93f1f354c61a6c580de33e838544ace6d5599e6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(type_alias_bounds)]
 
 type Foo<T> where T: Copy = Box<T>;
index 28aaae1d8cc7fc2d41378c1eedba7831e5fd8528..4f165877afc0991bb9b06406447adfec2269255a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Parsing patterns with paths with type parameters (issue #22544)
 
 use std::default::Default;
index 774416c92519bb031d95f82ae239d30017ba82af..c78f308f6b89aff17043c02eef1ac0b3dbd05912 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 // ignore-cloudabi no std::fs
 
index 9254a0807942ff18f88ad30d71795324782e5ae9..9b9918d8aadbc75e5173269559c4ba77fae2a433 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // Test transitive analysis for associated types. Collected types
 // should be normalized and new obligations generated.
 
index af95b6e1d1a29287bbc18ae06bad6c0a24eb2930..8849b505e4b0144faa9350cd60a417626c84bb30 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 use std::collections::HashMap;
 use std::collections::hash_map::Entry::Vacant;
 
index cc92f080936873f400cbb8e3a2a15ad561425741..cdbd1deb001314a508e372bfda90af975b6dc759 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test transitive analysis for associated types. Collected types
 // should be normalized and new obligations generated.
 
index 77d1d6e0aa24b91c9f43f1111f1273855b27f866..feb752411b13ed2c900ed968d1de7080a40e2226 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait Send {
index 8cfd941cca8deb183fe3920284e8ae21cd82b060..493ff6f01cbe7abf6350bcaef413c7f5af3b0aa9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index 33a033ef37fe949acea10d20ab6c59c9ada25f82..9975f8a5aa725e605dfbce2f712b26cb35b9877f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // Testing that the B's are resolved
index fb44e2d927022eac989e7c697db7952e9d464160..771f62a6323f48e6de3bef607f3a74ffb0d4fe0f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait Inner {
     type T;
 }
index 9f39b30f1078135d6e5538e842bd56e248eb518c..1b31516be17f83baaa5ea223c7c505ab15eafb01 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::marker::PhantomData;
 
 pub struct UnionedKeys<'a,K>
index 42ccf5995ac1b8cd4be04ba0645e446663c07d69..0699dc13c153ac06cfbbc45733a3d71aa28955f5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // Test for an ICE that occurred when a default method implementation
 // was applied to a type that did not meet the prerequisites. The
 // problem occurred specifically because normalizing
index a6e06050c0e44ecd3f9939df275fb64ca898ce0a..54f66d34f391cdd98128b3aa81c1afadb71fc299 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![feature(box_syntax)]
 
 struct Node<T: ?Sized>(T);
index a33d1039267b037dab167c21d866c97e810a9914..747fc172023ba6a2cfa55d26e467283ba3aa188c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 fn gimme_a_raw_pointer<T>(_: *const T) { }
 
 fn test<T>(t: T) { }
index eeb7db925dae30ad0cda7471f9e546a19080fd8a..b790f721a3bc588d434f5793f200415a5655d7d6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 use std::fmt;
 use std::{i8, i16, i32, i64, isize};
 use std::{u8, u16, u32, u64, usize};
index 6d8cacf8b290afd3c750e3a967081be75e2a20b2..06350a80730addd163ca84dcc10cb3a832120e23 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #24085. Errors were occurring in region
 // inference due to the requirement that `'a:b'`, which was getting
 // incorrectly codegened in connection with the closure below.
index 632afc006887ddd9f4fd8f2acd5be20de18d1d2c..1d86c4201b51d4708db1ecea57c09bad835cbd09 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 pub struct Registry<'a> {
     listener: &'a mut (),
 }
index 1ac5d1237a7d41431f4ce97a4b2f37319856e688..8bb88be7c5625d2b443a559a791e20b4b65b0b20 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Copy,Clone)]
 struct Functions {
     a: fn(u32) -> u32,
index f4b0e6814e8348299072766a05364ff2283f887b..753905c2b2f6c57bb73be37ce580e3ba7118e2f9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 fn main() {
     return ();
 
index a4f22e3c79a2a04cf6fca12e83bfa196b1ef8ca6..7fdd6f8ee8be306fe643e70073e8bd72058861a8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
 // compile-flags:--cfg set1
 
 #![cfg_attr(set1, feature(custom_attribute))]
index 144861dc94ef8a56e2bd90d9ef823519b2719749..b9e773a5d4fd09ddce9fe11caecba880e53b823b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 1d368e908ed556d27857019e78af23445a3b895f..95782e83ffb6be48ab73a547a0b3bdf73b75b5b9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 316773e89157800283b4cee1ee5d2fbfea9d72f3..d2104cacd0c29f62a1ed61c8ad70cb200683dd4c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 use std::slice::Iter;
 use std::io::{Error, ErrorKind, Result};
 use std::vec::*;
index 1c655f87435fc11ebd151a4d3359d65511b5a3d8..8a1b6e45e7297896d268d6ba52b8fff75c4d6b47 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct Pair { f: isize, g: isize }
index ee0ee1060767a373df3d03c0892f476b02b76c08..6bd1757f64cea8e7b2c9213f288a1f77f3b6b03f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index d06f99910a04b75f73748a32b9dc39a8cb1ab853..938a8e290444b4198835c02816a0e424348ac2b2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index edfa369ed462e66962d844415b381de7ba5fc561..04a28fb8f0a297aea83c9e998a3f970e3f1287f5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 const x: &'static Fn() = &|| println!("ICE here");
index 279a88653772db2d86f96864e4cc917e32038493..4551b38b5cd8966f46bacf37cae2bf068ccde99c 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![feature(associated_type_defaults)]
 
 use std::marker::PhantomData;
index df1fe399a4a8f8aa6bc7d853f59c92a5190c2f31..4e7b6242712b9bb43275312a12aa7cc654a96d72 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Debug)]
 struct Row<T>([T]);
 
index 37ce124e13211ae86258da327ccaee8466eff6d9..0f078b214ed9d272a0262b69593dd3b0e2029568 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // aux-build:issue-25467.rs
 
 pub type Issue25467BarT = ();
index 0552e97e642a6960217f4fc9345150ebc71db54c..afe837509b95c7f88386061e508c3ba53386fd56 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 // pretty-expanded FIXME #23616
index 24f44f2ecba9ff3025ac5a78b4eed02557e2f701..ccb438a8c23fab34c71ee84b8c68a651e094d184 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 struct Foo<'r>(&'r mut i32);
 
 impl<'r> Drop for Foo<'r> {
index 86fe6c08147c32cbb776f78f877a678348976fca..174fc832598113358079e10a1a25742a9b7e6beb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 pub trait Parameters { type SelfRef; }
 
 struct RP<'a> { _marker: std::marker::PhantomData<&'a ()> }
index cf8753119bf9d061a0ed9b9543420a69b102f0b0..c71af4660fb03892d78703d28e5fcf33f90cde01 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+
 fn main() {
     macro_rules! f {
         () => { 0 + 0 }
index 0c6bc7c4885f91637493d048b36c93e69b434358..cc7f7cdbab1f77965bcf07c02aa26af509589182 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 
index 4b66aa48a5bd18a299df9bc5caeb1ecf720aa00a..99fd1a727f55c371db0ceeb438ecc1e45dc6c42c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Tests that impls are allowed to have looser, more permissive bounds
 // than the traits require.
 
index e015acfdc2a1e12f1bdf2a1f8dd2bf8c25aaf584..ce96c3dd5a2a3b6a78ab84de0cc8b44d6934d235 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::ops::{Deref, DerefMut};
 
 struct Foo;
index c02c4e7b9d6250f644f159266dcd5010a6354e7b..410339d37f1a506691ede38698249762948090c4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 #[derive(Copy, Clone)]
index c900fa7b42cd940ce47942dcedfcacff0cd43497..94d8adfa323103328f5dca77a9ed3f67aef8e3a2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn f() {
index c557c0698d5c949f4ca404732b72a43369c5ea4e..803ef06eba7bd5fb300cfcbdfed40c03bc24c9cd 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 #![allow(non_snake_case)]
 
 // ignore-pretty issue #37195
index 005491ecc589d2e56789c73ddffb64d37ed524ef..c2f1c6cb1bff0d5ffe19f7a731099d9b1adfc972 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_imports)]
 #![allow(non_snake_case)]
 
 mod A {
index e6d0ef14431337c08bc0e6f8c63536630efc50b2..03430e1ac687ddce6ea4c6cc6c4f6d5c1733bddc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 pub struct Foo {
     x: isize,
     y: isize
index 594edb3fd71541abe0107e668950d9d9babbfa62..adf3179da4fc2c54207ffb71a7a537a1e135340b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[repr(packed)]
 pub struct Good {
     data: &'static u32,
index 5fccdb0f1371796f75fbbebdf71951584ada69ae..d760e8eef6820e1a6aa042847c94188aca26df65 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 // pretty-expanded FIXME #23616
index 1c5e7c7333d36cd9c280f90c77c6c0d305247006..4faf9216fcbeff944329de7e6b85feecc87712b8 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_unsafe)]
+#![allow(unused_imports)]
 #![allow(non_camel_case_types)]
 
 pub type Task = isize;
index 5e65a8084c34907c787bf86487e5a2da8e2979ed..07eb34e32ce0c22adbf850fffb7333fde39f7a2f 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 use std::fmt;
 struct NoisyDrop<T: fmt::Debug>(T);
 impl<T: fmt::Debug> Drop for NoisyDrop<T> {
index e3b1618c625efc9eca64fb2a6b19a6f0fd1b0514..68be155634997232c6a09b7f5a41a914bb08a9a0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index b22051700d8c07b35461834e3679cc0f98867e16..8e5459ad91542c3929c579147196322a882b51d9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 9d84e2dccbcf22986d4019ce39d459396c70d400..db7b46a4dc5afb6d8c0eef7417d660b72c384805 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 // pretty-expanded FIXME #23616
index 81b1a2518fc2fa9316aa9b1b99c24bb869a66a30..7dcbe21b7e4ae83c7cc5fd504afb08ff26383ec4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 fn main() {
index a16bfeb8daad02ec924767fa802d51538796502c..82d178835e2d22339228feee6879fb5ed6419d1e 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 // Test that a field can have the same name in different variants
 // of an enum
 
index a080627c686828ea1cd346c9048e5e09aa811bfe..3e64d78ba02746c4d13c922a786eb3ede629a8ea 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Minimized version of issue-2804.rs. Both check that callee IDs don't
 // clobber the previous node ID in a macro expr
 
index bc615c8f7e3fa9d67e17641cec56f471b769d2f2..bd5129a8ae4d9248acc2c12614b326d3a66663c8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::rc::Rc;
 
 fn test1() -> Rc<for<'a> Fn(&'a usize) + 'static> {
index 978d2136334f4feab4c5e4b9a38de2f4b96d1d44..c571c4e23ce845a1841a1221959480ef7e3f5df7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(improper_ctypes)]
 
 // ignore-wasm32-bare no libc to test ffi with
index 39e4a23e3cdd59d05d4bf7b2b3165fb5a87aa833..1dda7212952318e3c585a81590e23f89a88bcf9d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(min_const_fn)]
 
 fn main() {}
index e52126e16f8d0f5d177423cf6d1d4eff9e93858c..9a1be5fef32d8e5b242dac900448c53939d74aca 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 use std::mem;
 
index 51dbf58a77d3f070352b7371e882b15518c5c3f5..9f4b2cffbbb1383c9131b6b2ff949e3131d82a06 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Debug)]
 struct Message<'a, P: 'a = &'a [u8]> {
     header: &'a [u8],
index 2ee4446820bd61c2a99f313cc384b5400b2b3d9c..3148e61827ff09483fe95249119a626ccec82081 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // This test ensures that each pointer type `P<X>` is covariant in `X`.
 
 use std::rc::Rc;
index dcb8515c7768866e9dec9e462c8b4874a1495c51..ab40c2e0bbec5228df8b6d3f2f31b93f5f194617 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
+#![allow(unused_mut)]
 #![allow(non_camel_case_types)]
 
 // Map representation
index f0025f25557c19b8155afa0d1bdf9bf7b7dc3a2b..84dbb40ea87f9a6d320501bd1654a74c82e23682 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 fn t1() -> u32 {
     let x;
     x = if true { [1, 2, 3] } else { [2, 3, 4] }[0];
index 06570f41a533c69842cf9aa247a928eb9ec93704..1eab5a7bbdad18196f8b6741984f5c21347ba713 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 fn ret() -> u32 {
index 6797dbc31c1c2f14a098e70bcb86485f78f5d03e..9f2a0d6bc99b9c121544507f5ac1945e4960df81 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct S([u8; { struct Z; 0 }]);
 
 fn main() {}
index d2af83251819171a3d8735eed38cd8864dd66247..6656914e41910accb7af171848671dd478db03cf 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![feature(box_syntax)]
 
index 1c8fc88f8f2bb1ff4bc1797190d055fe66f8c3d2..0aa4e6355d1ee1e7f60225e7468484f443a831b4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 macro_rules! m(
     ($e1:expr => $e2:expr) => ({ $e1 })
 );
index 67725b02ded943da3825d4d09e84050ff923a4a6..f3890f8d52159df20deaa584183d01d567ba1d1f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
 // aux-build:issue-29485.rs
 // ignore-emscripten no threads
 
index 9d5a12dadbea880ce51f5c6da2d571ca8aedfabc..75c01b2589e15c79c8de1fc3d482f10253b19485 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // check that we don't accidentally capture upvars just because their name
 // occurs in a path
 
index b0959e830093e7ad45865db54b5367fc6853b32a..3854ad38bdcd2b5871ab8d7c2bee9372e6401903 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #29740. Inefficient MIR matching algorithms
 // generated way too much code for this sort of case, leading to OOM.
 #![allow(non_snake_case)]
index 4eab938609fcc7bfbad7f450ff088e86a2d78f70..863d9e74abb284d1c895e6990d3ef4c2f083d0d1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(min_const_fn)]
 struct A {
     field: usize,
index bb94d4f8517a5a8035f82e9c3f6c23d766d1320a..dfbdf1fdeb4dfd1cc897fb823abb5a6325f25fde 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // More thorough regression test for Issues #30018 and #30822. This
 // attempts to explore different ways that array element construction
 // (for both scratch arrays and non-scratch ones) interacts with
index ab2d5a5ae8896e69a8f71675e1cb2754c9f3f634..8ae7b64182d1b58c882e1d2c736939a297b0594d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 #![allow(non_camel_case_types)]
 
index f95d442c1b982ecb95e008cb1d3007a2c7fb8828..a3140f6ded2c54a0a4ee2b9403cf89dad1a549f4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 #![deny(unused_variables)]
 
 fn main() {
index 6c2d3899bf37f71eeaa1ab501fc003762c407e11..612fd69a4998bde8368ecf2bc7df2392ad6d6af1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 type Connection = Box<FnMut(Vec<u8>) + 'static>;
index 9d70cf90d1cd220daf8d671653b39cc4b14a146c..60b2405009296d8440dd2047cb609c16387fc3d1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![feature(box_syntax)]
 
index 6b31a1ac996c59570cd58a57449ea98c2a738eff..82d0d5b5ffbb615d49012b98d41603ea782a520d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 pub struct Struct<K: 'static> {
     pub field: K,
 }
index 324aec23ab08067994cfc4fbf5e7e9297259cae7..4eb3378a089eed13afe8e77a5733d15805caf81f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 // pretty-expanded FIXME #23616
 
index 50aefb7d870f8ad03b19338fbe1427076fc953ff..f3995511b0fc9d014ef6d9c252b8899cb98d8204 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait Make {
     type Out;
 
index db866b86a2a927cd3a54f9ad27ea7c716e31de9a..7386303bef5d743bf398f182febe65cd8fe745f7 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Various scenarios in which `pub` is required in blocks
 
 struct S;
index 7fccf09bdaafc5d51209dd27baf08e27872d249f..a04b7af813be22dbdfdfa1ad5ae9b2a00f95ff02 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Tests that binary operators allow subtyping on both the LHS and RHS,
 // and as such do not introduce unnecessarily strict lifetime constraints.
 
index 2d32a08e37bae6d50b1e2190677813cbd4ec53f1..3183df6a4f55d70ae9416a941e9a6ca969bcca8f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 // pretty-expanded FIXME #23616
 
index e99c53caa87dda54a0529521b9e1acbe85bae8dd..31f44ffa34db45c0280c1c7d8e9aa6b974b18ad0 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 const A: [u32; 1] = [0];
 
 fn test() {
index 17938a38474dcd7e09b4e71ce539c27ea6ee5b3e..8f1665ba20813c76091c7d16b91ef45f4d309a05 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 use std::marker::PhantomData;
 
 struct TheType<T> {
index e7e8908303298710f25755d334c5546722bc02e7..519db8a05af2147384ad1cec8162dd61b0bc1fe5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 pub fn main() {
     let x = (0, 2);
 
index 7102bb469e4e8ddd67ba6db739c28cf15f2964d6..500de0f6c263f15b453561bec9a50b9481c7fbe1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 struct trie_node {
index df2f5e3e7a0c57d94cd092e04da9940811ff6e4b..e521b594aa239400482587d784b8545aef70dabd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Issue 33903:
 // Built-in indexing should be used even when the index is not
 // trivially an integer
index 1e914eaee581393a8fd7b19593b413109387ce3c..cf1b00226617252b9e2223e2c2e49cb33071d0e0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 // rustc --test ignores2.rs && ./ignores2
 
index ff4642e47ebe48e2378d5728e997934e8a224061..374dda0903305969d858d5f123bd724df6dbe2a4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 #![allow(non_camel_case_types)]
 #![feature(box_syntax)]
index 382212a19082c608561a4d221e72a60f940d22ab..d4758b80e979369ac8105ebe0bb469b30d7761be 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // #34751 ICE: 'rustc' panicked at 'assertion failed: !substs.has_regions_escaping_depth(0)'
 
 #[allow(dead_code)]
index 0a6a25c41d5e5bd29f97586755d0dfea1b0e7a9b..fe257d57e9800555394d8b49c2b005d7a0b4ad91 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 const C: *const u8 = &0;
 
 fn foo(x: *const u8) {
index ea9172ae48375f02b563641cd2b8cb9460b8f063..8de25508687348c3f4a4a6dfe6f4eec437f5a688 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // This test case exposes conditions where the encoding of a trait object type
 // with projection predicates would differ between this crate and the upstream
 // crate, because the predicates were encoded in different order within each
index 9c39941232f3fdaf3e7eb7028a3dfa1462e2f14a..13d099081b05f330ee04cdf28b76ffcc55534979 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #35546. Check that we are able to codegen
 // this. Before we had problems because of the drop glue signature
 // around dropping a trait object (specifically, when dropping the
index b71d94adfeba95db6e0d0cd76caa628452e6134e..8b2cc17796fa1db902795e35a28e5ef1dcdc1e8a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #[derive(Debug)]
 enum Token {
index 1083aa808cb2a3e63bb520a681defb3d36f8f0e0..c9d9f9598f2ea1114becbede39bf852eb7981054 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 trait Foo {
     type bar;
     fn bar();
index cd31abaca3567416b74413782b2351feae686638..13d74be89d8ed167b63b3441957758834f001761 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 #![allow(non_snake_case)]
 
 // ASCII art shape renderer.  Demonstrates traits, impls, operator overloading,
index 62bd6aa37fd26fb0c65b51be570697ebfe784160..32b73de11189f903515f212dba7a1d1da57750c0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::mem;
 
 struct Foo<T: ?Sized> {
index a654a813edf0d5eafa2ef51f4e3ecb3ee4240ea2..54a36c6f1b33d956d898cfcfbfacf61dc038624d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 use std::ops::Deref;
 
 fn main() {
index e11d35669f5f771a2bc99152c139a54fa9a1ce1f..4042bd197949827d9dda7273f0930ac6150d8c93 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait DeclarationParser {
     type Declaration;
 }
index 384964188db6fecf60da581acfc1c31f03ceac97..abbaf630e78e0eefc2e77975d2c8b2a6fdec9331 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
+#![allow(unused_mut)]
 use std::thread;
 use std::sync::mpsc::Sender;
 
index 1e626e2e9c1f32f5cdcdedc5dbe1208089b2133d..63b27406198cd912f71f4a444b184bf5bf678056 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(improper_ctypes)]
 
 // Issue #3656
index 5ca851f8b779032ea5c5e69d5aa2149cd1c871bb..dfe63913d56fedd5421e66c925a4672188ee25e3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 pub fn main() {
   trait Text {
index af19a922faec610acce158f8f54728fe73d33096..114177702c530ff33e92ee73cabe54d0e89e545a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[derive(Debug, PartialEq)]
 enum Bar {
     A(i64),
index c30e87ad785aeb8f9153014dd5f4a138a55476d4..b9b827d34577fd293d38bb55338eabb7b0076d1a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // aux-build:lib.rs
 
 // Regression test for #37291. The problem was that the starting
index b5a11f5a0fd6afaf17161d6f6287b52ff271b156..3001591c406e88e24513e4b0dd791a46859dbb36 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(slice_patterns)]
 
 fn check(list: &[u8]) {
index ce952a7e52038d5a50db9bcfb07c158642a5c5ae..8b29dad918d39a62e9175b66be16bef08c70e8c0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait Foo {
     fn foo(&self);
 }
index 0b1b08d4e7b996f604cde0c8a653dadcdb02d78a..a982cae26212050650b607f41c414f303eee7129 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 type A = for<> fn();
 
 type B = for<'a,> fn();
index 70892ba7d624c8db1420f5e42f8bc6d12cb94cbf..044d84c06d45ade3b7e93b3afd4725688a285268 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Check that constant ADTs are codegened OK, part k of N.
 
 enum Bar {
index cea55270aa0fe332643c8235a2a8d79e75c630f5..2fec9542e0e67fa8a81e8a922a2550df7aa44073 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Check that drop elaboration clears the "master" discriminant
 // drop flag even if it protects no fields.
 
index b1a30f910dff2e2cbf64cd3d203b61f72cb12bc9..4f1dc22af3cd2c3a9f01172cc623b1362f06ef2f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 pub struct Foo;
 
 macro_rules! reexport {
index 81e63476524c9732e84bc76e0f513d8bbb6213ab..ccf0e1c2bdbd73f4ce73cd141e9cb3e32e12953f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #[repr(u64)]
 enum A {
     A = 0u64,
index 53a57c9943b3f4de95f9df7f92029b805f6e2793..2b1e25d2a1a7afbc86446a37da58fd6ea3737723 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 enum PureCounter { PureCounterVariant(usize) }
index 707145392c7dfb8a4ab86a3cc7fcc5dac56a1749..2d702dac0285a5a47c532348137787eb4ffe36a4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn vec_peek<'r, T>(v: &'r [T]) -> &'r [T] {
index 3620cb874f5630f34e7c5077df8b3d17ef6476d1..6920754912626efa658801363814ecf78358108d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 pub fn main() {
     enum State { BadChar, BadSyntax }
index e4ace4299bd2f1428670311ea0899bca3883cfac..6908563a81ce58110983df617d69ab8d7a76d0c5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 fn f<T: ?for<'a> Sized>() {}
 
 fn main() {}
index 3fab06d9a6837fe9b8e3d486a5fdec013d0cca9c..d54cf3f27c51ef52088f002c560cd76a56d14df5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 macro_rules! expr { () => { () } }
 
 enum A {}
index 44caa644edf44ae8d7eaf54ee505b9cc72b4f993..25d8a707fe473ba862057804fc74b886bfbd023e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_macros)]
 fn main() {
     println!("{}", { macro_rules! x { ($(t:tt)*) => {} } 33 });
 }
index 7766d7d1bdc8fc90196d4c7234c06342b7c30ef8..8402aac138ef7c6dde3c24477aa962c6874539dd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 use std::ops::Add;
index d698e7ac775ec7eb6d60fb8c2fec7b3369ad7de6..a087504c58196807d909c9dec3378c5960135809 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue_3979_traits.rs
 
 extern crate issue_3979_traits;
index 4cc2e882baaa2f1a4f341e98de22b3e01b8dcb2b..ce7d20b6ef1d404d9c384ebbf4bf073da7827fde 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 trait Positioned {
index d3efcaf636e81da4da63d2f2c0a99aeb3ebfb9f1..9028066cfacd51122f935efbde29ff18cdc540f2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
index 450620da35acda9718858f5ca41b20b9a31389eb..c90585cb734ea29969f6c5c9b85ba96dfc353332 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unreachable_code)]
 // Regression test for issue #39984.
 //
 // The key here is that the error type of the `Ok` call ought to be
index cf18ab47c39a1f8e1d105770e3e094dfc9688829..d2ed14d141390f7b59b4a6485bb00da3d1003840 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 fn main() {
     if false { test(); }
 }
index 5c1a527dbeb967a12c8c80e783fe6458d08b592c..00d33fae13c1194629cbfbea724367253328c72b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 macro_rules! m { () => { 0 } }
 
index 3c26183f146725b47b52da25cc676a9bf9fbbfd0..b37372c682f806b9098235df53287cfd010eddeb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 fn foo() {}
 
 fn main() {
index f216ba9b9c9833766800b256769b9e4030203d6c..41af0826c00aa5089c476524b4d62c34faf4d399 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
 /*
 # if b { x } else { y } requires identical types for x and y
 */
index d27b13c3a10e2bbd0771a36ff3c97d1077b51f84..566f92519b83eae40c49b6770b5f33d085e5d9c9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_macros)]
 macro_rules! m {
     ($e:expr) => {
         macro_rules! n { () => { $e } }
index 357152b60e5acee541b211e5dabd4427c9078254..8de60a64ea49a7374fe0312ff33b68fb6f83b604 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // check that we don't have linear stack usage with multiple calls to `push`
 
 #![feature(test)]
index b6f74f4f1cd29b00b0ab467f3c5d0f85137bea1c..693234a1720711b2ea284ec668347e9bc2106091 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Regression test for #40951.
 
 const FOO: [&'static str; 1] = ["foo"];
index a05b1ddd9f466c9d95270dbe0211708e0fc55838..dee393d07c796b1fe4f0950cee142e47b75e25ba 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 pub fn main() {
     let _id: &Mat2<f64> = &Matrix::identity(1.0);
index 0f1d8fe72493043e8bd903aeb7bc3f264fd07a7b..66499b0a4696395528779970d14784f72753dd08 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 enum A {
     A1,
     A2,
index 3debd77d1236be48c31644aaff6ae055e4771fa4..827edd39d2f9104e26e2307d631002c77ef61b03 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct Foo;
 
 impl Foo {
index 62e1afb92304e4431511f6f8b8a5fa84dbfa48ff..189c419c5dbbd7fb76d79112bf0e035d3f492d61 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct Function<T, F> { t: T, f: F }
 
 impl<T, R> Function<T, fn() -> R> { fn foo() { } }
index 780290dce7fa2eef3c04e6cf4dfd67c206c5a529..3937f9c1930777c4f18869b019f0449fef6ea242 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // this used to cause exponential code-size blowup during LLVM passes.
 
 #![feature(test)]
index 2f8c108f590bd2478ee4107b34af5a4eeaa6bca3..61706f6acabe89937403cd5b2b7c05a1732296c4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #41849.
 
 use std::ops::Mul;
index f47e69931d5569c11c00e4342a4db60fc7685834..1a4b283a81be5153ec948fd4cb5970b9689d70f6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for #41936. The coerce-unsized trait check in
 // coherence was using subtyping, which triggered variance
 // computation, which failed because it required type info for fields
index b72343f05c60bec71b643ad78f9c5ce4a37e6ffa..1347cb62d0ee6df59452d095019218b859b00ea0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue_42007_s.rs
 
 extern crate issue_42007_s;
index fa6f56bc817c6077deeaac6aa3078c1768b65d95..d47e95e9b078da1ca414b3f6caa9c4bd987f64b4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue-4208-cc.rs
 
 // pretty-expanded FIXME #23616
index 649f52ef82e22db10fe78a9340ba417c893107f4..6a4780ece6d468708922521aef0594d3f5e972d9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 #[derive(Debug)]
index 0f89d50575194879a31adf7cdd5b8a471f03d60c..82bab74a49b663ad0367bb49aa93c4a718863ee7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct Foo<T>(T);
 
 struct IntoIter<T>(T);
index cee9d8be98dda5233dc8fbbf539ce5a4416ab6c3..2210facf294a52e2b9508cdde7143f9295106657 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(stable_features)]
 #![feature(associated_consts)]
 
index 193a438fc9c8f40f479185977e32326a7dc4dbf7..0886cf0aa68f591cce3594293372596c391b7f46 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // pretty-expanded FIXME #23616
 
 use std::io;
index 75d05c064289e9bce46483dc103793d24f8a1b5c..558b0712bb1f3eb9a7edd794b33475353c9c4563 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait Trait {
     type Output;
 }
index 52ee080125fad7476b03e0929009a6cfeb2663e2..841bc629ce5b223f790611181658b3a341f5e2bc 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 trait VecN {
     const DIM: usize;
 }
index 220a68e1335c8256fa4b43d1009a95a6d2f0e534..3f72c5d8af022ff9e9dbe2b881b701b10cdd385f 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 struct A<T: ?Sized> { ptr: T }
 
 fn foo<T>(x: &A<[T]>) {}
index f431e94889cb10e6b27d8281ae01fd26c8097428..c1204aa43a22471717c8f0219100792a71c987dc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait T {
     type X;
     const X: Self::X;
index 4d5bb5449b7b72b1a6f5d72d15e1d15ba0e8f711..2ed79dd89c8e6299e1a9ab2de2303116d1351149 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // compile-flags: -Z borrowck=compare
 
 struct Foo(bool);
index 427ac016c08cb4ea3682302649b46286db6aa996..6863fdbb56692ccbd96e52651bf228d29247bf94 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(never_type)]
 #![feature(exhaustive_patterns)]
 
index bb788aaf88dd83ed5d8b8118e334b6fc78150350..fda063e8ddd2728844a546c97a3eec10455e8e53 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn broken(v: &[u8], i: usize, j: usize) -> &[u8] { &v[i..j] }
index 774ad8ac76018efbe72927ac6323455cc9e484b1..da29d65ae1459ce1d194756c0fd18f6cdfcc3044 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // compile-flags: --edition 2018
 
 #![feature(try_blocks)]
index 71c1f92baa7fc7e7506ec1fc949470c1121bb926..2bba7fec39686ee9d9dedddcbb92c3fd6643f2a4 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![feature(unsize, coerce_unsized)]
 
 #[repr(packed)]
index c75236640478c0ac338497978f4ba80dc488e005..dfc7c8a8795b88a9d74ed085e4631af8ba24261d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::ops::Add;
 
 fn ref_add<T>(a: &T, b: &T) -> T
index 8e6a37083e3589b632a1a9017ecdaec25d900657..3a099c241b1fa7510b046f77e4cac77e83623df5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // compile-flags: -Zmir-opt-level=1
 
 use std::mem;
index 216fd537022338b8ba73a76a88bfa627a171416d..5bc977e1491c25352a7397b9f3dff47251e46d4f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Ensures that destructors are run for expressions of the form "e;" where
 // `e` is a type which requires a destructor.
 
index 61dd0714a1f17a5ac8429b6e8aa1e5cf9e741efe..58e11ff10357cc4a19020923b301137e3a99cb41 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // compile-flags: -C codegen-units=8 -O
 #![allow(non_snake_case)]
 
index c3c662ea2d4a6be043f3dc5de4e5e8eb254195f6..1a6edd9f49808c29faaa833620bd271d46e6cc54 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 fn id<'c, 'b>(f: &'c &'b Fn(&i32)) -> &'c &'b Fn(&'static i32) {
     f
 }
index 96f38deec4c233dad0f1f82dac7a06d5ba1a10e3..1e733a0c4d6f99dbb88daae45b56f0db8dc75eaf 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 
 use {{}, {}};
 
index 8fa931abb86055aa0d0ab194653a90adddb0611c..7cf34d3cd428e80bb563a0a10c3edbbea925a00a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(nll)]
 
 struct AtomicRefMut<'a> {
index 188d4bc5520091947f0d105249a4dadb063eca87..ee9d7f38dbea627ba5b9061b1f8d0f5fead2a820 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(nll)]
 
 struct WithDrop;
index 0a0388ac48ed8c6a750ee726fbe602ef725ba72c..17353c8e59f7c0831c816a26e478c32a3c003423 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(nll)]
 
 struct MyStruct<'a> {
index 92309297356caa7fcf0cdfdeb9f0554db1d0a748..a8e0faeed0601b045f570e597fe63b3c884b7603 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // Tests that automatic coercions from &mut T to *mut T
 // allow borrows of T to expire immediately - essentially, that
index 57aac45e51a9a10b7d2039f0efeac53b8fd72ab8..349aa4f73abc4d97656a570ef28c617c1903e5b9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 #![feature(nll)]
index 42800255c6be6976b18d35c81280b0a8de77ea15..5140162ae4353ecb91d5bd6ef61d49d82f72186e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
index 9a22cf08c0480955cd0f9fa23f612baf767f2143..5dd142844f56e7c16e438f9b8bc27af223c33480 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // This should resolve fine.
 // Prior to fix, the crossed imports between a and b
 // would block on the glob import, itself never being resolved
index 4a18539c3028f5ddc88917dd3058ef51c95c9f2a..b4126337d05ee3387cfd54a59aec65f8545228b2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // This should resolve fine even with the circular imports as
 // they are not `pub`.
 
index d33d08ab18cd01b7c598bb0d4e33b57f6327020a..c1ef78242fb826c618a18a6e5f0647a569869921 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // regression test for issue 4875
 
 // pretty-expanded FIXME #23616
index ea309981af1ba4ec1b92933faa8e974bb15d0f73..2fd3ad47f00caa885ea43818cc4f47a09681aafa 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // Test that we are able to reinitialize box with moved referent
 #![feature(nll)]
 static mut ORDER: [usize; 3] = [0, 0, 0];
index faffc2e4fb0571c5a31c989889380e524f8b7322..035c7e7fcc1c9ded85ef38f795dbd7d92ff1ff97 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue-48984-aux.rs
 extern crate issue48984aux;
 use issue48984aux::Bar;
index 3a70bdfb2fd0f4562a1e9330ee0021fc723a15c3..ecda8b7d17e3737b320b5e60f8224ec01591ed9e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![deny(non_shorthand_field_patterns)]
 
 pub struct Value<A> { pub value: A }
index 6a55f2d633bd057c67611ea2c1b755361b869f80..b22cd8292533dafc4b4507c8e8aa4c28f833b8f7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 enum Void {}
 
 enum Foo {
index bc94066b04136f017dbd9e360bc32e8fa67aa261..6b7f4e6e95e943ce18f127b1d546a0753cfddf3c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 enum Foo {
     Bar = (|x: i32| { }, 42).1,
 }
index 887feada3c827c4995c4d27e88da448c706b9adb..cc97da8b45ea9fdd2367a68c78f8d452d7e8199f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 #![feature(nll)]
 
 fn main() {
index df9664dc234af260fa12debada22bf9ef69906d8..0f14b0fb5fce9e2035e01ebbb9d3cc84e6f66676 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #![feature(box_syntax)]
index 708187643d85cc130447403ae7452d01b131d597..3c630ceff7abb29893f66096278dd3904f0336a7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Check that merely having lifetime parameters is not
 // enough for codegen to consider this as non-monomorphic,
 // which led to various assertions and failures in turn.
index 3c987d32b90ebc21ff3814541b307ccb474360dd..c3dc404058c5389a065a841521149ce48a22cec6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // This test checks for namespace pollution by private tests.
 // Tests used to marked as public causing name conflicts with normal
 // functions only in test builds.
index 00cb5ac103a9130709ffe15916ae8085cf9b2de0..9a27584c18195db9fbb6cb15236878b571aa84cb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:png2.rs
 // compile-flags:--extern png2
 // edition:2018
index f80b80c72afff983ac1bc7d36ef22b0f8791c24a..c791113bee6049051c5d2a8900a8779f599c718a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 type FontTableTag = u32;
 
index 8cb0d17cc166549f6c67158f5d53a9509ce46fc3..db59f8f741647fd7119f279fa60c0ca409f2f65d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // edition:2018
 
 fn main() {
index 678a42e7549423e7d34b5d75bdc9ce05165bf0a2..d9d07831331659bd264681663645697dff89134c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 const INVALID_ENUM : u32 = 0;
index 4890156f7b8e97e049b474aa524e05fb617a6288..c17404305905db022f2800c2fb4c111d27f6a751 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:issue-5521.rs
 
 
index cf0a225290f78e473a46954aba90a313ef34a1d9..417dc6ce3c5228fe408559beefdfb0e889bcd9a3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum Enum {
     Foo { foo: usize },
index 3b0f19b1f8ba9ca16abce8ee153b6ef888b0db10..aa66737344d8c42e5a585bcbe8f804e03e5b094e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 // pretty-expanded FIXME #23616
 
 pub fn main() {
index 8ff48c8600ecc91a40f27c180e290bec585d0843..ec4a082c0ffda2b486a751a7a711da907f09abd9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 use std::default::Default;
index 418119e2fd6c316b733b88dad5649307b06cabbc..02f12a0303a59a8fbcdc97a74d6515ee96b4b04e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn foo<T: ::std::cmp::PartialEq>(_t: T) { }
index 2fef9bc197325d8922866fca3587c43f183ff0fc..3d44c39c5772be3c2bcc3d512381c9cba6d958d0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 /*
 # ICE when returning struct with reference to trait
 
index ba79c32a83de1ebd983dfc2ead023e3cbc582157..9b9026304598e39e75d240b336294a668b85bc11 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(improper_ctypes)]
 
 // pretty-expanded FIXME #23616
index e6c9106111f5b2105bcb4f9a092902d0f0e29758..921951696383475e2eb8dd44d3338eda3d4e6102 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 extern {
index 26816f235e95f4bf5570249d83aff82f1d76e00b..82d87d9d270a15150356dcd53cfb427ed8f4e758 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #![feature(box_syntax)]
index d75291bf1f3d037140a8a6a5788eefa2e1a26fbb..edb4ead53e42f8c93e2f32c4bbfbb43b3f3d8b0d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub mod foo {
index d888f691477b825715b5e5e479f55f419051dfde..84c2d3b8b14ab40718203163bd525ac62dd63198 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 fn f<T>() -> bool {
     enum E<T> { V(T) }
index fa9ef84746d65513b85896963e96675ca862f9d8..68c729ced8244eb33a56c0fc0474fcc1777c0561 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 enum Either<T, U> { Left(T), Right(U) }
index 1987bca93308f5f5100cbd83267f83727ec1109d..9314990b0f324df5f0b00740acde1a84e64cc034 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum Foo {
     Bar(isize),
index 152b4bbedc3fefb14ab35a028c8872cf8853de76..a23a6532b15504cee33e1433006b268d5d66c0e7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(improper_ctypes)]
 
 // pretty-expanded FIXME #23616
index 5179ddb472bad9a06782bdfcf6d73f46ca7b765d..886d13c4c6f1237a3ba36475bb879a49f01f8da8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #![feature(box_patterns)]
index 173ad5833e5878c74d8c4ec9fa153a43b46f817e..b92c53479827bd0693edc80f71ab798a892622b0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Ensures that destructors are run for expressions of the form "let _ = e;"
 // where `e` is a type which requires a destructor.
 
index 94c1a1ae00ac8be09dc9b1fe8be16e99e0657457..1332c863935ac98d544950f85db4df0616665150 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
 // aux-build:iss.rs
 
 // pretty-expanded FIXME #23616
index 13b738ac0e6d2eaacf84034a80757df5374e79bd..3d1108e84ad249313392dff2a515a4da3d537d0c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 static x: &'static usize = &1;
index 3a93a144ee8b34bed5b63332e54941f288ac38d2..961f90dfc377d9a58d11e20a6ea3963a0b0edbbe 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 fn foo<T: 'static>(_: T) {}
index cc160c79ae9cc23eaaf2d43c5a5b8c888cd90b4c..7402ae1c975b6732032c0ae301193151343af4c5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // pretty-expanded FIXME #23616
 
 #![allow(unreachable_code)]
index 203c9cdfa4963cff83c6b32878bd40c6bd730995..e8c2a4683a5e8bc69d885ac9ca785d658e181249 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait IDummy {
     fn do_nothing(&self);
 }
index 7a1f0159df94e263cfc37b628c450dcd7778d502..fa97eae7cb33e1b0e7e49f5f6ba5e1d85954fffa 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub mod a {
index 774d9706d909def64b20459bc23c904de319c1f8..e584fc790853111c0d3358b296aae4bad8f19dde 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Regression test for issue 7660
 // rvalue lifetime too short when equivalent `match` works
 
index f9dae8472a8911baa495c96bb624b62afaed3bae..6e5a6c551ebfe09a3617b6a7424214c30406412b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 /*
index 74a5b0608224820ae2d4afb8ead51c3c56cdabe7..6141eec68fc05c93f2a58cce9ddd16e7fd3f30ad 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // aux-build:issue-7899.rs
 
 // pretty-expanded FIXME #23616
index 311fd129ab07dc956f92603cf0409e5cd853c65e..9ddc63a208aedf4cf7108b5e9582c5e1e4b0b309 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 /*
index 9afa6f937b5e8f009c49e570d1d8930ef5652fc7..07916d9cdb8fee3c696dcc685fc9b1f5a55276f4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait A {
index a0e2caee40a64f1ad1dad629f4bcb22cdbd3e06a..b26392b6c72ace10069105db2ba154ebc2a83aeb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 // aux-build:issue-8259.rs
index 3caecf9fb939b6f32d7e3b8129e741eaec30c8a5..5d0dc31caa662330c6415dd4947b4abf4b3ec833 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E {
     Foo{f: isize},
index da70fc415c02cfa7fc9f1d47f88c96991331e070..5a3b1b13a63ee211bcf933a62c279bb916d47eeb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum E {
     Foo{f: isize, b: bool},
index e4f5a457f41820f9cb3da7d55899e51387f17c03..2458e91daeb87ef58ff96a23e2344314de72fafc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub trait Writer {
index 9f0f7e2fa421b3ade4b1e85860d39e3dfac307fe..515b0949a7161a908c6ed5ec83575847e8d968cc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 #![feature(rustc_attrs)]
 
index 8753ee8370b05f12a28e7ccd54c9853ed8c70f5b..4cf39e3e5f05560d298cd79392113b994b6c227f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![allow(non_upper_case_globals)]
 // pretty-expanded FIXME #23616
index a545abefb7a3cc4e47f9a183df578b10196de856..6e9b736cccd47ffa8777d89f81d6c00af3cf27d0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_parens)]
 // pretty-expanded FIXME #23616
 
 fn f<T, F>(g: F) -> T where F: FnOnce() -> T { g() }
index 741411aeffb148fb7064bb7858a227794684d25c..71915cfb33e9c5928a38e02ac5641ab17f08e0ba 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 use std::default::Default;
index 19fd51b476d4e9050a5f5437180d7abf4c4b04e8..ff4fbc973e04151c6b1d9766ff2c4675f2f08bb1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // after fixing #9384 and implementing hygiene for match bindings,
 // this now fails because the insertion of the 'y' into the match
 // doesn't cause capture. Making this macro hygienic (as I've done)
index c4d9cab9ff36f92364722de6c185e3d42eac4e6f..e0b49164281227f63cb55e70a06bbea089e55fee 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // compile-flags: -Z borrowck=compare
 
 static mut DROP: isize = 0;
index 30f886f6784cc0de86cfa32d8b2bcc216b2264ad..9e919e7b89c925681ca19525c74a640f46896595 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 fn decode() -> String {
     'outer: loop {
         let mut ch_start: usize;
index 906c7a422e77c8c74f989719a3b632b166714abe..150df681ea4d717ebe196b6d089437464303d4b2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 #![allow(non_snake_case)]
 
index 21e192b23f5ae26f5bd171e2bd1e1cb5c7127ab2..7c9f49c51b5d26b5ec0d5128784d860c92085905 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
 // ignore-pretty unreported
index 957330a1925b41f9745d410152058f45e0123f8a..f079268d6e10b96f746bc698705c59206ac37db6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for issue 9243
 #![allow(non_upper_case_globals)]
 
index d11665c531e92bd3cceb59ba5ed635204e9f2da3..eb66c565a78c2e7211be97fd1214af11a2e5b860 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 static DATA:&'static [&'static str] = &["my string"];
index 481014fe3f35e39b00603ec73fd58a11ecf3404e..7f93f5a8ab3ba3a327b7054e7a1c6b4742d30e0c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 struct A<'a> {
     a: &'a [String],
index 6a4f868cdf1230d9e3b1f96d86e43d57df9803b2..9ae26d638ffb7b98dd0b92e467ed89bc95d4b24c 100644 (file)
@@ -11,6 +11,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 // Tests for a previous bug that occurred due to an interaction
index 62a38767ddd096daace3198fe7121ab0a5742a57..db717e3c99af01b380affd456afc885fb636b422 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 #![allow(deprecated)]
 // ignore-emscripten no threads support
 
index 1e52f326c1f6712b941096b2b370a6ab35e821e9..f98eba1cfdf8ef9ee6a30fd23930ca78149e92c7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 mod a {
index 304eb7808a74c114b3f946a1af6657958bca437e..b74acf5d8163e8284d883711f6cb91d5123dcfd8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 macro_rules! f {
     (v: $x:expr) => ( println!("{}", $x) )
 }
index c613560aff12f0f2115934827c5913f8ccde66a3..e33329092067e25edc3494a238af1099c26c94e6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(min_const_fn)]
 const fn f() -> usize {
     5
index 0043c1bc829c12416457093b5f63d1a409be40f8..bb51b2519d6b00af56b1ca075b288f56d2944a90 100644 (file)
@@ -9,6 +9,10 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 // Regression test for type inference failure around shifting. In this
 // case, the iteration yields an isize, but we hadn't run the full type
 // propagation yet, and so we just saw a type variable, yielding an
index 37eaf2e8cde6be68feee41430360c5d1c70806ad..7c557eb2bd07973dcd3df8031af7b62ec747c526 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::io::Write;
 use std::fmt;
 
index 65ba591404bd570ebcb4df2479fa515deb566b2d..26b339550cc9bfc955d1b6a47cc1b8a8fc54262e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Just testing that panic!() type checks in statement or expr
 
 
index 3625e0e7efa264a1901f4a9625015062dc9eb6f2..c7129423cb65125c7289e985338a30970dcc7c6c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 // The logic for parsing Kleene operators in macros has a special case to disambiguate `?`.
 // Specifically, `$(pat)?` is the ZeroOrOne operator whereas `$(pat)?+` or `$(pat)?*` are the
 // ZeroOrMore and OneOrMore operators using `?` as a separator. These tests are intended to
index bfa32817b100f92f96976cbbde47e6f6258934f0..95774cad229a0d0ad19f903c53646814a3ee2715 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // Ideally, any macro call with a trailing comma should behave
 // identically to a call without the comma.
 //
index 2cb2e43fd658a8d1b2342a172ffd0834318625f4..89a51827d7e7dbc2e1b8af6183626d42f3e73d87 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_macros)]
 // Check the macro follow sets (see corresponding cfail test).
 
 // FOLLOW(pat) = {FatArrow, Comma, Eq, Or, Ident(if), Ident(in)}
index 8b7961876646f21599a8df96dfb32cb98e5262a6..157382303339abb7818e2db27d3c9e156bdc60ca 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_macros)]
 // Regression test for issue #25436: check that things which can be
 // followed by any token also permit X* to come afterwards.
 
index eadef98037725b1179ed6d3015b0d90655fbf306..31170a74164d038f129e9cc95389e8752a1c6508 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 macro_rules! foo {
     ($l:lifetime, $l2:lifetime) => {
         fn f<$l: $l2, $l2>(arg: &$l str, arg2: &$l2 str) -> &$l str {
index d19c33b2e3a2620dce21e1fc4e1f03369ea763c4..68f1eae969e8c6131c0f4177e820bb3c35e34c8b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // compile-flags: --cfg foo
 
 macro_rules! compiles_fine {
index 22e983dd9cef276bc6220fc4ed5dfe601c7b27ba..9b197eb29020086c34d847a0d647f8115fdfce6b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 macro_rules! foo {
     () => {
         struct Bar;
index 830ec620fcae307309716e0ba36e17b67593830e..8524f047a0bcea5340b5ee11c6ca8a20c175c8fd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index f0431b92570269f1742280691c95dee883cc467f..4ec2110588247d4c67c515c968575540c0e7d327 100644 (file)
@@ -9,6 +9,10 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 #![allow(stable_features)]
 
 // Test parsing binary operators after macro invocations.
index 358c97d468b93d9801136a94713d331dd44a2ab4..121a02226fecad921b7c70f508f55585cdc5d397 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:two_macros.rs
 
 extern crate two_macros;
index 8f091ec192b62525ce5fcfdf934f92bbc83dc893..176e9a635c8018902d3cb0075193c563f701c85b 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 macro_rules! Tuple {
     { $A:ty,$B:ty } => { ($A, $B) }
 }
index 31bf37ec0a9af0575ba5986f2a07460c33da4823..43d70975a9adcf273d1435766459e0f933955d69 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum T {
     A(isize),
index fb816f9e78f7566aaad08dfa6a5428fd46cc962b..65db1f1a306f1273dbd912422071a7ba6897783b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // aux-build:use-macro-self.rs
 
 #[macro_use]
index b1afbd8d11c8c0f95e115903e6e38c7d5d268059..cf61714608baaa68e290e0216e123de6a3ca5c67 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
 #![allow(non_camel_case_types)]
 
 // pp-exact - Make sure we print all the attributes
index a56e5b5170d99a285e96d916c7b48333ed54186c..27064c792fead0a9db6904a8c57379b13025641b 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(stable_features)]
 
 // Test that we handle projection types which wind up important for
index d1cd974070fbf1414cc3c309f103b934b590e68e..72ce7a1ac562aa7416128d30ac9a584af3f7284a 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
+#![allow(unused_imports)]
 // Test that we don't trigger on the blanket impl for all `&'a T` but
 // rather keep autoderefing and trigger on the underlying impl.  To
 // know not to stop at the blanket, we have to recursively evaluate
index 3fc2ce44eaaf2a0eaa845617227aac2f13e12faa..8d8c7af724ff1e036079a1bab44ba61b4ab6ccdc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // This code was creating an ICE in the MIR type checker. The reason
 // is that we are reifying a reference to a function (`foo::<'x>`),
 // which involves extracting its signature, but we were not
index 45ac6566637a96c8bdbb39d176d46b23acc87a45..f5a7362e4a9b19285fb43c5bb16f73594d26ed3e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 fn test1(x: i8) -> i32 {
   match x {
     1...10 => 0,
index a0cd3c8dd125d2c50f21099b719ced625d7b30d6..ecbafef8c009c6394912ff83294a0780cf647b0b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 fn into_inner() -> [u64; 1024] {
     let mut x = 10 + 20;
     [x; 1024]
index 48a5d6ab0f020d5a3b3b254f0f3322a943baa849..e22cead44f5bff4b0709b5a241c08a59346dc5b2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // This code produces a CFG with critical edges that, if we don't
 // handle properly, will cause invalid codegen.
 
index 27b907223286b290ebea432ec40c38063f24ceb7..af2f55ff650d997de1aa367f09cb30475ce18d0a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 static mut DROP: bool = false;
 
 struct ConnWrap(Conn);
index 84528b3296aa310b899c77ab28a26cf851e11ab6..a2063cd2b3a88968da6c727dfc9b823832597db3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(stable_features)]
 
 // test that ordinary fat pointer operations work.
index 48eae959b4e2fa98b8bcc3822d381fa199a4ae23..fd81239daffdc1a3fcfcf24717aa35af8913265d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 fn foo((x, y): (i8, i8)) {
 }
 
index d614b2fb8605e4fa89d5b68438bfdceb1f026be2..ff958f23f114e37a2a9ba8f7e2b8684c8b439095 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_macros)]
 // ignore-pretty issue #37195
 
 mod mod_dir_simple {
index 1557f13b10d3b0ef046cf47f9969fdfb150f7b89..5a0eefc20af8425b8f8ecb588bfb1741cc860397 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 #![feature(box_syntax)]
 
 #[derive(Clone)]
index 270a59904968e7934898ea90846d4ba724872507..e62c73935517c63e7f59e57736c5b390083e73fc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 struct X { x: isize, y: isize, z: isize }
index 9207c71e083507b727ab2cc98b7e8c7c2f9e7f00..caab86e584eba93dced89b82f79bd9da8c1b80a4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 struct X { x: isize, y: isize, z: isize }
index 6f86674104c1e84ec28475a1a65d24e389b7a0f4..9247eac848a490a99af649275b4804701d9a773c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 #![feature(box_syntax)]
 
 #[derive(Clone)]
index 0876f37fd2d4b34c8bd26b3f69bd5ed5d6ec0ba3..6d69b5ec946d81f7f452552d0079e0703d34c392 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 struct Triple {a: isize, b: isize, c: isize}
index 61dcc08805b135bf4374285384a4886cc0be1afa..5edaffeb2c2c10b432bd18a1d42d211d50f81a26 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 struct Triple { a: isize, b: isize, c: isize }
index c72be92654c5dbb910f3573381450fdda7b8996a..f25741f355e6ecf29e3668ec59a8f86dac72e1e3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 
 pub fn main() {
 
index 857bf7ff2607ffb5ceaf6fbc0207d0080b8d9c47..333d6e4fd5268043a64cff1060be76ef1fc49858 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 312aa6d577aacf496b7ce9cd75cc5a8134736093..68c9c428b0637d7eaee9eead1aa07d082e4c1d22 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(path_statements)]
+#![allow(dead_code)]
 
 #![feature(nll)]
 
index 24b25c4db16cdb82597c40e4f52ba383d5854821..b733545256fa71fe5400d7207ff348d050f9fb78 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(path_statements)]
+#![allow(dead_code)]
 
 #![feature(nll)]
 #![feature(generators, generator_trait)]
index 6d3653e7977521c1a6a18e567a3362a0be35b47a..86ca2c8a49587dc868a0cdf414983bc2b8b6193f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_macros)]
 
 // compile-flags: -C debug-assertions
 //
index 2ed9032f86e106186d5a93d74e1feba1e361f33b..cb987c21a3cc7ff1629334627b3684af17ec0f83 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 use std::ops::Deref;
 
index 7be57400da0dfc1963e6ca6ddea19ea71d160bad..0c991247eb2307127eab10d154615dd93c0083f6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(stable_features)]
 
 #![feature(box_syntax, core)]
index d092df329579219c0e71b82c6ec4d235650aafbc..b5ed5cc37d9afe79666db906026632b0be43209b 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 // Test that we choose Deref or DerefMut appropriately based on mutability of ref bindings (#15609).
 
 use std::ops::{Deref, DerefMut};
index 8f0b3356d0799aa35c3ad8165ceb72d5c58c4f5e..ae405350ad0c88553ecc47145c194469d48868af 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test that we choose Deref or DerefMut appropriately based on mutability of ref bindings (#15609).
 
 fn main() {
index 5d5bcbd325d4b0f402a06d35eea41460314e126c..69969ba640fb0732c7b33664306238fbb32884c1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-emscripten weird assertion?
 
 #![feature(repr_packed)]
index 30f7124f2437fd35f879fe63871025273ca619f7..045449181712e67f8a5d2808f7c1c524e250de22 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(overflowing_literals)]
 
 
index 6df51f4572992955a96610d406ece96fe9303eba..58cd5505ffc296289884d119afa7fbc89ffd9a8b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(stable_features)]
 #![allow(unused_comparisons)]
 
index f9c343b60b06458adff9104dae1df7549c63bec3..994ea7c44fbe4bc249671fb459ef62a9781ec0af 100644 (file)
@@ -1,35 +1,35 @@
 warning: unnecessary path disambiguator
-  --> $DIR/packed-struct-generic-size.rs:48:14
+  --> $DIR/packed-struct-generic-size.rs:49:14
    |
 LL |     check!(P1::<u8, u8>, 1, 3);
    |              ^^ try removing `::`
 
 warning: unnecessary path disambiguator
-  --> $DIR/packed-struct-generic-size.rs:49:14
+  --> $DIR/packed-struct-generic-size.rs:50:14
    |
 LL |     check!(P1::<u64, u16>, 1, 11);
    |              ^^ try removing `::`
 
 warning: unnecessary path disambiguator
-  --> $DIR/packed-struct-generic-size.rs:51:14
+  --> $DIR/packed-struct-generic-size.rs:52:14
    |
 LL |     check!(P2::<u8, u8>, 1, 3);
    |              ^^ try removing `::`
 
 warning: unnecessary path disambiguator
-  --> $DIR/packed-struct-generic-size.rs:52:14
+  --> $DIR/packed-struct-generic-size.rs:53:14
    |
 LL |     check!(P2::<u64, u16>, 2, 12);
    |              ^^ try removing `::`
 
 warning: unnecessary path disambiguator
-  --> $DIR/packed-struct-generic-size.rs:54:15
+  --> $DIR/packed-struct-generic-size.rs:55:15
    |
 LL |     check!(P4C::<u8, u8>, 1, 3);
    |               ^^ try removing `::`
 
 warning: unnecessary path disambiguator
-  --> $DIR/packed-struct-generic-size.rs:55:15
+  --> $DIR/packed-struct-generic-size.rs:56:15
    |
 LL |     check!(P4C::<u16, u64>, 4, 12);
    |               ^^ try removing `::`
index 2c9216a96c2ca43f5c39ae8720a232dd7cf766d7..6aa8770304a7e56de1e29a1fa95bd7a12b683f53 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::mem;
 
 #[repr(packed)]
index 85e7f1544a021f16ede532dba0c476419008e61d..27e07b87ff41792fcaf3ecbf79f132fa1f8a74cb 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![allow(non_upper_case_globals)]
 
index b4e24925f75ec3d1e160a84467cd4fa276d8fb00..011ff4c20f4a85818acfbb8fdb37c654eb3bd7f3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 #![feature(repr_packed)]
index 5bff65d0cfabd1cbde3d88acb9f8a9927cc728cb..5de5786d6a59f07180346a04c36d06e4e1502027 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // run-pass
-
+#![allow(unused_variables)]
 // compile-flags:-C panic=abort
 // aux-build:exit-success-if-unwind.rs
 // no-prefer-dynamic
index 2275efa188ed014ae20e192599fa217e3ba29f69..621a258dc9d81292b73333127747af94f2090434 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // run-pass
-
+#![allow(unused_variables)]
 // compile-flags:-C panic=abort
 // no-prefer-dynamic
 // ignore-cloudabi no processes
index 6e3dbe1d0f3cf8ad822ec0692a6f7745653a01d7..dd884b966bce1f3b463f412512110d6513161699 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // run-pass
-
+#![allow(unused_variables)]
 // compile-flags:-C lto -C panic=abort
 // no-prefer-dynamic
 // ignore-cloudabi no processes
index a0caa4e80c2f3d1871e6ecfc917c17cdf8a2022e..3b2a5dd7141e82714c9cc59c827bfab4f2b6df84 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 // compile-flags:-C lto -C panic=unwind
 // no-prefer-dynamic
index 340333b119e6011cb0d44d3415a3b3345664e60c..1e493fc2bb49c4cb5d7fe4e902de661ea91ef664 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(stable_features)]
 
 #![feature(std_panic)]
index f5dd2716d2cf0cfccbe44ded7865504ed7e637a5..bb115f92b90f8ce1195b14fe3f9fdf6a53ec1a37 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 // ignore-emscripten no threads support
index 7c1dbb500d84efe0882c2372fa13dbb5c4c79929..703867713e6b279cf2ede10da20cb14e2c66df4f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub mod test2 {
index 2910c462c2bce4fca9519adecb67a9a45334a580..15d83ea4d951b96e5cbe2e2e5ed4fd77f3d6b1a4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index a0f012a6059b32969399e113e63ad66be919589a..012616403c694cc894a1c6c836cdd7e9c19e3fe8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index e43631e3189abdb26c5fb49e5729a1f0a21b76f8..6314dc2cd64f68b9e8bb4d5deda1a30da7a3c151 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // ignore-cloudabi no processes
 // ignore-emscripten no processes
 
index 770733b8939701401a3a5bcbac6571823a49308c..8bd66b90d58cbd1d03fb8855cdfbc3d0423ed621 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
index a7801136a84204d0f77f02d50156d2acb5ef2001..6a9a2535220325dd72cd9f58638bda9a1dda00ab 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that the compiler considers the 'a bound declared in the
 // trait. Issue #20890.
 
index b81d3056813058dddedba2eb09a59b25d53575c2..e0bb62b8929db247eca293394e8af431f8d0c074 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that the compiler considers the 'static bound declared in the
 // trait. Issue #20890.
 
index d3af66b416225136be3c67cf33d3b3fb23b6dae7..3d1ac6277f7b29827d5a87c1019842b4cee2b3f9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // A very limited test of the "bottom" region
 
 
index d5d2408d5d240ddd73b7c0d16489fc4d4fcc3065..568b8eed4f3844d5f92c6b35f33de574931ed48b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(stable_features)]
 
 #![feature(issue_5723_bootstrap)]
index 50073f8b9f0541baa91ed2f53c2ee7651b947b5c..f2785992564f705844aba144ead78f6de5f9bdf6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(stable_features)]
 
 #![feature(issue_5723_bootstrap)]
index 84d4a261f1d993056ef17225e58aba752646f3a0..51fdc2dc00e8d95c705c750d00c1d82f2ff74768 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 24ba0c176113facde9cc690538d9c4dfa5584c07..637748ebec8abb45096e55fe2fe4f410d5209b38 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 71464f30ef039cad459a4cb11464124d7aa18637..100fd423cd46b71362bc9cacaefee79db91d97dd 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 77659c100ff3a41f1b088276943a16482bcce38d..72c4dc3771091b58f43226e686d9ab7bae717a4f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // Test that we are able to compile calls to associated fns like
 // `decode()` where the bound on the `Self` parameter references a
 // lifetime parameter of the trait. This example indicates why trait
index 1af6febb53af2811b6f12104a8888fef58c64522..d19e7b6c7b5baa58de968bd9778071fa95652254 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that you can insert an explicit lifetime in explicit self.
 
 // pretty-expanded FIXME #23616
index a23c5005f07dec013e3a4fc1380024484c196fa1..1f9f7baf48b296fc9c7feac2b590fe762e6ed866 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Issue #2263.
 
 // Here, `f` is a function that takes a pointer `x` and a function
index e561fa743462724cccfb932a5b4c127f35c6fdaf..0192890277b791bbb30302f7e1ef741b62ffab6c 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 // Issue #2263.
 
 // pretty-expanded FIXME #23616
index 67a77940742d83f1bcf1a463cf1f1cc50982fb31..bc316983f82545212faa92f19635f5869e83a9b8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that we recognize that if you have
 //
 //     'a : 'static
index f3660d8dd17dbaf542ef1b906e6143aa7797f5ce..6bc2c62c6dcf509b657153086b95a44d5f4f93a3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 struct Point {x: isize, y: isize}
index f6ed97195c1dbb51221b9f4a799156fde333456b..0608802e68274cb568d78938d66f5b7381499f2b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test an edge case in region inference: the lifetime of the borrow
 // of `*x` must be extended to at least 'a.
 
index 7af25be1d03a0cd3bb8b81cf46da2a688938e562..4eeeac1767c8bde14cb503b357cb809ca75ec91a 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(non_camel_case_types)]
 
 
index 8a54f30133edad621f06acbd49ce15ffc75f53df..3b7cc8e37759b2072bfb4e365bc79d9f046fe5b6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // Regression test for issue #22246 -- we should be able to deduce
 // that `&'a B::Owned` implies that `B::Owned : 'a`.
 
index 758473634cb4a5cbf3ddd8fd55a7be0da772570e..2f0de4f47841ce4e106b441cbead811d4548be30 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // This test verifies that temporary lifetime is correctly computed
 // for static objects in enclosing scopes.
 
index 907746a65eedc13c4258a1b717ee88160712bdb9..110bc2f1fd308bad101b481aa2bf0403998374b7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test a corner case of LUB coercion. In this case, one arm of the
 // match requires a deref coercion and the other doesn't, and there
 // is an extra `&` on the `rc`. We want to be sure that the lifetime
index 6d521432849eafd7f606081fd6a57833009e5283..2393457409eec8514f7ed786184446c4c8d6e8dc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 3d0d5f2dbcfe593ff6dd80f0ce39222610699362..e409e43297ff7962254af9c0a92e659bcdef42cc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Issue #12856: a lifetime formal binding introduced by a generic fn
 // should not upset the variance inference for actual occurrences of
 // that lifetime in type expressions.
index b24e249635063e9cef40a9f0fd3298edb9f67ff2..bde2cf1c082f4a5ff435a23131b47c40f9afb3ee 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index b7060cb2b942224d23b8db0ce866bcc9e36e72cd..81e26e0444e4783967bf154e44e6de35b17bf665 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_parens)]
 
 
 fn region_identity(x: &usize) -> &usize { x }
index 0a30dcb721f9f45ac2d0e71cc004454574601bb8..39dc92cbd7bfab53f5fae27855cba3554216e1a7 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 // Check that the type checker permits us to reassign `z` which
 // started out with a longer lifetime and was reassigned to a shorter
 // one (it should infer to be the intersection).
index 28455b1f3cf1dbce319b9457da9226a8dfd76148..329efaf5555d3c1573bf79e04203c4c1e16901e8 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
 // Check that the type checker permits us to reassign `z` which
 // started out with a longer lifetime and was reassigned to a shorter
 // one (it should infer to be the intersection).
index 86d841726293fd42bebf27df2e8597fe85ca52bd..1b6c025d7fa1119183cda3269088acff9d5fb85d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that this fairly specialized, but also reasonable, pattern
 // typechecks. The pattern involves regions bound in closures that
 // wind up related to inference variables.
index 973f7bd5319a622bfd08e3042b2fdff652aa9f2d..ccfa080d216df2f3936ff7c386ed6304e5f807a5 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // This is an example where the older inference algorithm failed. The
 // specifics of why it failed are somewhat, but not entirely, tailed
 // to the algorithm. Ultimately the problem is that when computing the
index 5cb9ad7774ce350554a00a7d3f0066b9fb56b8ef..61160951000fc726ba74aa38650c44c2185650c3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 #![allow(non_camel_case_types)]
 
 enum int_wrapper<'a> {
index ffab7dc2e41355c6a7d6fd08c5eca57a3108dd1d..de19fbd0e8ce6c8149e2578599ae84c1aac9a876 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test that a type which is contravariant with respect to its region
 // parameter compiles successfully when used in a contravariant way.
 //
index ea0051c6b265a012aeb6f651182a2670d8d82515..fb20324ce97660f2796807e5f7492e4c811e2a91 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test that a type which is covariant with respect to its region
 // parameter is successful when used in a covariant way.
 //
index f0ff85612436e855022b2854fa6c4045130cb9de..7fbc0d1db70dea78f1395e7cb894a3da41aa1823 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(libc)]
 
index 35290ae8e6a20c36b316a6488b49cdffac8b7d07..d101c3c9ab198b2d7e9097a09d9b48122bddc8c2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-cloudabi stdout does not map to file descriptor 1 by default
 // ignore-wasm32-bare no libc
 
index f0ef9ca37b3a678d6546fe435165b57f4396f8b2..8d67e235a934e3e053617b5fb4038474099e1d89 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_patterns)]
 #![feature(box_syntax, box_patterns)]
 
 struct Foo{}
index 2aad9ccd6efabb313b9e031b395c84b6b6b59f72..6244daab1e6fe6a0c0f18b98b16a908f8a7df5f0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 fn some_or_wildcard(r: &Option<i32>, b: &i32) {
     let _: &i32 = match r {
         Some(a) => a,
index ac6f61b32b71839375d2689f7580929b27610854..9df250ea399568ad6b3e33ba0fbd9c21863abed6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 fn with_u8() {
     let s = 5u8;
     let r = match &s {
index 072332cd9d0a1b5b03b7d48242d193313ee5f4e0..9427482ed9c0ab1423384f03a1f7cd4f4c2ce4fd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 enum Foo {
     Bar(Option<i8>, (), (), Vec<i32>),
     Baz,
index 2bfdddc8eb70512f630c56ee75653fcaab7ba8a2..34756677636f246806dcec6dd01e734eece7c485 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // aux-build:structs.rs
 extern crate structs;
 
index 6c71c05709c5d9a1a31e3532e5e7d35199a8d42a..4bbd9e2b7fa32eab81db5343790c6b00b44d896e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![feature(non_exhaustive)]
 
 #[non_exhaustive]
index 71904acae724d8c5b7d5984dfbf2b26afde3417d..612f5bc0cfcbe480cf98a4c080559411359c8594 100644 (file)
@@ -10,7 +10,7 @@
 
 // run-pass
 #![feature(crate_in_paths)]
-
+#![allow(dead_code)]
 use crate::m::f;
 use crate as root;
 
index 37821777822f149cbe112a920cd6953421573ff0..fc77d744a23e82d0f7cbe45487839abec0cd5615 100644 (file)
@@ -11,7 +11,7 @@
 // run-pass
 #![feature(crate_in_paths)]
 #![feature(crate_visibility_modifier)]
-
+#![allow(dead_code)]
 mod m {
     pub struct Z;
     pub struct S1(crate (::m::Z)); // OK
index b13602297a4af35a3934c24b7cb5e8447f0f1b2c..61cf6dcf30c45dfd47c6d89e21f335c157c27097 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:xcrate.rs
 // compile-flags:--extern xcrate
 // edition:2018
index 0d84ccc3d322155f352a679da655a317fd808ace..e25f76ab48ee7a85b1e2f4d952bf4886622a6a07 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:xcrate.rs
 // compile-flags:--extern xcrate
 
index 29e8ab8ed1fb33e9162d09b4751f3355aa7cee46..f9d1ee0e9e05d4f939a6b22558b6857a21d32c84 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(if_while_or_patterns)]
 
 enum E {
index 755e3cb8c3b76387a1b81f166286e00b2b0a742a..a6046cdba94b8f2d1387d0f8ec093eae4453646c 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test that removed keywords are allowed as identifiers.
 fn main () {
     let offsetof = ();
index ddb83317fd93c282908ff10d4e1ec260888f6842..cc085a6f3678975610775d400396d095f520a7e9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(non_upper_case_globals)]
 
 #![allow(dead_code)]
index 0144433010f413b40702db7958392c6eac9afc26..04e40021a5fb575e4fdc99c0bebab6619b08cf72 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test to make sure that explicit self params work inside closures
 
 // pretty-expanded FIXME #23616
index cf1546810a45608c21e24baad1d308de85b2bf6d..d23ad94f1f562aadad37d91fdc00f5d2f0066382 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 
 #[derive(Copy, Clone)]
index 862d02bda0cee19f689360c90e21319ee1ce0908..1cf38a384ca5c7c1a94d7ed585871938b93797d8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![allow(non_upper_case_globals)]
 
index 2ea1dcb221e10139052b871e0cd7a94e0b80fa4f..42ed4f91e73e14ad7830ce1e3ea5238439a2e095 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 // Check that a trait is still object-safe (and usable) if it has
 // methods with by-value self so long as they require `Self : Sized`.
 
index 5f8ae3ce4954ddc963cfe23cb1aa7eed7d7ef128..218a36f22264413471b98ee3af15c8fcfab18f24 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Check that a trait is still object-safe (and usable) if it has
 // generic methods so long as they require `Self : Sized`.
 
index c0a7eee437cc46569da345929879cd42c58b8097..465ca46785981b0fd15f2d2ea321e66b4d150228 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test that we can use `Self` types in impls in the expected way.
 
 // pretty-expanded FIXME #23616
index 13e28e62e5ea1e8c4e5f867738698417e04584c6..645d61d79c81b163abb989fd98307df50be4469e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 trait MyTrait {
index 96993d3a7bef34835aac8d1c77bd7b4c2232f320..8241711bc12113c6ef23d7b93f328cbbb4ee8794 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-bitrig
 // compile-flags: -C codegen-units=3
 
index 7022a5eee7195990b262527cd723257d1bf6f361..8739b9f52de587ce1e4be5331758d4394a69d3e5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-bitrig
 // compile-flags: -C codegen-units=3
 
index 15b0765322462aa22c32ba02c240ff4805f1add1..7a1642bcb29e8b0d9c182095f37b99f77d5eb669 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // ignore-bitrig
 // compile-flags: -C codegen-units=3
 // ignore-emscripten no threads support
index e24a141e6e03fd74eb5cdbde3c54dfb689261f60..f0fb24b5832b5babc15cb5cf06221676f018631e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten FIXME(#45351) hits an LLVM assert
 
 #![feature(repr_simd, platform_intrinsics, concat_idents, test)]
index a1a655eec86dfbbf115285a4f2060e8f2193246a..3be3960e7cedf4519414ec622cdf88c8ea67e9db 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
index 4a481beffd2a2c06d540bbaa50b2a32790d8da3c..941bc55a5858df4cc6170e2cd755a4a961e18be2 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
+#![allow(unused_imports)]
 
 // aux-build:go_trait.rs
 
index 989f4f286f2c42142285b0f07b65eff676175fb0..9d8d99e9ca312c30e189214e90531f921788c446 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(specialization)]
 
index 4a481beffd2a2c06d540bbaa50b2a32790d8da3c..941bc55a5858df4cc6170e2cd755a4a961e18be2 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
+#![allow(unused_imports)]
 
 // aux-build:go_trait.rs
 
index 39af761fd48b293d8c8f7c61d010704356f98de6..01ec184d6f56847df9a7031878ecf7bc4c62401d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(specialization)]
 
index f2f107653445afe50dc7b43fde9031d12f8fbad3..8d5e732397feecd293590c1e628c176a3f4464c9 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 
 #![feature(specialization)]
 
index 2bed94ccbc16757ce4a0a3d45d47628f2dd00dcc..ba9051e0061e3895242895b81b01fe7f7d653795 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(specialization)]
 
index e70984df37e689fb7a8d1e848717f042462ee81c..2c5b514df6e8caead8b213bb2ec21b1affd30635 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait Deserializer {
     fn read_int(&self) -> isize;
index 122734e817a617d9d7d2ecd0f596e4a228be47cb..a0d05a6d0d2c1578568868659e01e93c8e772609 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(box_syntax)]
 #![feature(repr_packed)]
 
index c5926bc158661cc7e45c1b41b5e3306372bd5211..bdacb40911bdbaf6408f7e4f14fa84bebae19d3d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
 #![allow(non_camel_case_types)]
 
 // pp-exact - Make sure we actually print the attributes
index f9d88de145acac8938806f3b42d1e85573911900..d17601d44adc740e33175ec66e21ba5e7b2fcac9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_attributes)]
 #![allow(non_camel_case_types)]
 
 #![feature(custom_attribute)]
index 695318d0ee79dcec565243d851d2a9f1d66e5f64..517dad17d1f80b09f96faa6a6f49c7ee95d01f31 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
 #![allow(non_camel_case_types)]
 
 // ignore-freebsd FIXME fails on BSD
index 13559906795e1fbc6a849a5f643410df96c0d5a2..bd5fd86cefc1f8209de77032d4267e3a5a5f0a6d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index b4bce42e64706cb65b1a0b4fc99c614eb0f1aea4..6f9c609fa45585719a9fe5c6f9cb0bf2449b2eb3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 /* Test that exporting a class also exports its
index 6ceaab93e7924483ccd0784bd0f560431c4b4593..deb31c9e053849db1fffc7de24f808d5cb110c45 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 use std::cmp;
index 4f319cf8ea4db16392ad002bba9240e71dbd52e2..3b09ebec256364c499fb43eb01c54c6c193b11db 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // aux-build:cci_class_trait.rs
index e32ba9d02395fe5a32b2dcc5f92496c1df4efec9..693a6e829b6e286a185725f9497f53a6ca1ac05a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index a1c9afaa6346662fab9cb78afa5f5ecc83057ae3..c482992f7bd7278d67b0d28d27ab3763dbcd2e57 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 #![feature(box_syntax)]
index 5ad60dfd6d9642f8b751fb4ee2e56af17af00201..57ec91c9d33820ab30460b099c14abd62bdb8c3b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index d3b4083f843acfe649eb1ef5df0b5bc8402596d2..3d9dafc6f732bbbadfb3c5dc3416bb43927b8d91 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 49016d14b9ddaa329aba1b9b76e94a3aa3dfc9d1..3f0e912e2ad4bf1d5378c290a72a09e36c46385d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index 6eaf8939dcc7298d9024300a50a0d93a55c8df7f..48a7d58300c9dbfa708f063e56542f7a341fac68 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 struct cat {
index 771943802aa27315d0192b1ea93b8c5c15b2051e..c53f135c0e03247cf37d433163fa95b594bcf898 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 struct cat {
index f40fe3e8186e879f6202a0b7eb0d80870eb8706c..0f9b5b1d7f44c3befdbed36104e9b1e1c662a6ef 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 struct cat {
index 7deb90cc3e8ea0947074c91498b65e27e2d837d6..aebd1b70c3c7ca06a10408cfeceee98887e7c4ca 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![allow(non_upper_case_globals)]
 
 // Empty struct defined with braces add names into type namespace
index 862025ea934222e7c570b7c23f52a9708e508cd5..60bfe151b7e20a6c0c1417402179267ef7e6b1e5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(deprecated)]
 
 use std::mem;
index 838db70581739c42eca8b2fb4fa51606452d77dc..ea63b35e59fc3efa093686b3edd79a3a52157399 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 /*!
  * C-like enums have to be represented as LLVM ints, not wrapped in a
index 0962f41f78d0b7d41d558a680f47a1ce502f7118..e1e1d6dfeeccfe7c77be08f4783fac13de3a5a00 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum Animal {
     Cat = 0,
index 55bf80138b979f144dcaf60ffa01123fa020d739..f9a375d74e992d2c590e2a36174a2861cd1efe55 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(overflowing_literals)]
 
 use std::mem::size_of;
index b4f8b5427e0d9665c1182cd48ff27f6ae056df8e..54bc6506a4bfa0541615df6d8e57c64c8daf8637 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 use std::mem::{size_of, align_of};
 
index 050479d28dcde251fbc659ecb888debe1be6daff..d68073711b08d6465c5c581b2e370247e546fa9a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 mod a {
index 1eff9ad413d569b5e4a3d4e70fce278640fdbe57..4e9b51fdd0cdd18e63288d3b1bcb888fca86e253 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 // pretty-expanded FIXME #23616
 
 #![allow(unused_variables)]
index 5b9d1530321fc76a30cc51843fb29156ff17d45d..5b7b60ff61f4f04b9418511402a6201efa4f64cd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_upper_case_globals)]
 
 // In theory, it doesn't matter what order destructors are run in for rust
index 1e4955bd5ece9d8939d3f4dd17e1e2b578b0d8d2..47ad6232152f43654ca8fd70570daef628366417 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // Passing enums by value
index fb7585f99894a2a9b5bab79fed2ae3fc60b450df..b94260f91288414db1da4040378f636151dd6573 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 1185519dac66d38c388a17002af9103369f044ce..b98772dcf79c29aec2d60c7f892bfae1f87777ee 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub use Foo::*;
index 85af2f0d9d614425b4741e0688b4f2fd8bea5463..4d0524e306d419cd8e1f94ca190ef4e90759a9c5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 mod m2 {
index 05a4c190712e834998d96aa8a1d00c566c50698a..79235525a53ec9d45014a8ac4ffb416040b57529 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 enum Foo {
index 6e294b27abf3bfa1558be4c9d64f430255d0814c..8a63b990030c97f2693462c52342d97e44857c99 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 /*
index 6bdf69478aeec18c43886427cbc7b2c64905e41a..c42958aa7e18e1cfb05a3263a92e572ee9689e93 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_unsafe)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 pub struct Fd(u32);
index 7a6afec4e6d28bd0074009b86a15bed8900ce120..83bc5c25de39c26b21b62e3d403a3eb3de1fc5a4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::mem::size_of;
 
 enum E {
index e2c960b89cb67eba07311832978b0bf6416817bc..c82d449391a05afdb4178cdb7bade8a2795f66b3 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_unsafe)]
 // Issue #2303
 
 #![feature(intrinsics)]
index 6fe3aefaef5ab3d2a8717c946e0c68e25589d898..3315232ec84a0ed2276e0a96048a77846977952e 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_unsafe)]
 // ignore-wasm32-bare seems unimportant to test
 
 // Issue #2303
index be73224c7ecbc5ab4b6ab9577e54dac4fcd3e2e1..a4ef3b0732f7960f7caba9e050d92337b27adcd3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index 7093ba5138d19ac48e2af0f1695565f6c947dab4..054f8ce074beecd7e5bca1cfbf7c760931471ab3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 enum opt<T> { none, some(T) }
index b20173574cc7df3b65cdfcae34e55e0b797231b9..38a2ebdabc9fde83a59daa5261290de2a91563f0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 #![allow(non_shorthand_field_patterns)]
 
 // aux-build:xcrate_struct_aliases.rs
index a970c1b0d78e5979b9a0dd1e055b13935fffb5e6..6ed6035caf097763c79887ca231340a87c9aefe6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 enum Foo {
index 1e674cb897087801d5443a545288ba909b79ca31..989da3cdd6e150414e0b284770e3c506f6daf3e6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 struct S { f0: String, f1: isize }
 
index c054f31beae4178a34098f1c314c2287c3662eac..1b0d19db591ca3972d605e37d19801f659ff4751 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 struct S {
     f0: String,
index 868be134121726825f1acd2fbf6418b69fee30f4..89fa79c85e628a2274f97df53bbe872661f25e4a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 struct S<T, U = u16> {
     a: T,
     b: U,
index 4b7854145f00a564d46bad345247ac37b86aa224..206ff2ad13d616217644b1e891c3f79846ab1e1e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 mod foo {
index a7f7841fac848c1e279eaf4dbe1ec5458ca83e58..39b4069582539fc0347c680dba4d306937020fc7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(deprecated)]
 
 use std::mem;
index cbba62d156bc77a4566fdcffa6ed0b58975a9764..f25321ef7b15052d09619f5466f458f0e72113e4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(deprecated)]
 #![allow(non_snake_case)]
 
index 9f6349a23ada0f5bdf8fc4bea6142f9e741729b0..e2f7ffe27681c87eb8a5d33f6858ce126bbbc79b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(deprecated)]
 
 use std::mem;
index bfc3213a040c242689894d852785bbd27c07c5e6..0f6197f14d5df5f9339f0f05104443afca2225e2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 #[derive(Debug)]
index d0eea7bdcd24d1915dc6abcffff5e8627919480e..c93183cff4d4bb1d86de4e8645df581d62b1406d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index db9b2c3b60cca6efd34d1a047be81b6a05b51cc6..e3a39fe2480f7f3fdf209a93dc9f663e72b6f6f6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 
index 085d0bc1fdcee5ab35829243fab267a6ef582161..ca3021b213687aa5b5499c41df06e3f33ac8948c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index bd28320ffb6771e1c332f63c5cf83cdeb1cf5b02..d2b0d9dac0a1ae88fd2c2f3fa1e8c871c230c19d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_parens)]
 #![allow(non_camel_case_types)]
 
 
index d77d9c7e163b21841ad01c5916d4b5fa6521aeb1..bbf810abb9f58a610348da00ffc292408eb3f417 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 struct Foo(isize, isize, isize);
index 9cef1c834760283165448deb6020be31c69dff90..7aaaef9434736f993e207eb060a764983ddd9280 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 enum Foo {
index 7a8e27ca20b3bbe1cd0201fbf57f9337edf02050..b4654b553a4eff99a9ed49514de316c4813a7972 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 00a7acfa94fd97601bc115cfc4966eff95beb8b8..58abd373f0a095243f7cf3baab67b42b7d5c3845 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 use std::thread;
 use std::sync::Mutex;
 
index be671084c84f9abfc5a305338e9140547b1d0d5b..a03a3f50c51f14abb96458817cccb3e71fd974d4 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index e1aaf6d220eedc453e7d03220d198caaa1ddc054..a855bc5148052d4f1d67706c195d0ff8dc0aeac8 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
+#![allow(unused_mut)]
 // pretty-expanded FIXME #23616
 
 use std::sync::mpsc::{channel, Sender};
index 2e82a278f3d318a7ae8441137597e5e3a87aa521..1dcd7c948683a6bf7352139f72bb891c0d3ab35b 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(non_camel_case_types)]
 
 // Test that a class with only sendable fields can be sent
index 39fbba0436130d15745c1adb9647feccf46f5498..1e1382df60fcdb53e840474e423f84aacf86d8f1 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index e582cff43abf1e5ed06ce158dc8e3596d8f703eb..38fc9dec82971b72bbc689328514359bb841e7f0 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(unused_mut)]
 // ignore-windows
 // exec-env:RUST_LOG=debug
 // ignore-emscripten no threads support
index 1626b23fdc2f9b42a19284d26d5253b7b25f59e8..955304a5c4564ad51b7cbfa0588a18c3507c1300 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 975789e8cd25f1929656c5dc9871901275226b72..0059403c3bb0b34e7cd0b8d1e68ddf60c0eee826 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index cbb2252009340eb23372490ce8a4f8637e5106dc..2fadece739fceada315baabfc9a5d992bb889df5 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(unused_mut)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 28710116dc3202445cc919301fb9f0d9a83730f4..7ecb62364fb5b5ed06f3834abaf4148b2b38f20b 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // pretty-expanded FIXME #23616
 // ignore-emscripten no threads support
 
index e6195bf011b782dc8436d74e2af7402512084c7e..6c8e456bcdfb93b42c032faafd85459ff7a68cd5 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(unused_mut)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 2276fd8031fc5920f660db300845cc3c9bfef3a6..6afc031ffb154ac27f0e5fc6a726b8933b38fa2a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // ignore-emscripten no threads support
 
 use std::sync::mpsc::{channel, Sender};
index f6a96a84eb69519aab6fd466ef520fc97ab1b5cc..7b5336a0551fe77d6ecaf85e9a605cdef39a2516 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_parens)]
 // ignore-emscripten no threads support
 
 use std::sync::mpsc::{channel, Sender};
index 0398b55720d4120530225445922dcd563672c57b..fdf17d3ce6f720363836fdbb3d5a4264f1a3014c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 // pretty-expanded FIXME #23616
 
index d98766f9194167dc61f5cd7cf1272cbf035246ea..1732411629e524f1349950f2ea81bf9c6b412635 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_parens)]
 #![allow(non_camel_case_types)]
 
 use std::sync::mpsc::channel;
index 53a233da820a023cc542618d8734ac95bcef5939..8dce1f7e31e698a9fe5c46b19a4f12dcd05f49da 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 // pretty-expanded FIXME #23616
 
index d18ed1c567caa672d6eaa9ce0b2e9a4dc870642a..9d3985fcde6d4c5bd065ea8158f0f3505a9eb48d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 47cbf8ec98a21d34a0ef5c5c9a601494570ad30d..f6101498a0555ff374aa187b47710325fdabfffa 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 
 use std::sync::mpsc::channel;
 
index 83eb36728ef5270c0586622cdfd457c1a16a4d2b..7564e640371eff96a23531cdd7e4f4ae91e21851 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_assignments)]
 
 use std::sync::mpsc::channel;
 
index 6bf1bad07c1c39f0be62cb0630bd2ed51701ba68..de7efc4159d81fcb9b828302c4ce83487a28e6fa 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
+#![allow(unused_assignments)]
 // ignore-emscripten no threads support
 
 use std::sync::mpsc::{channel, Sender};
index f23a15945075a27d3106a222ddf8deaab3f4044f..01d749cba4cfb5546ce8d7832ae2bd08a4e504a0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 8ec7c871c6836c1b40d1ad1306747d6b13194ce0..48d8c8e50b7602a03ea9352bd78c24a18e17fb09 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 // pretty-expanded FIXME #23616
 
index 65e2236f2e1101c0d84a6c76b00d325c981ad623..04adacd689c1379c225e93738385bde54ce92e88 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 #![feature(box_syntax)]
index 7be239e29fb8ed96fc6c242ffb5ad9e0f2c8ba1a..51d2d356b00750552c228daddd030bee3f9d6d6f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 use std::thread;
index 79c2108ba83392c321684f0a2693cce9eb5eb280..f4d824557e554ed83c49023b08bd655227feeb32 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_doc_comments)]
 #![feature(optin_builtin_traits)]
 
 auto trait Auto {}
index c195839800549b9a066b4f06dfbf58d9b13506f8..9328c86bd7e5510a27876549813cb5aa6c3a8341 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Test a case where a supertrait references a type that references
 // the original trait. This poses no problem at the moment.
 
index 76cfaf2c68ef59fa149028495ce3a839aa127dbd..f25ce8423117875f5de4b1800b69ea76ad2048d3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index d53619d0c9d00468ffc508e39cf26f5cb7be1439..f2956d38331011e3f5e1f74d0346c9ceb706778b 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test that when we match a trait reference like `Foo<A>: Foo<_#0t>`,
 // we unify with `_#0t` with `A`. In this code, if we failed to do
 // that, then you get an unconstrained type-variable in `call`.
index 5a468e0d6449a871ae692f72cdd11643ec0f91e0..ae2f0d31af2785fc3a564b4c0989da27f0fd9c5a 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Testing creating two vtables with the same self type, but different
 // traits.
 
index d9a051ee02e005fc4578a714f143b446f7ceb722..991d482c15be3befca990e0d5a47a3c66cb2fdc4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![feature(overlapping_marker_traits)]
 #![feature(optin_builtin_traits)]
 
index c3c37d6b9c024f700b3a8f0f18cf6d847dded299..984089b4d11a865ed9193afd6668409a8add4130 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 // There is some other borrowck bug, so we make the stuff not mut.
index 89b49b11f010e82d60914a032a5a9805f5157f8d..a77099b4257f1b3a0601dcf6af4090702e572935 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #![feature(optin_builtin_traits)]
index 1a2621f767940189247e01864a8e61dbc5fceb63..81b410b7777e89f332a5d694c59dfde77b58e861 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(unconditional_recursion)]
 
 // pretty-expanded FIXME #23616
index 35210be34781425f335140b40901dddb0adfb656..0b67f492d452127cce028884f9d348004126c9d7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // Tests that a heterogeneous list of existential types can be put inside an Arc
 // and shared between threads as long as all types fulfill Send.
 
index 1b32c51aa85d7301f0c0aed5c7f3256f0f2bc373..aa6b845bb01394cd410c94835579294a921018e1 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 trait U {}
index 3c433b58a3a9a8c0f6aa295d2e9b72f6f536f56d..20a9bd47d0e5078e5c51250589e14b82d7ded297 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
 
index 2b64bb005e924350bad7b4f62eae578cfb9d77cf..541c6e19b23724c04d04fc13d237b3fa335e29ed 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 trait Trait<T> {
     fn f(&self, x: T);
 }
index 18fc122439bc2c0751ff27f4d51d99b70b5b3cba..948f2e7afafe24bcb30c8e049dbdf8f9f41f2a47 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 #![feature(box_syntax)]
 
 use std::io::{self, Write};
index 2d2ea50a1fd5e0ca29b9aa7d3bf67e08e141de58..1035c9a1751b09f9eedc79bd17d0d163c13c393a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // "guessing" in trait selection can affect `copy_or_move`. Check that this
 // is correctly handled. I am not sure what is the "correct" behaviour,
 // but we should at least not ICE.
index 70c440c7665821774b59717d585f6e3547fbaa75..6f3e2e1e72b0cdada1bd7bb5ecd5126c70e3b05c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 
 trait A<T> {
index 426b3e2ad79464f6b73ce434ee5affdeb0d92214..da84e8992cd57f3a9de9f0dff6e6c632a59978d4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // aux-build:trait_default_method_xc_aux.rs
index 8fadb09377f8ac455978d53a24ba95d5cf91b362..52657042dd828d351de739aa00a282ccde4d4ca7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 // pretty-expanded FIXME #23616
index d6b3d900a0905f197d44971d1738227699d59f51..17d4d42e0c044bf128a6e492efa25dec673c24d2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // aux-build:trait_inheritance_auto_xc_aux.rs
 
 
index 698f8ac23dde0c4c8c2ce0cd07665dde4bac38d2..4d61e42445dd7cb1e0375cf9edfce30e89cca3b8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Testing that this impl turns A into a Quux, because
 // A is already a Foo Bar Baz
 
index 566d59f460e0eed868542af9ef07df322e720fb3..6a6bd9c7be54db6452d37ac1afa5cbd2b84f42b6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait Foo { fn f(&self) -> isize; }
 trait Bar : Foo { fn g(&self) -> isize; }
index a769da5e2cb514588b51e21f290962ff6100ff77..c8d8c3d62a2fe8407198a1fd654ead76da334fc8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait Foo { fn f(&self) -> isize; }
 trait Bar : Foo { fn g(&self) -> isize; }
index 00d74ca07810dccbd129d00cc2ed1eb150335c51..5410c5c79adf7a2ad4cf78ad82920f21f265243a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Testing that we can cast to a subtrait and call subtrait
 // methods. Not testing supertrait methods
 
index f2d1cb0cb3d07f86cd6da9b18a698fa8a36924d0..084a7d8440d96091fbdf4c86341a9206ad24312f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Testing that supertrait methods can be called on subtrait object types
 
 
index 3a57fc525b26182e716d109233cadfed0402f29c..29d54ed697d7fd22a20429d9d2b5389a0ffadf93 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait Foo { fn f(&self) -> isize; }
 trait Bar : Foo { fn g(&self) -> isize; }
index bf66d50d1592998fc2875521e1cf274955f3d8ce..47b3c7446e893a4e6a138a377f09a00a62d3e431 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // B and C both require A, so D does as well, twice, but that's just fine
 
 
index b9a9795c6c0dc303ca3bfe0b1b991f5ef8a7faf5..163914e7462d205909175a74c19f1ac7db59f0f8 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait A { fn a(&self) -> isize; }
 trait B: A { fn b(&self) -> isize; }
index 5e6aa85498c7f9f4218072cbc110865cc6ec71b5..1a08099aa040ca1d05b10c32091a9e4212a9b1c5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait A { fn a(&self) -> isize; }
 trait B: A { fn b(&self) -> isize; }
index 9d4c9f431ddb99fbd8aa8e50750183a24764a333..cd269eac9a40fee00b2825bd17a58e966b5ffb21 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 pub trait NumExt: PartialEq + PartialOrd {}
index 0d57dee49a17cbe2e7e6f831022665b7f9ac7803..7ff30118c86374967a76023336702dc8a723cf11 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Extending Num and using inherited static methods
 
 // pretty-expanded FIXME #23616
index e2a4f4154f9f2b8cb8f994727375f061c9619178..4b47ab58b1d02507cf06690ba7ddec62f45ea6a5 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 pub trait NumCast: Sized {
index ff2f6b2d8250e3910fee5d2e24f57135998fb23e..374246da2855cb7ff43510e52ede8061e9099b6d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 use std::cmp::PartialEq;
 
 trait MyNum : PartialEq { }
index 379a98cdebe5b754f53009734ef0b26310a9ecc6..7da4647f65218ff4307705fd691707fc430f238e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait Foo { fn f(&self) -> isize; }
 trait Bar : Foo { fn g(&self) -> isize; }
index 01088d655378d57ec3e35031e3e843e046ac3bd3..22c3b30c9e4560e2cfce4bd910d67d1f86603938 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 trait Foo { fn f(&self) -> isize; }
 trait Bar { fn g(&self) -> isize; }
index c33482e8a710a8b019ead86fa9265af1fd99d502..0d9728210f2944aeae843adb435ec4bd7aebf63a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 // Test that duplicate auto trait bounds in trait objects don't create new types.
 #[allow(unused_assignments)]
 
index 25307e822ffd36bd5b738a697d15c019d0349310..76ec05aba34f2e66f3c2215fda9a652d421b302d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 mod base {
     pub trait HasNew {
         fn new() -> Self;
index 3a732aabbf74ba5bfd3f3e09a5ff8cc05257829b..e811cc7d6e120d947c2a48a2c355740741e32847 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // Test that when there is a conditional (but blanket) impl and a
 // where clause, we don't get confused in trait resolution.
 //
index cc5ce571a4e108acf0bbbde4b537affe9b499c2a..106774bd33797fee895bc0303a4d91704cf6b151 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // A model for how the `Fn` traits could work. You can implement at
 // most one of `Go`, `GoMut`, or `GoOnce`, and then the others follow
 // automatically.
index 7cfdae9e652b78b74ee0c98ff1ad347c2f4db50b..c83856f03528498256d747b3e8cf8ce618016a84 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 // pretty-expanded FIXME #23616
 
 #![allow(unused_variables)]
index 0e80d20ad45166e9d879a8fd2acdfb097ed328f3..6766d6616227bb935d8e5d4c56065428246aed90 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Regression test for issue #22655: This test should not lead to
 // infinite recursion.
 
index 96c86f147ce219cde36b43a2c70911bbb88f4073..0740ab01104b78db94982caadf56778137ca029e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 #![feature(optin_builtin_traits)]
 
 use std::marker::Send;
index eebd30a01f9f21e9f0c73b81454bdcced9691a2d..6c134611312488d53148703551405d21153e3fd2 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that you can supply `&F` where `F: FnMut()`.
 
 #![feature(lang_items)]
index 52a10869610cb5e8964b7300c569163d580d42f7..966458a45f367cf784faad84845ba3a6e6b35d57 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that you can supply `&F` where `F: Fn()`.
 
 #![feature(lang_items)]
index b178f0af909a7652c95961ec4a0403502576024b..adfdc0d26e90a64fab43b0cd8fe535a91bd61ea6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 // Test that the call operator autoderefs when calling a bounded type parameter.
 
 use std::ops::FnMut;
index dc6903db326c453539414263e1bf727be54d7728..4ebf6b61cc3a963fc8520e21ec3a233a3e826c70 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // Test that we mutate a counter on the stack only when we expect to.
 
 fn call<F>(f: F) where F : FnOnce() {
index 1f84db7f72058790c4fbce7ea8dd7ac8ea8e9dc8..46a69c4dff29521c3c4abb6e699e292cc2fc64ac 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 // pretty-expanded FIXME #23616
 
 fn main() {
index 02edd01ac187e987170c60c3834b38f465ea3bf1..46ea9b29e4488154b946491bba2c8e4ebf200768 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(path_statements)]
+#![allow(dead_code)]
 // A battery of tests to ensure destructors of unboxed closure environments
 // run at the right times.
 
index b7230ed5d82a3426560121ee0d37f341f07332a7..3f50c7e7262955aeb1c22702aa2263b23e910556 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_imports)]
 use std::ops::FnMut;
 
 pub fn main() {
index ae9124c9fc14213fa771fb4a6436be06fbdb3408..cf8fe03e3e5332b58abf01fbc73c043fe3908fb0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 // pretty-expanded FIXME #23616
 
 fn main() {
index 1aaa1e70726c88295a352c3959f50b23bbd4fe37..a0256187dbba8e5f5eb03d49a7f505e2bbf8955d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 #![allow(non_camel_case_types)]
 
 // edition:2018
index 7d997fe493a7bc01b53ccf4c4f2d48e0d6e9a974..b957b24d6251e61a3a75078c4442e46f8634406a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 #![allow(non_camel_case_types)]
 
 // edition:2018
index 02f447c626f84ca35c3bceb400d66ba12ef3ac32..2ba1b97e4ff91912b2eb416b4aa57481d6958a92 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 #![feature(untagged_unions)]
 
index 23d51d39c2ed04b136537bceed804811c205fdaa..b274a101ee90c6d79e3304685c89812d5db0ebd6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(path_statements)]
+#![allow(dead_code)]
 
 macro_rules! union {
     () => (struct S;)
index bfbac1a6bf203e81e4be1c2e03db7bca556de40e..9bebe3f265e2572a07d6696fba53fef403ee6fe7 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 
 // aux-build:union.rs
 
index 248595ee7ac025b4a6bdf4a46c13f545d112cfa3..6050178081608576bb6e5ed440c008c2b84f0ded 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(unions_with_drop_fields)]
 
 // Some traits can be derived for unions.
index 2884cf16b967be69b2af55f6e6c22698908a96d3..d147fcd0f0935209ef7672439fd66a4308f23e12 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 #![allow(unions_with_drop_fields)]
 
 // Drop works for union itself.
index ba5c20b6dc3c6825d2763fa1cfa63d640d81a06d..7d955f7210f92918067145faebbe9be0c156c9b6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 #![allow(unions_with_drop_fields)]
 
 // Drop works for union itself.
index dcea56c288f969b9b145ce5aca89e9d9f5326120..efa623841c1453b9c0fe8b67e260da94b3ba146f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(unions_with_drop_fields)]
 
 #![feature(untagged_unions)]
index f4ffa2edbde09cba334651fecf6bdf014686096d..ae215dc83ee8b3d987e473fc562daf65e969ea69 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 
 macro_rules! duplicate {
    ($i: item) => {
index c167a40507a81abe9b6e723e8bc351b64c4ba090..a6aef9046eeb21831193acaf8b57da10a96afd95 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_snake_case)]
 
 #![feature(untagged_unions)]
index 2c481160fdad4219ea980311ef094724d5f31399..62a023379868ea92bf6cdf3d1d55b6c1b5929ebd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(illegal_floating_point_literal_pattern)]
 
 #[repr(u32)]
index dd93148019610708941cd77bb874e23e3a0e48fa..fc99a8969665b62529bf03a7a13a06c8bee0006d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 
 #![feature(box_syntax)]
 
index 206503f87ce9320875f3e5f78f83d8336372f3f6..ee6c084410d6f5baecc2dba543ae8516f315c7bd 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 #![feature(box_syntax)]
 
 pub fn main() {
index b11b1a8cdbc863ea499960fa9f3893c40dc8becd..5c17058dbe4e798dc9cd0be2d492d54a3ea7504f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_allocation)]
 #![feature(box_syntax)]
 
 pub fn main() {
index d849c1d32981b106363445d30f5ffb2b9e965e10..f2a7de67183702c4e307960e2e346abd9f2dee5d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 // pretty-expanded FIXME #23616
index 5c7488b1120d0322f2b565e2381095091ec48b02..da0ae17a4cd97d5a2bb7ebcbf6a5794d32f97ce0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // pretty-expanded FIXME #23616
 
 #![feature(box_syntax)]
index 37b8b94b15a42df45842fe66d1c4337bbb2365d2..9b1425381b687a81eefe83184dc58e9fb7e1aeb9 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 
 pub fn main() {
index 571a5620cd8dc1ca6dc9b607a21aa601d2448f35..beb3b2fbb48cd234299e7aa3785f3284f5e3d578 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Issue #976
 
 
index 31fe43dae998b45bae8236bf9e85c4f4afaaf7c2..52473bd8e8929694f6eff3a71865940063947283 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 #![feature(box_syntax)]
index 43004e8673aa13e9ed86551d6380052ed9d8f132..e3ceadee1a508b84c755a1024b28b7a4062be1c3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Issue #961
 
 // pretty-expanded FIXME #23616
index a68fe021d09cf86289efac47cf6ec3cfb896155d..e006e1e4f23736520abf461e0c2169aae7ea7371 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 #![feature(box_syntax)]
 
 pub fn main() {
index 4dba48a5ea0a6ed0ccc2d32548761e2027371669..0a1b80c33df27858c2966736f06f4cb4a79cc9c6 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
 #![feature(box_syntax)]
 
 pub fn main() {
index d85b22f5dc9775628e0f1203bf15a648ae94cf7f..472257b8c799f5cf30e1c3f960d0c8541fbc1978 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 // Issue #5192
 
 // pretty-expanded FIXME #23616
index 3796be6836957b2942ef90512f7c47840bc293aa..0adf23ceeac48cec10e821514de0deb1592be7cf 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![allow(non_shorthand_field_patterns)]
 
index 2ed984c3a37b06ba6157c7f1728aef4b38e39a6c..8deda0e30893800bfc282e8bf082f9907937aea0 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
 #![feature(box_syntax)]
index 285772b95411cefaafb99c77039d52ec342af840..f34a7c2cd00f66152d36c7a55e1fd9aad0e1d97f 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_must_use)]
 // ignore-emscripten no threads support
 
 #![feature(box_syntax)]
index 3afccab07b73fc4c29633ca625a7d8ac7ae11bc4..bb9d01a57c140be1aa42897c2bbe6c23871b1460 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 trait Foo<T> { fn dummy(&self, arg: T) { } }
index 445a090d601418b320e5a495ae9885cc4b5c53a5..5a296c17df08c403f8c74fed9e05b6f23b515c18 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 struct A<'a, 'b> where 'a : 'b { x: &'a isize, y: &'b isize }
index 22b1acb2a60bff5c97992ee6a64c7b7cee74b544..fc51191451740c9fdf2832c7aa72530412073200 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 fn foo<'a, I>(mut it: I) where I: Iterator<Item=&'a isize> {}
index c3cfbbda4ea684d4097e56dd3d8b93a2c873a0fb..79d1431eca5016b415ab30e04cd4ec7c2302a68a 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 // pretty-expanded FIXME #23616
 
 struct Bencher;
index 4ab329f166a2bb7f2405ae0be0d4d32bee58e81f..118e83537ca97952d2ab9932d98137eb5e85b815 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 use std::collections::BinaryHeap;
 use std::iter::Iterator;
 
index 5e406152d935fea06a954f23bb925c7938a7e679..a2c0f78850c7597d1fedf5bc7602c2ce96e2d2b2 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
+#![allow(unused_imports)]
 use std::cmp::{Ord, Ordering, PartialOrd};
 use std::collections::BTreeMap;
 use std::iter::Iterator;
index dd8b717761b3ecd217c66926f792075754fd3168..d418535bf9fe0c084604db5b5287c8f541e5a0dc 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_variables)]
 use std::iter::Iterator;
 use std::vec::Vec;