Skip to content
Permalink
Browse files

Update tests

  • Loading branch information
petrochenkov committed Jan 8, 2020
1 parent 41318e9 commit 642669c74d97b79a9a9f7300dfac3bb86bb75d97
Showing with 2,841 additions and 355 deletions.
  1. +1 −0 src/test/compile-fail/consts/const-fn-error.rs
  2. +1 −0 src/test/compile-fail/issue-52443.rs
  3. +2 −0 src/test/ui-fulldeps/lint-plugin-forbid-attrs.rs
  4. +19 −1 src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr
  5. +2 −0 src/test/ui-fulldeps/lint-plugin-forbid-cmdline.rs
  6. +17 −1 src/test/ui-fulldeps/lint-plugin-forbid-cmdline.stderr
  7. +12 −0 src/test/ui-fulldeps/lint-tool-cmdline-allow.stderr
  8. +6 −1 src/test/ui-fulldeps/lint-tool-test.rs
  9. +37 −7 src/test/ui-fulldeps/lint-tool-test.stderr
  10. +3 −0 src/test/ui/associated-type-bounds/duplicate.rs
  11. +39 −15 src/test/ui/associated-type-bounds/duplicate.stderr
  12. +1 −0 src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-no-fg.rs
  13. +9 −1 src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-no-fg.stderr
  14. +8 −0 src/test/ui/async-await/unresolved_type_param.rs
  15. +25 −1 src/test/ui/async-await/unresolved_type_param.stderr
  16. +1 −0 src/test/ui/attributes/register-attr-tool-import.rs
  17. +13 −1 src/test/ui/attributes/register-attr-tool-import.stderr
  18. +1 −0 src/test/ui/borrowck/regions-bound-missing-bound-in-impl.rs
  19. +22 −3 src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr
  20. +1 −0 src/test/ui/consts/const-eval/const-eval-overflow-2.rs
  21. +7 −1 src/test/ui/consts/const-eval/const-eval-overflow-2.stderr
  22. +1 −0 src/test/ui/consts/const-eval/ref_to_int_match.rs
  23. +8 −2 src/test/ui/consts/const-eval/ref_to_int_match.stderr
  24. +1 −0 src/test/ui/consts/enum-discr-type-err.rs
  25. +18 −1 src/test/ui/consts/enum-discr-type-err.stderr
  26. +1 −0 src/test/ui/consts/match_ice.rs
  27. +8 −2 src/test/ui/consts/match_ice.stderr
  28. +1 −0 src/test/ui/consts/miri_unleashed/const_refers_to_static.rs
  29. +8 −2 src/test/ui/consts/miri_unleashed/const_refers_to_static.stderr
  30. +1 −0 src/test/ui/consts/transmute-size-mismatch-before-typeck.rs
  31. +9 −3 src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr
  32. +1 −0 src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs
  33. +14 −1 src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr
  34. +1 −1 src/test/ui/deduplicate-diagnostics.rs
  35. +5 −1 src/test/ui/derives/derives-span-PartialOrd-enum-struct-variant.rs
  36. +37 −1 src/test/ui/derives/derives-span-PartialOrd-enum-struct-variant.stderr
  37. +5 −1 src/test/ui/derives/derives-span-PartialOrd-enum.rs
  38. +37 −1 src/test/ui/derives/derives-span-PartialOrd-enum.stderr
  39. +5 −1 src/test/ui/derives/derives-span-PartialOrd-struct.rs
  40. +37 −1 src/test/ui/derives/derives-span-PartialOrd-struct.stderr
  41. +5 −1 src/test/ui/derives/derives-span-PartialOrd-tuple-struct.rs
  42. +37 −1 src/test/ui/derives/derives-span-PartialOrd-tuple-struct.stderr
  43. +2 −0 src/test/ui/derives/deriving-bounds.rs
  44. +27 −3 src/test/ui/derives/deriving-bounds.stderr
  45. +1 −0 src/test/ui/derives/deriving-meta-unknown-trait.rs
  46. +7 −1 src/test/ui/derives/deriving-meta-unknown-trait.stderr
  47. +1 −0 src/test/ui/derives/deriving-primitive.rs
  48. +7 −1 src/test/ui/derives/deriving-primitive.stderr
  49. +8 −0 src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.rs
  50. +73 −9 src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr
  51. +1 −0 src/test/ui/error-codes/E0030.rs
  52. +7 −1 src/test/ui/error-codes/E0030.stderr
  53. +5 −1 src/test/ui/error-codes/E0452.rs
  54. +31 −1 src/test/ui/error-codes/E0452.stderr
  55. +2 −0 src/test/ui/error-codes/E0453.rs
  56. +19 −1 src/test/ui/error-codes/E0453.stderr
  57. +1 −0 src/test/ui/error-codes/E0565.rs
  58. +7 −1 src/test/ui/error-codes/E0565.stderr
  59. +9 −1 src/test/ui/error-codes/E0602.stderr
  60. +3 −0 src/test/ui/feature-gate/issue-43106-gating-of-derive-2.rs
  61. +21 −3 src/test/ui/feature-gate/issue-43106-gating-of-derive-2.stderr
  62. +1 −0 src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.rs
  63. +9 −3 src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.stderr
  64. +1 −0 src/test/ui/feature-gate/issue-43106-gating-of-stable.rs
  65. +9 −3 src/test/ui/feature-gate/issue-43106-gating-of-stable.stderr
  66. +1 −0 src/test/ui/feature-gate/issue-43106-gating-of-unstable.rs
  67. +9 −3 src/test/ui/feature-gate/issue-43106-gating-of-unstable.stderr
  68. +1 −0 src/test/ui/feature-gates/feature-gate-external_doc.rs
  69. +10 −1 src/test/ui/feature-gates/feature-gate-external_doc.stderr
  70. +2 −0 src/test/ui/feature-gates/feature-gate-lint-reasons.rs
  71. +19 −1 src/test/ui/feature-gates/feature-gate-lint-reasons.stderr
  72. +2 −0 src/test/ui/generator/auto-trait-regions.rs
  73. +26 −2 src/test/ui/generator/auto-trait-regions.stderr
  74. +1 −0 src/test/ui/hrtb/hrtb-perfect-forwarding.rs
  75. +10 −1 src/test/ui/hrtb/hrtb-perfect-forwarding.stderr
  76. +38 −2 src/test/ui/hrtb/issue-30786.nll.stderr
  77. +6 −1 src/test/ui/hrtb/issue-30786.rs
  78. +1 −0 src/test/ui/impl-trait/auto-trait-leak.rs
  79. +41 −6 src/test/ui/impl-trait/auto-trait-leak.stderr
  80. +2 −0 src/test/ui/imports/issue-55457.rs
  81. +17 −1 src/test/ui/imports/issue-55457.stderr
  82. +1 −0 src/test/ui/imports/local-modularized-tricky-fail-1.rs
  83. +26 −3 src/test/ui/imports/local-modularized-tricky-fail-1.stderr
  84. +1 −0 src/test/ui/imports/macros.rs
  85. +23 −5 src/test/ui/imports/macros.stderr
  86. +1 −0 src/test/ui/issues/issue-17718-const-bad-values.rs
  87. +7 −1 src/test/ui/issues/issue-17718-const-bad-values.stderr
  88. +1 −0 src/test/ui/issues/issue-20831-debruijn.rs
  89. +43 −1 src/test/ui/issues/issue-20831-debruijn.stderr
  90. +1 −0 src/test/ui/issues/issue-32963.rs
  91. +12 −1 src/test/ui/issues/issue-32963.stderr
  92. +1 −0 src/test/ui/issues/issue-33571.rs
  93. +13 −1 src/test/ui/issues/issue-33571.stderr
  94. +4 −0 src/test/ui/issues/issue-34229.rs
  95. +37 −1 src/test/ui/issues/issue-34229.stderr
  96. +1 −0 src/test/ui/issues/issue-36617.rs
  97. +9 −1 src/test/ui/issues/issue-36617.stderr
  98. +16 −0 src/test/ui/issues/issue-41255.rs
  99. +80 −8 src/test/ui/issues/issue-41255.stderr
  100. +1 −0 src/test/ui/issues/issue-43105.rs
  101. +7 −1 src/test/ui/issues/issue-43105.stderr
  102. +1 −0 src/test/ui/issues/issue-46101.rs
  103. +7 −1 src/test/ui/issues/issue-46101.stderr
  104. +1 −0 src/test/ui/issues/issue-50480.rs
  105. +7 −1 src/test/ui/issues/issue-50480.stderr
  106. +1 −0 src/test/ui/issues/issue-53251.rs
  107. +10 −1 src/test/ui/issues/issue-53251.stderr
  108. +1 −0 src/test/ui/issues/issue-59029-1.rs
  109. +7 −1 src/test/ui/issues/issue-59029-1.stderr
  110. +3 −2 src/test/ui/issues/issue-62554.rs
  111. +50 −10 src/test/ui/issues/issue-62554.stderr
  112. +3 −1 src/test/ui/issues/issue-6804.rs
  113. +10 −1 src/test/ui/issues/issue-6804.stderr
  114. +2 −0 src/test/ui/lint/lint-forbid-attr.rs
  115. +19 −1 src/test/ui/lint/lint-forbid-attr.stderr
  116. +2 −0 src/test/ui/lint/lint-forbid-cmdline.rs
  117. +17 −1 src/test/ui/lint/lint-forbid-cmdline.stderr
  118. +5 −1 src/test/ui/lint/lint-malformed.rs
  119. +31 −1 src/test/ui/lint/lint-malformed.stderr
  120. +12 −0 src/test/ui/lint/lint-removed-cmdline.stderr
  121. +12 −0 src/test/ui/lint/lint-renamed-cmdline.stderr
  122. +3 −0 src/test/ui/lint/lint-stability-deprecated.rs
  123. +90 −72 src/test/ui/lint/lint-stability-deprecated.stderr
  124. +24 −0 src/test/ui/lint/lint-unexported-no-mangle.stderr
  125. +19 −1 src/test/ui/lint/lint-unknown-lint-cmdline.stderr
  126. +6 −0 src/test/ui/lint/outer-forbid.rs
  127. +57 −3 src/test/ui/lint/outer-forbid.stderr
  128. +46 −0 src/test/ui/lint/reasons-erroneous.rs
  129. +146 −8 src/test/ui/lint/reasons-erroneous.stderr
  130. +8 −0 src/test/ui/lint/reasons-forbidden.rs
  131. +24 −2 src/test/ui/lint/reasons-forbidden.stderr
  132. +4 −0 src/test/ui/macros/builtin-std-paths-fail.rs
  133. +36 −12 src/test/ui/macros/builtin-std-paths-fail.stderr
  134. +1 −0 src/test/ui/macros/meta-item-absolute-path.rs
  135. +7 −1 src/test/ui/macros/meta-item-absolute-path.stderr
  136. +3 −0 src/test/ui/match/match-range-fail-2.rs
  137. +21 −3 src/test/ui/match/match-range-fail-2.stderr
  138. +1 −1 src/test/ui/parser/issue-62973.rs
  139. +12 −1 src/test/ui/parser/issue-62973.stderr
  140. +1 −1 src/test/ui/parser/issue-63135.rs
  141. +10 −1 src/test/ui/parser/issue-63135.stderr
  142. +1 −1 src/test/ui/parser/missing_right_paren.rs
  143. +10 −1 src/test/ui/parser/missing_right_paren.stderr
  144. +2 −0 src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.rs
  145. +28 −12 src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.stderr
  146. +2 −1 src/test/ui/pattern/patkind-litrange-no-expr.rs
  147. +7 −1 src/test/ui/pattern/patkind-litrange-no-expr.stderr
  148. +4 −0 src/test/ui/pattern/usefulness/match-range-fail-dominate.rs
  149. +20 −2 src/test/ui/pattern/usefulness/match-range-fail-dominate.stderr
  150. +1 −0 src/test/ui/privacy/privacy1.rs
  151. +10 −4 src/test/ui/privacy/privacy1.stderr
  152. +3 −0 src/test/ui/privacy/private-in-public-assoc-ty.rs
  153. +28 −4 src/test/ui/privacy/private-in-public-assoc-ty.stderr
  154. +1 −0 src/test/ui/proc-macro/issue-50493.rs
  155. +8 −2 src/test/ui/proc-macro/issue-50493.stderr
  156. +1 −0 src/test/ui/proc-macro/macro-namespace-reserved-2.rs
  157. +12 −6 src/test/ui/proc-macro/macro-namespace-reserved-2.stderr
  158. +4 −0 src/test/ui/proc-macro/resolve-error.rs
  159. +34 −10 src/test/ui/proc-macro/resolve-error.stderr
  160. +24 −0 src/test/ui/range/range_traits-1.rs
  161. +227 −11 src/test/ui/range/range_traits-1.stderr
  162. +1 −0 src/test/ui/regions/regions-close-object-into-object-5.rs
  163. +16 −1 src/test/ui/regions/regions-close-object-into-object-5.stderr
  164. +2 −0 src/test/ui/regions/regions-normalize-in-where-clause-list.rs
  165. +73 −1 src/test/ui/regions/regions-normalize-in-where-clause-list.stderr
  166. +2 −0 src/test/ui/repr/repr-align-assign.fixed
  167. +2 −0 src/test/ui/repr/repr-align-assign.rs
  168. +14 −2 src/test/ui/repr/repr-align-assign.stderr
  169. +6 −0 src/test/ui/repr/repr-align.rs
  170. +41 −5 src/test/ui/repr/repr-align.stderr
  171. +2 −0 src/test/ui/rfc-2497-if-let-chains/feature-gate.rs
  172. +23 −5 src/test/ui/rfc-2497-if-let-chains/feature-gate.stderr
  173. +1 −0 src/test/ui/rfc1445/cant-hide-behind-direct-struct-embedded.rs
  174. +7 −1 src/test/ui/rfc1445/cant-hide-behind-direct-struct-embedded.stderr
  175. +1 −0 src/test/ui/rfc1445/cant-hide-behind-direct-struct-param.rs
  176. +7 −1 src/test/ui/rfc1445/cant-hide-behind-direct-struct-param.stderr
  177. +1 −0 src/test/ui/rfc1445/match-forbidden-without-eq.rs
  178. +9 −3 src/test/ui/rfc1445/match-forbidden-without-eq.stderr
  179. +1 −0 src/test/ui/rfc1445/match-nonempty-array-forbidden-without-eq.rs
  180. +7 −1 src/test/ui/rfc1445/match-nonempty-array-forbidden-without-eq.stderr
  181. +1 −0 src/test/ui/rfc1445/match-requires-both-partialeq-and-eq.rs
  182. +7 −1 src/test/ui/rfc1445/match-requires-both-partialeq-and-eq.stderr
  183. +1 −0 src/test/ui/rust-2018/uniform-paths/cross-crate.rs
  184. +13 −1 src/test/ui/rust-2018/uniform-paths/cross-crate.stderr
  185. +2 −0 src/test/ui/rust-2018/uniform-paths/prelude-fail-2.rs
  186. +26 −2 src/test/ui/rust-2018/uniform-paths/prelude-fail-2.stderr
  187. +3 −0 src/test/ui/span/issue-43927-non-ADT-derive.rs
  188. +25 −1 src/test/ui/span/issue-43927-non-ADT-derive.stderr
  189. +12 −0 src/test/ui/suffixed-literal-meta.rs
  190. +107 −11 src/test/ui/suffixed-literal-meta.stderr
  191. +1 −0 src/test/ui/tool-attributes/tool-attributes-misplaced-1.rs
  192. +11 −5 src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr
  193. +2 −0 src/test/ui/tool_lints.rs
  194. +13 −1 src/test/ui/tool_lints.stderr
  195. +1 −0 src/test/ui/tuple/tuple-struct-fields/test2.rs
  196. +7 −1 src/test/ui/tuple/tuple-struct-fields/test2.stderr
  197. +1 −0 src/test/ui/tuple/tuple-struct-fields/test3.rs
  198. +7 −1 src/test/ui/tuple/tuple-struct-fields/test3.stderr
  199. +1 −0 src/test/ui/union/union-const-pat.rs
  200. +7 −1 src/test/ui/union/union-const-pat.stderr
  201. +4 −0 src/test/ui/unknown-lint-tool-name.rs
  202. +26 −2 src/test/ui/unknown-lint-tool-name.stderr
  203. +1 −0 src/test/ui/use/use-super-global-path.rs
  204. +9 −3 src/test/ui/use/use-super-global-path.stderr
@@ -6,6 +6,7 @@ const fn f(x: usize) -> usize {
let mut sum = 0;
for i in 0..x {
//~^ ERROR E0015
//~| ERROR E0015
//~| ERROR E0658
//~| ERROR E0080
//~| ERROR E0744
@@ -8,6 +8,7 @@ fn main() {
//~| WARN denote infinite loops with
[(); { for _ in 0usize.. {}; 0}];
//~^ ERROR calls in constants are limited to constant functions
//~| ERROR calls in constants are limited to constant functions
//~| ERROR `for` is not allowed in a `const`
//~| ERROR references in constants may only refer to immutable values
//~| ERROR evaluation of constant value failed
@@ -10,6 +10,8 @@ fn lintme() { } //~ ERROR item is named 'lintme'

#[allow(test_lint)]
//~^ ERROR allow(test_lint) overruled by outer forbid(test_lint)
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
pub fn main() {
lintme();
}
@@ -7,6 +7,15 @@ LL | #![forbid(test_lint)]
LL | #[allow(test_lint)]
| ^^^^^^^^^ overruled by previous forbid

error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
--> $DIR/lint-plugin-forbid-attrs.rs:11:9
|
LL | #![forbid(test_lint)]
| --------- `forbid` level set here
...
LL | #[allow(test_lint)]
| ^^^^^^^^^ overruled by previous forbid

warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
--> $DIR/lint-plugin-forbid-attrs.rs:5:1
|
@@ -27,6 +36,15 @@ note: lint level defined here
LL | #![forbid(test_lint)]
| ^^^^^^^^^

error: aborting due to 2 previous errors
error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
--> $DIR/lint-plugin-forbid-attrs.rs:11:9
|
LL | #![forbid(test_lint)]
| --------- `forbid` level set here
...
LL | #[allow(test_lint)]
| ^^^^^^^^^ overruled by previous forbid

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0453`.
@@ -8,6 +8,8 @@
fn lintme() { } //~ ERROR item is named 'lintme'

#[allow(test_lint)] //~ ERROR allow(test_lint) overruled by outer forbid(test_lint)
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
pub fn main() {
lintme();
}
@@ -6,6 +6,14 @@ LL | #[allow(test_lint)]
|
= note: `forbid` lint level was set on command line

error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
--> $DIR/lint-plugin-forbid-cmdline.rs:10:9
|
LL | #[allow(test_lint)]
| ^^^^^^^^^ overruled by previous forbid
|
= note: `forbid` lint level was set on command line

warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
--> $DIR/lint-plugin-forbid-cmdline.rs:6:1
|
@@ -22,6 +30,14 @@ LL | fn lintme() { }
|
= note: requested on the command line with `-F test-lint`

error: aborting due to 2 previous errors
error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
--> $DIR/lint-plugin-forbid-cmdline.rs:10:9
|
LL | #[allow(test_lint)]
| ^^^^^^^^^ overruled by previous forbid
|
= note: `forbid` lint level was set on command line

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0453`.
@@ -2,6 +2,10 @@ warning: lint name `test_lint` is deprecated and does not have an effect anymore
|
= note: requested on the command line with `-A test_lint`

warning: lint name `test_lint` is deprecated and does not have an effect anymore. Use: clippy::test_lint
|
= note: requested on the command line with `-A test_lint`

warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
--> $DIR/lint-tool-cmdline-allow.rs:7:1
|
@@ -10,6 +14,10 @@ LL | #![plugin(lint_tool_test)]
|
= note: `#[warn(deprecated)]` on by default

warning: lint name `test_lint` is deprecated and does not have an effect anymore. Use: clippy::test_lint
|
= note: requested on the command line with `-A test_lint`

warning: item is named 'lintme'
--> $DIR/lint-tool-cmdline-allow.rs:9:1
|
@@ -18,3 +26,7 @@ LL | fn lintme() {}
|
= note: `#[warn(clippy::test_lint)]` on by default

warning: lint name `test_lint` is deprecated and does not have an effect anymore. Use: clippy::test_lint
|
= note: requested on the command line with `-A test_lint`

@@ -8,9 +8,12 @@
#![allow(dead_code)]
#![cfg_attr(foo, warn(test_lint))]
//~^ WARNING lint name `test_lint` is deprecated and may not have an effect in the future
//~^^ WARNING lint name `test_lint` is deprecated and may not have an effect in the future
//~| WARNING lint name `test_lint` is deprecated and may not have an effect in the future
//~| WARNING lint name `test_lint` is deprecated and may not have an effect in the future
#![deny(clippy_group)]
//~^ WARNING lint name `clippy_group` is deprecated and may not have an effect in the future
//~| WARNING lint name `clippy_group` is deprecated and may not have an effect in the future
//~| WARNING lint name `clippy_group` is deprecated and may not have an effect in the future

fn lintme() { } //~ ERROR item is named 'lintme'

@@ -25,6 +28,8 @@ pub fn main() {

#[allow(test_group)]
//~^ WARNING lint name `test_group` is deprecated and may not have an effect in the future
//~| WARNING lint name `test_group` is deprecated and may not have an effect in the future
//~| WARNING lint name `test_group` is deprecated and may not have an effect in the future
#[deny(this_lint_does_not_exist)] //~ WARNING unknown lint: `this_lint_does_not_exist`
fn hello() {
fn lintmetoo() { }
@@ -7,19 +7,19 @@ LL | #![cfg_attr(foo, warn(test_lint))]
= note: `#[warn(renamed_and_removed_lints)]` on by default

warning: lint name `clippy_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
--> $DIR/lint-tool-test.rs:12:9
--> $DIR/lint-tool-test.rs:13:9
|
LL | #![deny(clippy_group)]
| ^^^^^^^^^^^^ help: change it to: `clippy::group`

warning: lint name `test_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
--> $DIR/lint-tool-test.rs:26:9
--> $DIR/lint-tool-test.rs:29:9
|
LL | #[allow(test_group)]
| ^^^^^^^^^^ help: change it to: `clippy::test_group`

warning: unknown lint: `this_lint_does_not_exist`
--> $DIR/lint-tool-test.rs:28:8
--> $DIR/lint-tool-test.rs:33:8
|
LL | #[deny(this_lint_does_not_exist)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -32,6 +32,18 @@ warning: lint name `test_lint` is deprecated and may not have an effect in the f
LL | #![cfg_attr(foo, warn(test_lint))]
| ^^^^^^^^^ help: change it to: `clippy::test_lint`

warning: lint name `clippy_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
--> $DIR/lint-tool-test.rs:13:9
|
LL | #![deny(clippy_group)]
| ^^^^^^^^^^^^ help: change it to: `clippy::group`

warning: lint name `test_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
--> $DIR/lint-tool-test.rs:29:9
|
LL | #[allow(test_group)]
| ^^^^^^^^^^ help: change it to: `clippy::test_group`

warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
--> $DIR/lint-tool-test.rs:6:1
|
@@ -40,31 +52,49 @@ LL | #![plugin(lint_tool_test)]
|
= note: `#[warn(deprecated)]` on by default

warning: lint name `test_lint` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
--> $DIR/lint-tool-test.rs:9:23
|
LL | #![cfg_attr(foo, warn(test_lint))]
| ^^^^^^^^^ help: change it to: `clippy::test_lint`

warning: lint name `clippy_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
--> $DIR/lint-tool-test.rs:13:9
|
LL | #![deny(clippy_group)]
| ^^^^^^^^^^^^ help: change it to: `clippy::group`

error: item is named 'lintme'
--> $DIR/lint-tool-test.rs:15:1
--> $DIR/lint-tool-test.rs:18:1
|
LL | fn lintme() { }
| ^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-tool-test.rs:12:9
--> $DIR/lint-tool-test.rs:13:9
|
LL | #![deny(clippy_group)]
| ^^^^^^^^^^^^
= note: `#[deny(clippy::test_lint)]` implied by `#[deny(clippy::group)]`

error: item is named 'lintmetoo'
--> $DIR/lint-tool-test.rs:23:5
--> $DIR/lint-tool-test.rs:26:5
|
LL | fn lintmetoo() { }
| ^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-tool-test.rs:12:9
--> $DIR/lint-tool-test.rs:13:9
|
LL | #![deny(clippy_group)]
| ^^^^^^^^^^^^
= note: `#[deny(clippy::test_group)]` implied by `#[deny(clippy::group)]`

warning: lint name `test_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
--> $DIR/lint-tool-test.rs:29:9
|
LL | #[allow(test_group)]
| ^^^^^^^^^^ help: change it to: `clippy::test_group`

error: aborting due to 2 previous errors

@@ -157,10 +157,13 @@ trait TRW3<T> where T: Iterator<Item: 'static, Item: 'static> {}
//~^ ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
//~^ ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
//~| ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
//~^ ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
//~| ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
//~^ ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
//~| ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
trait TRA1 { type A: Iterator<Item: Copy, Item: Send>; }
//~^ ERROR the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified [E0719]
trait TRA2 { type A: Iterator<Item: Copy, Item: Copy>; }

0 comments on commit 642669c

Please sign in to comment.
You can’t perform that action at this time.