Permalink
Browse files

Auto merge of #55532 - pnkfelix:rustc_error-survey, r=nikomatsakis

#[rustc_error] survey

Fix #55505
  • Loading branch information...
bors committed Nov 8, 2018
2 parents 1d83455 + f4da71e commit 653da4fd006c97625247acd7e076d0782cdc149b
Showing with 449 additions and 1,312 deletions.
  1. +2 −2 src/test/ui/asm/asm-bad-clobber.rs
  2. +4 −4 src/test/ui/asm/asm-misplaced-option.rs
  3. +0 −14 src/test/ui/asm/asm-misplaced-option.stderr
  4. +4 −4 src/test/ui/associated-types/cache/chrono-scan.rs
  5. +0 −8 src/test/ui/associated-types/cache/chrono-scan.stderr
  6. +4 −4 src/test/ui/associated-types/cache/elision.rs
  7. +0 −8 src/test/ui/associated-types/cache/elision.stderr
  8. +4 −4 src/test/ui/bad/bad-lint-cap3.rs
  9. +0 −8 src/test/ui/bad/bad-lint-cap3.stderr
  10. +4 −4 src/test/ui/coherence/coherence-projection-ok-orphan.rs
  11. +0 −8 src/test/ui/coherence/coherence-projection-ok-orphan.stderr
  12. +4 −4 src/test/ui/coherence/coherence-projection-ok.rs
  13. +0 −8 src/test/ui/coherence/coherence-projection-ok.stderr
  14. +4 −4 src/test/ui/coherence/coherence_copy_like_err_fundamental_struct.rs
  15. +0 −8 src/test/ui/coherence/coherence_copy_like_err_fundamental_struct.stderr
  16. +4 −4 src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_ref.rs
  17. +0 −8 src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_ref.stderr
  18. +2 −2 src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.rs
  19. +4 −4 src/test/ui/coherence/coherence_local.rs
  20. +0 −8 src/test/ui/coherence/coherence_local.stderr
  21. +2 −2 src/test/ui/coherence/coherence_local_err_struct.rs
  22. +2 −2 src/test/ui/coherence/coherence_local_err_tuple.rs
  23. +4 −4 src/test/ui/coherence/coherence_local_ref.rs
  24. +0 −8 src/test/ui/coherence/coherence_local_ref.stderr
  25. +4 −4 src/test/ui/conditional-compilation/cfg_attr_path.rs
  26. +0 −11 src/test/ui/conditional-compilation/cfg_attr_path.stderr
  27. +4 −4 src/test/ui/consts/const-fn-stability-calls-3.rs
  28. +0 −10 src/test/ui/consts/const-fn-stability-calls-3.stderr
  29. +5 −5 src/test/ui/expanded-cfg.rs
  30. +0 −8 src/test/ui/expanded-cfg.stderr
  31. +8 −8 src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.rs
  32. +1 −7 src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr
  33. +4 −4 src/test/ui/feature-gate/issue-43106-gating-of-deprecated.rs
  34. +0 −10 src/test/ui/feature-gate/issue-43106-gating-of-deprecated.stderr
  35. +2 −2 src/test/ui/feature-gates/feature-gate-custom_attribute.rs
  36. +4 −4 src/test/ui/glob-cycles.rs
  37. +0 −8 src/test/ui/glob-cycles.stderr
  38. +4 −4 src/test/ui/hygiene/assoc_ty_bindings.rs
  39. +0 −8 src/test/ui/hygiene/assoc_ty_bindings.stderr
  40. +4 −4 src/test/ui/if/if-loop.rs
  41. +0 −8 src/test/ui/if/if-loop.stderr
  42. +4 −4 src/test/ui/imports/import-crate-var.rs
  43. +0 −12 src/test/ui/imports/import-crate-var.stderr
  44. +4 −4 src/test/ui/issues/issue-11740.rs
  45. +0 −11 src/test/ui/issues/issue-11740.stderr
  46. +4 −4 src/test/ui/issues/issue-16994.rs
  47. +0 −10 src/test/ui/issues/issue-16994.stderr
  48. +4 −4 src/test/ui/issues/issue-19601.rs
  49. +0 −9 src/test/ui/issues/issue-19601.stderr
  50. +5 −5 src/test/ui/issues/issue-22603.rs
  51. +0 −10 src/test/ui/issues/issue-22603.stderr
  52. +4 −4 src/test/ui/issues/issue-22789.rs
  53. +0 −11 src/test/ui/issues/issue-22789.stderr
  54. +4 −4 src/test/ui/issues/issue-22933-1.rs
  55. +0 −8 src/test/ui/issues/issue-22933-1.stderr
  56. +4 −4 src/test/ui/issues/issue-24883.rs
  57. +0 −11 src/test/ui/issues/issue-24883.stderr
  58. +4 −4 src/test/ui/issues/issue-26614.rs
  59. +0 −11 src/test/ui/issues/issue-26614.stderr
  60. +4 −4 src/test/ui/issues/issue-26930.rs
  61. +0 −8 src/test/ui/issues/issue-26930.stderr
  62. +4 −4 src/test/ui/issues/issue-29857.rs
  63. +0 −8 src/test/ui/issues/issue-29857.stderr
  64. +4 −4 src/test/ui/issues/issue-31924-non-snake-ffi.rs
  65. +0 −8 src/test/ui/issues/issue-31924-non-snake-ffi.stderr
  66. +4 −4 src/test/ui/issues/issue-32119.rs
  67. +0 −8 src/test/ui/issues/issue-32119.stderr
  68. +4 −3 src/test/ui/issues/issue-32222.rs
  69. +0 −8 src/test/ui/issues/issue-32222.stderr
  70. +4 −3 src/test/ui/issues/issue-32797.rs
  71. +0 −8 src/test/ui/issues/issue-32797.stderr
  72. +4 −3 src/test/ui/issues/issue-32922.rs
  73. +0 −14 src/test/ui/issues/issue-32922.stderr
  74. +4 −3 src/test/ui/issues/issue-33241.rs
  75. +0 −11 src/test/ui/issues/issue-33241.stderr
  76. +4 −3 src/test/ui/issues/issue-34028.rs
  77. +0 −8 src/test/ui/issues/issue-34028.stderr
  78. +4 −3 src/test/ui/issues/issue-34171.rs
  79. +0 −10 src/test/ui/issues/issue-34171.stderr
  80. +4 −3 src/test/ui/issues/issue-34418.rs
  81. +0 −8 src/test/ui/issues/issue-34418.stderr
  82. +4 −3 src/test/ui/issues/issue-34839.rs
  83. +0 −8 src/test/ui/issues/issue-34839.stderr
  84. +4 −3 src/test/ui/issues/issue-35570.rs
  85. +0 −10 src/test/ui/issues/issue-35570.stderr
  86. +4 −4 src/test/ui/issues/issue-36116.rs
  87. +0 −8 src/test/ui/issues/issue-36116.stderr
  88. +4 −3 src/test/ui/issues/issue-36379.rs
  89. +0 −8 src/test/ui/issues/issue-36379.stderr
  90. +4 −3 src/test/ui/issues/issue-36839.rs
  91. +0 −10 src/test/ui/issues/issue-36839.stderr
  92. +5 −4 src/test/ui/issues/issue-37051.rs
  93. +0 −9 src/test/ui/issues/issue-37051.stderr
  94. +5 −4 src/test/ui/issues/issue-37366.rs
  95. +0 −9 src/test/ui/issues/issue-37366.stderr
  96. +4 −3 src/test/ui/issues/issue-37510.rs
  97. +0 −14 src/test/ui/issues/issue-37510.stderr
  98. +4 −4 src/test/ui/issues/issue-37515.rs
  99. +0 −9 src/test/ui/issues/issue-37515.stderr
  100. +5 −4 src/test/ui/issues/issue-38160.rs
  101. +0 −8 src/test/ui/issues/issue-38160.stderr
  102. +4 −3 src/test/ui/issues/issue-38381.rs
  103. +0 −10 src/test/ui/issues/issue-38381.stderr
  104. +3 −4 src/test/ui/issues/issue-40350.rs
  105. +0 −8 src/test/ui/issues/issue-40350.stderr
  106. +0 −8 src/test/ui/issues/issue-40510-1.nll.stderr
  107. +3 −3 src/test/ui/issues/issue-40510-1.rs
  108. +0 −8 src/test/ui/issues/issue-40510-1.stderr
  109. +3 −3 src/test/ui/issues/issue-40510-2.rs
  110. +0 −8 src/test/ui/issues/issue-40510-2.stderr
  111. +0 −8 src/test/ui/issues/issue-40510-3.nll.stderr
  112. +3 −3 src/test/ui/issues/issue-40510-3.rs
  113. +0 −8 src/test/ui/issues/issue-40510-3.stderr
  114. +3 −3 src/test/ui/issues/issue-40510-4.rs
  115. +0 −8 src/test/ui/issues/issue-40510-4.stderr
  116. +3 −3 src/test/ui/issues/issue-41998.rs
  117. +0 −14 src/test/ui/issues/issue-41998.stderr
  118. +2 −2 src/test/ui/lifetimes/lifetime-bound-will-change-warning.rs
  119. +3 −3 src/test/ui/lint/lint-output-format-2.rs
  120. +0 −12 src/test/ui/lint/lint-output-format-2.stderr
  121. +3 −3 src/test/ui/lint/lint-stability-deprecated.rs
  122. +0 −8 src/test/ui/lint/lint-stability-deprecated.stderr
  123. +4 −4 src/test/ui/lint/lint-type-overflow2.rs
  124. +11 −13 src/test/ui/lint/lint-type-overflow2.stderr
  125. +3 −3 src/test/ui/lint/lint-unknown-feature-default.rs
  126. +0 −8 src/test/ui/lint/lint-unknown-feature-default.stderr
  127. +3 −3 src/test/ui/lint/lint-unknown-feature.rs
  128. +0 −8 src/test/ui/lint/lint-unknown-feature.stderr
  129. +3 −3 src/test/ui/loops/loops-reject-duplicate-labels-2.rs
  130. +0 −10 src/test/ui/loops/loops-reject-duplicate-labels-2.stderr
  131. +3 −3 src/test/ui/loops/loops-reject-duplicate-labels.rs
  132. +0 −13 src/test/ui/loops/loops-reject-duplicate-labels.stderr
  133. +3 −3 src/test/ui/loops/loops-reject-labels-shadowing-lifetimes.rs
  134. +0 −10 src/test/ui/loops/loops-reject-labels-shadowing-lifetimes.stderr
  135. +3 −3 src/test/ui/loops/loops-reject-lifetime-shadowing-label.rs
  136. +0 −10 src/test/ui/loops/loops-reject-lifetime-shadowing-label.stderr
  137. +4 −4 src/test/ui/macros/macro-expanded-include/test.rs
  138. +0 −8 src/test/ui/macros/macro-expanded-include/test.stderr
  139. +3 −3 src/test/ui/macros/macro-stmt-matchers.rs
  140. +0 −11 src/test/ui/macros/macro-stmt-matchers.stderr
  141. +3 −3 src/test/ui/macros/macro-tt-matchers.rs
  142. +0 −8 src/test/ui/macros/macro-tt-matchers.stderr
  143. +3 −3 src/test/ui/macros/macro-use-scope.rs
  144. +0 −8 src/test/ui/macros/macro-use-scope.stderr
  145. +3 −3 src/test/ui/maybe-bounds-where-cpass.rs
  146. +0 −11 src/test/ui/maybe-bounds-where-cpass.stderr
  147. +3 −3 src/test/ui/methods/method-call-lifetime-args-subst-index.rs
  148. +0 −8 src/test/ui/methods/method-call-lifetime-args-subst-index.stderr
  149. +3 −3 src/test/ui/missing/missing-semicolon-warning.rs
  150. +2 −10 src/test/ui/missing/missing-semicolon-warning.stderr
  151. +3 −3 src/test/ui/never-assign-dead-code.rs
  152. +0 −12 src/test/ui/never-assign-dead-code.stderr
  153. +10 −10 src/test/ui/no-warn-on-field-replace-issue-34101.rs
  154. +0 −11 src/test/ui/no-warn-on-field-replace-issue-34101.stderr
  155. +3 −3 src/test/ui/object-safety/object-safety-by-value-self.rs
  156. +0 −9 src/test/ui/object-safety/object-safety-by-value-self.stderr
  157. +3 −3 src/test/ui/object-safety/object-safety-phantom-fn.rs
  158. +0 −9 src/test/ui/object-safety/object-safety-phantom-fn.stderr
  159. +2 −2 src/test/ui/on-unimplemented/multiple-impls.rs
  160. +2 −2 src/test/ui/on-unimplemented/on-impl.rs
  161. +2 −2 src/test/ui/on-unimplemented/slice-index.rs
  162. +3 −3 src/test/ui/privacy/restricted/lookup-ignores-private.rs
  163. +0 −12 src/test/ui/privacy/restricted/lookup-ignores-private.stderr
  164. +3 −3 src/test/ui/range/range_traits-4.rs
  165. +0 −8 src/test/ui/range/range_traits-4.stderr
  166. +3 −3 src/test/ui/range/range_traits-5.rs
  167. +0 −8 src/test/ui/range/range_traits-5.stderr
  168. +3 −3 src/test/ui/range/range_traits-7.rs
  169. +0 −8 src/test/ui/range/range_traits-7.stderr
  170. +3 −3 src/test/ui/regions/region-bound-extra-bound-in-inherent-impl.rs
  171. +0 −8 src/test/ui/regions/region-bound-extra-bound-in-inherent-impl.stderr
  172. +3 −3 src/test/ui/regions/region-bound-same-bounds-in-trait-and-impl.rs
  173. +0 −8 src/test/ui/regions/region-bound-same-bounds-in-trait-and-impl.stderr
  174. +3 −3 src/test/ui/regions/region-object-lifetime-1.rs
  175. +0 −8 src/test/ui/regions/region-object-lifetime-1.stderr
  176. +3 −3 src/test/ui/regions/region-object-lifetime-3.rs
  177. +0 −8 src/test/ui/regions/region-object-lifetime-3.stderr
  178. +3 −3 src/test/ui/regions/regions-implied-bounds-projection-gap-2.rs
  179. +0 −8 src/test/ui/regions/regions-implied-bounds-projection-gap-2.stderr
  180. +3 −3 src/test/ui/regions/regions-implied-bounds-projection-gap-3.rs
  181. +0 −8 src/test/ui/regions/regions-implied-bounds-projection-gap-3.stderr
  182. +3 −3 src/test/ui/regions/regions-implied-bounds-projection-gap-4.rs
  183. +0 −8 src/test/ui/regions/regions-implied-bounds-projection-gap-4.stderr
  184. +2 −2 src/test/ui/regions/regions-outlives-projection-container-hrtb.rs
  185. +3 −3 src/test/ui/regions/regions-outlives-projection-hrtype.rs
  186. +0 −8 src/test/ui/regions/regions-outlives-projection-hrtype.stderr
  187. +3 −3 src/test/ui/regions/regions-outlives-projection-trait-def.rs
  188. +0 −8 src/test/ui/regions/regions-outlives-projection-trait-def.stderr
  189. +3 −3 src/test/ui/regions/regions-outlives-scalar.rs
  190. +0 −8 src/test/ui/regions/regions-outlives-scalar.stderr
  191. +2 −2 src/test/ui/retslot-cast.rs
  192. +2 −2 src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.rs
  193. +2 −2 src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.rs
  194. +2 −2 src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.rs
  195. +2 −2 src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.rs
  196. +3 −3 src/test/ui/span/issue-24690.rs
  197. +0 −13 src/test/ui/span/issue-24690.stderr
  198. +4 −4 src/test/ui/traits/trait-privacy.rs
  199. +0 −8 src/test/ui/traits/trait-privacy.stderr
  200. +3 −3 src/test/ui/traits/traits-issue-23003-overflow.rs
  201. +0 −8 src/test/ui/traits/traits-issue-23003-overflow.stderr
  202. +4 −4 src/test/ui/unreachable/unreachable-try-pattern.rs
  203. +0 −13 src/test/ui/unreachable/unreachable-try-pattern.stderr
  204. +2 −2 src/test/ui/variance/variance-btree-invariant-types.rs
  205. +2 −2 src/test/ui/variance/variance-use-contravariant-struct-1.rs
  206. +3 −3 src/test/ui/variance/variance-use-contravariant-struct-2.rs
  207. +0 −8 src/test/ui/variance/variance-use-contravariant-struct-2.stderr
  208. +2 −2 src/test/ui/variance/variance-use-covariant-struct-2.rs
  209. +0 −8 src/test/ui/variance/variance-use-covariant-struct-2.stderr
  210. +2 −2 src/test/ui/variance/variance-use-invariant-struct-1.rs
  211. +2 −2 src/test/ui/wf/wf-array-elem-sized.rs
  212. +2 −2 src/test/ui/wf/wf-const-type.rs
  213. +2 −2 src/test/ui/wf/wf-enum-bound.rs
  214. +2 −2 src/test/ui/wf/wf-enum-fields-struct-variant.rs
  215. +2 −2 src/test/ui/wf/wf-enum-fields.rs
  216. +2 −2 src/test/ui/wf/wf-fn-where-clause.rs
  217. +2 −2 src/test/ui/wf/wf-impl-associated-type-region.rs
  218. +2 −2 src/test/ui/wf/wf-impl-associated-type-trait.rs
  219. +2 −2 src/test/ui/wf/wf-in-fn-type-static.rs
  220. +2 −2 src/test/ui/wf/wf-in-fn-where-clause.rs
  221. +2 −2 src/test/ui/wf/wf-in-obj-type-static.rs
  222. +2 −2 src/test/ui/wf/wf-inherent-impl-method-where-clause.rs
  223. +2 −2 src/test/ui/wf/wf-inherent-impl-where-clause.rs
  224. +2 −2 src/test/ui/wf/wf-static-type.rs
  225. +2 −2 src/test/ui/wf/wf-struct-bound.rs
  226. +2 −2 src/test/ui/wf/wf-struct-field.rs
  227. +2 −2 src/test/ui/wf/wf-trait-associated-type-bound.rs
  228. +2 −2 src/test/ui/wf/wf-trait-associated-type-region.rs
  229. +2 −2 src/test/ui/wf/wf-trait-associated-type-trait.rs
  230. +2 −2 src/test/ui/wf/wf-trait-bound.rs
  231. +2 −2 src/test/ui/wf/wf-trait-default-fn-arg.rs
  232. +2 −2 src/test/ui/wf/wf-trait-default-fn-where-clause.rs
  233. +2 −2 src/test/ui/wf/wf-trait-fn-where-clause.rs
@@ -21,11 +21,11 @@
// ignore-mips
// ignore-mips64
#![feature(asm, rustc_attrs)]
#![feature(asm)]
#[cfg(any(target_arch = "x86",
target_arch = "x86_64"))]
#[rustc_error]
pub fn main() {
unsafe {
// clobber formatted as register input/output
@@ -21,14 +21,14 @@
// ignore-mips
// ignore-mips64
#![feature(asm, rustc_attrs)]
// compile-pass
// skip-codegen
#![feature(asm)]
#![allow(dead_code, non_upper_case_globals)]
#[cfg(any(target_arch = "x86",
target_arch = "x86_64"))]
#[rustc_error]
pub fn main() { //~ ERROR compilation successful
pub fn main() {
// assignment not dead
let mut x: isize = 0;
unsafe {
@@ -10,17 +10,3 @@ warning: expected a clobber, found an option
LL | asm!("add $2, $1; mov $1, $0" : "=r"(x) : "r"(x), "r"(8_usize) : "cc", "volatile");
| ^^^^^^^^^^
error: compilation successful
--> $DIR/asm-misplaced-option.rs:31:1
|
LL | / pub fn main() { //~ ERROR compilation successful
LL | | // assignment not dead
LL | | let mut x: isize = 0;
LL | | unsafe {
... |
LL | | assert_eq!(x, 13);
LL | | }
| |_^
error: aborting due to previous error
@@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
#![allow(warnings)]
pub type ParseResult<T> = Result<T, ()>;
pub enum Item<'a> { Literal(&'a str),
@@ -35,5 +35,5 @@ pub fn parse<'a, I>(mut s: &str, items: I) -> ParseResult<()>
Ok(())
}
#[rustc_error]
fn main() { } //~ ERROR compilation successful
fn main() { }

This file was deleted.

Oops, something went wrong.
@@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
#![allow(warnings)]
// Check that you are allowed to implement using elision but write
// trait without elision (a bug in this cropped up during
// bootstrapping, so this is a regression test).
@@ -30,5 +30,5 @@ impl UnicodeStr for str {
}
}
#[rustc_error]
fn main() { } //~ ERROR compilation successful
fn main() { }

This file was deleted.

Oops, something went wrong.
@@ -12,10 +12,10 @@
#![warn(unused)]
#![deny(warnings)]
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
use std::option; //~ WARN
#[rustc_error]
fn main() {} //~ ERROR: compilation successful
fn main() {}
@@ -11,11 +11,3 @@ LL | #![deny(warnings)]
| ^^^^^^^^
= note: #[warn(unused_imports)] implied by #[warn(warnings)]
error: compilation successful
--> $DIR/bad-lint-cap3.rs:20:1
|
LL | fn main() {} //~ ERROR: compilation successful
| ^^^^^^^^^^^^
error: aborting due to previous error
@@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
#![allow(dead_code)]
// Here we do not get a coherence conflict because `Baz: Iterator`
// does not hold and (due to the orphan rules), we can rely on that.
@@ -25,5 +25,5 @@ impl Foo<i32> for Baz { }
impl<A:Iterator> Foo<A::Item> for A { }
#[rustc_error]
fn main() {} //~ ERROR compilation successful
fn main() {}

This file was deleted.

Oops, something went wrong.
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
pub trait Foo<P> {}
pub trait Bar {
@@ -24,5 +24,5 @@ impl Bar for i32 {
type Output = u32;
}
#[rustc_error]
fn main() {} //~ ERROR compilation successful
fn main() {}

This file was deleted.

Oops, something went wrong.
@@ -12,8 +12,8 @@
// `MyType: !MyTrait` along with other "fundamental" wrappers.
// aux-build:coherence_copy_like_lib.rs
#![feature(rustc_attrs)]
// compile-pass
// skip-codgen
#![allow(dead_code)]
extern crate coherence_copy_like_lib as lib;
@@ -30,5 +30,5 @@ impl<T: lib::MyCopy> MyTrait for T { }
// Huzzah.
impl MyTrait for lib::MyFundamentalStruct<MyType> { }
#[rustc_error]
fn main() { } //~ ERROR compilation successful
fn main() { }

This file was deleted.

Oops, something went wrong.
@@ -12,8 +12,8 @@
// `MyType: !MyTrait` along with other "fundamental" wrappers.
// aux-build:coherence_copy_like_lib.rs
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
#![allow(dead_code)]
extern crate coherence_copy_like_lib as lib;
@@ -30,5 +30,5 @@ impl<T: lib::MyCopy> MyTrait for T { }
// Huzzah.
impl<'a> MyTrait for lib::MyFundamentalStruct<&'a MyType> { }
#[rustc_error]
fn main() { } //~ ERROR compilation successful
fn main() { }

This file was deleted.

Oops, something went wrong.
@@ -13,7 +13,7 @@
// aux-build:coherence_copy_like_lib.rs
#![feature(rustc_attrs)]
extern crate coherence_copy_like_lib as lib;
@@ -26,5 +26,5 @@ impl<T: lib::MyCopy> MyTrait for T { }
// Tuples are not fundamental.
impl MyTrait for lib::MyFundamentalStruct<(MyType,)> { } //~ ERROR E0119
#[rustc_error]
fn main() { }
@@ -12,8 +12,8 @@
// `MyType: !MyTrait` along with other "fundamental" wrappers.
// aux-build:coherence_copy_like_lib.rs
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
#![allow(dead_code)]
extern crate coherence_copy_like_lib as lib;
@@ -29,5 +29,5 @@ impl lib::MyCopy for Box<MyType> { }
impl lib::MyCopy for lib::MyFundamentalStruct<MyType> { }
impl lib::MyCopy for lib::MyFundamentalStruct<Box<MyType>> { }
#[rustc_error]
fn main() { } //~ ERROR compilation successful
fn main() { }

This file was deleted.

Oops, something went wrong.
@@ -13,7 +13,7 @@
// aux-build:coherence_copy_like_lib.rs
#![feature(rustc_attrs)]
#![allow(dead_code)]
extern crate coherence_copy_like_lib as lib;
@@ -25,5 +25,5 @@ struct MyType { x: i32 }
// MyStruct is not fundamental.
impl lib::MyCopy for lib::MyStruct<MyType> { } //~ ERROR E0117
#[rustc_error]
fn main() { }
@@ -13,7 +13,7 @@
// aux-build:coherence_copy_like_lib.rs
#![feature(rustc_attrs)]
#![allow(dead_code)]
extern crate coherence_copy_like_lib as lib;
@@ -25,5 +25,5 @@ struct MyType { x: i32 }
// Tuples are not fundamental, so this is not a local impl.
impl lib::MyCopy for (MyType,) { } //~ ERROR E0117
#[rustc_error]
fn main() { }
@@ -12,8 +12,8 @@
// `MyType: !MyTrait` along with other "fundamental" wrappers.
// aux-build:coherence_copy_like_lib.rs
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
#![allow(dead_code)]
extern crate coherence_copy_like_lib as lib;
@@ -23,5 +23,5 @@ struct MyType { x: i32 }
// naturally, legal
impl lib::MyCopy for MyType { }
#[rustc_error]
fn main() { } //~ ERROR compilation successful
fn main() { }

This file was deleted.

Oops, something went wrong.
@@ -8,17 +8,17 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(rustc_attrs)]
// compile-pass
// skip-codegen
#![allow(dead_code)]
#![deny(unused_attributes)] // c.f #35584
mod auxiliary {
#[cfg_attr(any(), path = "nonexistent_file.rs")] pub mod namespaced_enums;
#[cfg_attr(all(), path = "namespaced_enums.rs")] pub mod nonexistent_file;
}
#[rustc_error]
fn main() { //~ ERROR compilation successful
fn main() {
let _ = auxiliary::namespaced_enums::Foo::A;
let _ = auxiliary::nonexistent_file::Foo::A;
}

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 653da4f

Please sign in to comment.