Skip to content
Permalink
Browse files

Update NLL tests

  • Loading branch information...
petrochenkov committed Mar 11, 2019
1 parent fa72a81 commit c1cfacfb13f2bdf6bd94e81164c90b2449ec60a1
Showing with 794 additions and 794 deletions.
  1. +1 −1 src/test/ui/E0508.nll.stderr
  2. +2 −2 src/test/ui/access-mode-in-closures.nll.stderr
  3. +1 −1 src/test/ui/associated-types/associated-types-outlives.nll.stderr
  4. +4 −4 src/test/ui/augmented-assignments.nll.stderr
  5. +30 −30 src/test/ui/binop/binop-consume-args.nll.stderr
  6. +8 −8 src/test/ui/binop/binop-move-semantics.nll.stderr
  7. +12 −12 src/test/ui/borrowck/borrow-immutable-upvar-mutation.nll.stderr
  8. +6 −6 src/test/ui/borrowck/borrow-tuple-fields.nll.stderr
  9. +1 −1 src/test/ui/borrowck/borrowck-and-init.nll.stderr
  10. +1 −1 src/test/ui/borrowck/borrowck-anon-fields-struct.nll.stderr
  11. +1 −1 src/test/ui/borrowck/borrowck-anon-fields-tuple.nll.stderr
  12. +2 −2 src/test/ui/borrowck/borrowck-anon-fields-variant.nll.stderr
  13. +4 −4 src/test/ui/borrowck/borrowck-argument.nll.stderr
  14. +2 −2 src/test/ui/borrowck/borrowck-assign-comp-idx.nll.stderr
  15. +2 −2 src/test/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.nll.stderr
  16. +2 −2 src/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.nll.stderr
  17. +1 −1 src/test/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.nll.stderr
  18. +1 −1 src/test/ui/borrowck/borrowck-autoref-3261.nll.stderr
  19. +2 −2 src/test/ui/borrowck/borrowck-bad-nested-calls-free.nll.stderr
  20. +2 −2 src/test/ui/borrowck/borrowck-bad-nested-calls-move.nll.stderr
  21. +1 −1 src/test/ui/borrowck/borrowck-block-unint.nll.stderr
  22. +12 −12 src/test/ui/borrowck/borrowck-borrow-from-owned-ptr.nll.stderr
  23. +12 −12 src/test/ui/borrowck/borrowck-borrow-from-stack-variable.nll.stderr
  24. +1 −1 src/test/ui/borrowck/borrowck-borrow-from-temporary.nll.stderr
  25. +3 −3 src/test/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.nll.stderr
  26. +1 −1 src/test/ui/borrowck/borrowck-borrow-mut-object-twice.nll.stderr
  27. +14 −14 src/test/ui/borrowck/borrowck-borrow-overloaded-auto-deref.nll.stderr
  28. +7 −7 src/test/ui/borrowck/borrowck-borrow-overloaded-deref.nll.stderr
  29. +1 −1 src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.nll.stderr
  30. +1 −1 src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue.nll.stderr
  31. +1 −1 src/test/ui/borrowck/borrowck-break-uninit-2.nll.stderr
  32. +1 −1 src/test/ui/borrowck/borrowck-break-uninit.nll.stderr
  33. +1 −1 src/test/ui/borrowck/borrowck-closures-mut-of-imm.nll.stderr
  34. +1 −1 src/test/ui/borrowck/borrowck-closures-mut-of-mut.nll.stderr
  35. +5 −5 src/test/ui/borrowck/borrowck-closures-two-mut-fail.nll.stderr
  36. +1 −1 src/test/ui/borrowck/borrowck-closures-unique-imm.nll.stderr
  37. +4 −4 src/test/ui/borrowck/borrowck-closures-unique.nll.stderr
  38. +1 −1 src/test/ui/borrowck/borrowck-closures-use-after-free.nll.stderr
  39. +1 −1 src/test/ui/borrowck/borrowck-consume-unsize-vec.nll.stderr
  40. +1 −1 src/test/ui/borrowck/borrowck-consume-upcast-box.nll.stderr
  41. +11 −11 src/test/ui/borrowck/borrowck-field-sensitivity.nll.stderr
  42. +1 −1 src/test/ui/borrowck/borrowck-fn-in-const-c.nll.stderr
  43. +6 −6 src/test/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.nll.stderr
  44. +2 −2 src/test/ui/borrowck/borrowck-for-loop-head-linkage.nll.stderr
  45. +1 −1 src/test/ui/borrowck/borrowck-in-static.nll.stderr
  46. +2 −2 src/test/ui/borrowck/borrowck-insert-during-each.nll.stderr
  47. +1 −1 src/test/ui/borrowck/borrowck-issue-2657-1.nll.stderr
  48. +1 −1 src/test/ui/borrowck/borrowck-issue-2657-2.nll.stderr
  49. +1 −1 src/test/ui/borrowck/borrowck-lend-flow-if.nll.stderr
  50. +1 −1 src/test/ui/borrowck/borrowck-lend-flow.nll.stderr
  51. +1 −1 src/test/ui/borrowck/borrowck-loan-blocks-move.nll.stderr
  52. +1 −1 src/test/ui/borrowck/borrowck-loan-blocks-mut-uniq.nll.stderr
  53. +1 −1 src/test/ui/borrowck/borrowck-loan-of-static-data-issue-27616.nll.stderr
  54. +2 −2 src/test/ui/borrowck/borrowck-loan-rcvr-overloaded-op.nll.stderr
  55. +2 −2 src/test/ui/borrowck/borrowck-loan-rcvr.nll.stderr
  56. +1 −1 src/test/ui/borrowck/borrowck-loan-vec-content.nll.stderr
  57. +1 −1 src/test/ui/borrowck/borrowck-move-by-capture.nll.stderr
  58. +4 −4 src/test/ui/borrowck/borrowck-move-error-with-note.nll.stderr
  59. +1 −1 src/test/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.nll.stderr
  60. +1 −1 src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr
  61. +1 −1 src/test/ui/borrowck/borrowck-move-mut-base-ptr.nll.stderr
  62. +3 −3 src/test/ui/borrowck/borrowck-move-out-of-vec-tail.nll.stderr
  63. +1 −1 src/test/ui/borrowck/borrowck-move-subcomponent.nll.stderr
  64. +12 −12 src/test/ui/borrowck/borrowck-multiple-captures.nll.stderr
  65. +1 −1 src/test/ui/borrowck/borrowck-mut-addr-of-imm-var.nll.stderr
  66. +2 −2 src/test/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.nll.stderr
  67. +1 −1 src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.nll.stderr
  68. +1 −1 src/test/ui/borrowck/borrowck-no-cycle-in-exchange-heap.nll.stderr
  69. +2 −2 src/test/ui/borrowck/borrowck-object-lifetime.nll.stderr
  70. +1 −1 src/test/ui/borrowck/borrowck-or-init.nll.stderr
  71. +3 −3 src/test/ui/borrowck/borrowck-overloaded-call.nll.stderr
  72. +8 −8 src/test/ui/borrowck/borrowck-overloaded-index-autoderef.nll.stderr
  73. +12 −12 src/test/ui/borrowck/borrowck-reborrow-from-mut.nll.stderr
  74. +1 −1 src/test/ui/borrowck/borrowck-ref-mut-of-imm.nll.stderr
  75. +6 −6 src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.nll.stderr
  76. +1 −1 src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.nll.stderr
  77. +1 −1 src/test/ui/borrowck/borrowck-swap-mut-base-ptr.nll.stderr
  78. +3 −3 src/test/ui/borrowck/borrowck-unboxed-closures.nll.stderr
  79. +1 −1 src/test/ui/borrowck/borrowck-union-borrow-nested.nll.stderr
  80. +12 −12 src/test/ui/borrowck/borrowck-union-borrow.nll.stderr
  81. +1 −1 src/test/ui/borrowck/borrowck-union-move-assign.nll.stderr
  82. +6 −6 src/test/ui/borrowck/borrowck-union-move.nll.stderr
  83. +2 −2 src/test/ui/borrowck/borrowck-uniq-via-lend.nll.stderr
  84. +9 −9 src/test/ui/borrowck/borrowck-use-mut-borrow.nll.stderr
  85. +3 −3 src/test/ui/borrowck/borrowck-vec-pattern-element-loan.nll.stderr
  86. +1 −1 src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.nll.stderr
  87. +18 −18 src/test/ui/borrowck/borrowck-vec-pattern-nesting.nll.stderr
  88. +1 −1 src/test/ui/borrowck/borrowck-vec-pattern-tail-element-loan.nll.stderr
  89. +1 −1 src/test/ui/borrowck/borrowck-while-break.nll.stderr
  90. +1 −1 src/test/ui/borrowck/index-mut-help-with-impl.nll.stderr
  91. +3 −3 src/test/ui/borrowck/index-mut-help.nll.stderr
  92. +1 −1 src/test/ui/borrowck/issue-47215-ice-from-drop-elab.nll.stderr
  93. +1 −1 src/test/ui/borrowck/issue-51117.nll.stderr
  94. +3 −3 src/test/ui/borrowck/mut-borrow-in-loop.nll.stderr
  95. +1 −1 src/test/ui/borrowck/mut-borrow-of-mut-ref.nll.stderr
  96. +2 −2 src/test/ui/borrowck/mut-borrow-outside-loop.nll.stderr
  97. +70 −70 src/test/ui/borrowck/mutability-errors.nll.stderr
  98. +5 −5 src/test/ui/borrowck/promote-ref-mut-in-let-issue-46557.nll.stderr
  99. +2 −2 src/test/ui/borrowck/reassignment_immutable_fields.nll.stderr
  100. +3 −3 src/test/ui/borrowck/reassignment_immutable_fields_overlapping.nll.stderr
  101. +2 −2 src/test/ui/borrowck/reassignment_immutable_fields_twice.nll.stderr
  102. +2 −2 src/test/ui/by-move-pattern-binding.nll.stderr
  103. +9 −9 src/test/ui/check-static-values-constraints.nll.stderr
  104. +1 −1 src/test/ui/closures/closure-immutable-outer-variable.nll.stderr
  105. +1 −1 src/test/ui/codemap_tests/huge_multispan_highlight.nll.stderr
  106. +1 −1 src/test/ui/codemap_tests/issue-11715.nll.stderr
  107. +1 −1 src/test/ui/codemap_tests/one_line.nll.stderr
  108. +1 −1 src/test/ui/codemap_tests/tab_3.nll.stderr
  109. +4 −4 src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.nll.stderr
  110. +3 −3 src/test/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.nll.stderr
  111. +1 −1 src/test/ui/consts/const-eval/promoted_const_fn_fail.nll.stderr
  112. +4 −4 src/test/ui/consts/const-eval/promoted_raw_ptr_ops.nll.stderr
  113. +1 −1 src/test/ui/consts/const-eval/transmute-const-promotion.nll.stderr
  114. +1 −1 src/test/ui/consts/const-eval/union_promotion.nll.stderr
  115. +1 −1 src/test/ui/consts/const-int-conversion.nll.stderr
  116. +4 −4 src/test/ui/consts/const-int-overflowing.nll.stderr
  117. +3 −3 src/test/ui/consts/const-int-rotate.nll.stderr
  118. +3 −3 src/test/ui/consts/const-int-sign.nll.stderr
  119. +6 −6 src/test/ui/consts/const-int-wrapping.nll.stderr
  120. +1 −1 src/test/ui/consts/const-ptr-nonnull.nll.stderr
  121. +1 −1 src/test/ui/consts/const-ptr-unique.nll.stderr
  122. +9 −9 src/test/ui/consts/min_const_fn/min_const_fn.nll.stderr
  123. +7 −7 src/test/ui/consts/min_const_fn/promotion.nll.stderr
  124. +2 −2 src/test/ui/consts/promote_const_let.nll.stderr
  125. +4 −4 src/test/ui/did_you_mean/issue-31424.nll.stderr
  126. +2 −2 src/test/ui/did_you_mean/issue-34126.nll.stderr
  127. +1 −1 src/test/ui/did_you_mean/issue-34337.nll.stderr
  128. +3 −3 src/test/ui/did_you_mean/issue-35937.nll.stderr
  129. +1 −1 src/test/ui/did_you_mean/issue-37139.nll.stderr
  130. +1 −1 src/test/ui/did_you_mean/issue-38147-1.nll.stderr
  131. +1 −1 src/test/ui/did_you_mean/issue-38147-4.nll.stderr
  132. +15 −15 src/test/ui/did_you_mean/issue-39544.nll.stderr
  133. +1 −1 src/test/ui/did_you_mean/issue-40823.nll.stderr
  134. +2 −2 src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.nll.stderr
  135. +1 −1 src/test/ui/dropck/drop-with-active-borrows-1.nll.stderr
  136. +1 −1 src/test/ui/dropck/dropck-union.nll.stderr
  137. +8 −8 src/test/ui/dropck/dropck_trait_cycle_checked.nll.stderr
  138. +4 −4 src/test/ui/dst/dst-bad-coerce3.nll.stderr
  139. +5 −5 src/test/ui/error-codes/E0017.nll.stderr
  140. +1 −1 src/test/ui/error-codes/E0301.nll.stderr
  141. +5 −5 src/test/ui/error-codes/E0388.nll.stderr
  142. +1 −1 src/test/ui/error-codes/E0389.nll.stderr
  143. +1 −1 src/test/ui/error-codes/E0499.nll.stderr
  144. +1 −1 src/test/ui/error-codes/E0502.nll.stderr
  145. +1 −1 src/test/ui/error-codes/E0503.nll.stderr
  146. +1 −1 src/test/ui/error-codes/E0504.nll.stderr
  147. +1 −1 src/test/ui/error-codes/E0505.nll.stderr
  148. +1 −1 src/test/ui/error-codes/E0509.nll.stderr
  149. +1 −1 src/test/ui/error-codes/E0597.nll.stderr
  150. +1 −1 src/test/ui/functional-struct-update/functional-struct-update-noncopyable.nll.stderr
  151. +1 −1 src/test/ui/generator/borrowing.nll.stderr
  152. +1 −1 src/test/ui/generator/dropck.nll.stderr
  153. +1 −1 src/test/ui/generator/yield-in-args.nll.stderr
  154. +2 −2 src/test/ui/generator/yield-while-iterating.nll.stderr
  155. +1 −1 src/test/ui/generator/yield-while-ref-reborrowed.nll.stderr
  156. +1 −1 src/test/ui/hashmap-iter-value-lifetime.nll.stderr
  157. +1 −1 src/test/ui/hashmap-lifetimes.nll.stderr
  158. +1 −1 src/test/ui/hrtb/hrtb-debruijn-in-receiver.nll.stderr
  159. +6 −6 src/test/ui/hygiene/fields-move.nll.stderr
  160. +1 −1 src/test/ui/in-band-lifetimes/mut_while_borrow.nll.stderr
  161. +1 −1 src/test/ui/issues/issue-11681.nll.stderr
  162. +1 −1 src/test/ui/issues/issue-11873.nll.stderr
  163. +1 −1 src/test/ui/issues/issue-12470.nll.stderr
  164. +1 −1 src/test/ui/issues/issue-13497-2.nll.stderr
  165. +2 −2 src/test/ui/issues/issue-17385.nll.stderr
  166. +1 −1 src/test/ui/issues/issue-17545.nll.stderr
  167. +1 −1 src/test/ui/issues/issue-17718-static-move.nll.stderr
  168. +1 −1 src/test/ui/issues/issue-18118.nll.stderr
  169. +2 −2 src/test/ui/issues/issue-18783.nll.stderr
  170. +5 −5 src/test/ui/issues/issue-21600.nll.stderr
  171. +2 −2 src/test/ui/issues/issue-24267-flow-exit.nll.stderr
  172. +1 −1 src/test/ui/issues/issue-24357.nll.stderr
  173. +1 −1 src/test/ui/issues/issue-25700.nll.stderr
  174. +1 −1 src/test/ui/issues/issue-2590.nll.stderr
  175. +1 −1 src/test/ui/issues/issue-36400.nll.stderr
  176. +1 −1 src/test/ui/issues/issue-40288.nll.stderr
  177. +1 −1 src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.nll.stderr
  178. +2 −2 src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.nll.stderr
  179. +1 −1 src/test/ui/issues/issue-41726.nll.stderr
  180. +1 −1 src/test/ui/issues/issue-42106.nll.stderr
  181. +1 −1 src/test/ui/issues/issue-42344.nll.stderr
  182. +1 −1 src/test/ui/issues/issue-42796.nll.stderr
  183. +1 −1 src/test/ui/issues/issue-44373.nll.stderr
  184. +1 −1 src/test/ui/issues/issue-49824.nll.stderr
  185. +1 −1 src/test/ui/issues/issue-51244.nll.stderr
  186. +1 −1 src/test/ui/issues/issue-6801.nll.stderr
  187. +1 −1 src/test/ui/lifetimes/borrowck-let-suggestion.nll.stderr
  188. +1 −1 src/test/ui/liveness/liveness-move-call-arg.nll.stderr
  189. +1 −1 src/test/ui/liveness/liveness-move-in-loop.nll.stderr
  190. +1 −1 src/test/ui/liveness/liveness-move-in-while.nll.stderr
  191. +1 −1 src/test/ui/liveness/liveness-use-after-move.nll.stderr
  192. +1 −1 src/test/ui/liveness/liveness-use-after-send.nll.stderr
  193. +1 −1 src/test/ui/loops/loop-proper-liveness.nll.stderr
  194. +2 −2 src/test/ui/methods/method-self-arg-2.nll.stderr
  195. +1 −1 src/test/ui/moves/move-guard-same-consts.nll.stderr
  196. +1 −1 src/test/ui/moves/move-in-guard-1.nll.stderr
  197. +1 −1 src/test/ui/moves/move-in-guard-2.nll.stderr
  198. +1 −1 src/test/ui/moves/move-into-dead-array-1.nll.stderr
  199. +1 −1 src/test/ui/moves/move-into-dead-array-2.nll.stderr
  200. +2 −2 src/test/ui/moves/move-out-of-slice-1.nll.stderr
  201. +2 −2 src/test/ui/moves/move-out-of-tuple-field.nll.stderr
  202. +1 −1 src/test/ui/moves/moves-based-on-type-access-to-field.nll.stderr
  203. +1 −1 src/test/ui/moves/moves-based-on-type-block-bad.nll.stderr
  204. +1 −1 src/test/ui/moves/moves-based-on-type-capture-clause-bad.nll.stderr
  205. +1 −1 src/test/ui/moves/moves-based-on-type-cyclic-types-issue-4821.nll.stderr
  206. +4 −4 src/test/ui/moves/moves-based-on-type-distribute-copy-over-paren.nll.stderr
  207. +11 −11 src/test/ui/moves/moves-based-on-type-exprs.nll.stderr
  208. +1 −1 src/test/ui/moves/moves-based-on-type-match-bindings.nll.stderr
  209. +1 −1 src/test/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.nll.stderr
  210. +1 −1 src/test/ui/moves/moves-based-on-type-no-recursive-stack-closure.nll.stderr
  211. +1 −1 src/test/ui/moves/moves-sru-moved-field.nll.stderr
  212. +1 −1 src/test/ui/mut/mut-cant-alias.nll.stderr
  213. +1 −1 src/test/ui/mut/mutable-class-fields-2.nll.stderr
  214. +9 −9 src/test/ui/nll/cannot-move-block-spans.nll.stderr
  215. +1 −1 src/test/ui/nll/issue-54556-niconii.nll.stderr
  216. +1 −1 src/test/ui/nll/issue-54556-stephaneyfx.nll.stderr
  217. +1 −1 src/test/ui/nll/issue-54556-temps-in-tail-diagnostic.nll.stderr
  218. +1 −1 src/test/ui/nll/issue-54556-wrap-it-up.nll.stderr
  219. +2 −2 src/test/ui/nll/issue-55850.nll.stderr
  220. +1 −1 src/test/ui/no-reuse-move-arc.nll.stderr
  221. +1 −1 src/test/ui/not-copy-closure.nll.stderr
  222. +1 −1 src/test/ui/object-safety/object-safety-by-value-self-use.nll.stderr
  223. +1 −1 src/test/ui/once-cant-call-twice-on-heap.nll.stderr
  224. +3 −3 src/test/ui/ref-suggestion.nll.stderr
  225. +3 −3 src/test/ui/regions/region-bound-on-closure-outlives-call.nll.stderr
  226. +1 −1 src/test/ui/regions/region-object-lifetime-5.nll.stderr
  227. +2 −2 src/test/ui/regions/regions-addr-of-arg.nll.stderr
  228. +2 −2 src/test/ui/regions/regions-adjusted-lvalue-op.nll.stderr
  229. +1 −1 src/test/ui/regions/regions-close-object-into-object-1.nll.stderr
  230. +1 −1 src/test/ui/regions/regions-close-object-into-object-3.nll.stderr
  231. +2 −2 src/test/ui/regions/regions-creating-enums.nll.stderr
  232. +1 −1 src/test/ui/regions/regions-infer-borrow-scope-too-big.nll.stderr
  233. +1 −1 src/test/ui/regions/regions-infer-proc-static-upvar.nll.stderr
  234. +2 −2 src/test/ui/regions/regions-lifetime-of-struct-or-enum-variant.nll.stderr
  235. +1 −1 src/test/ui/regions/regions-nested-fns-2.nll.stderr
  236. +1 −1 src/test/ui/regions/regions-pattern-typing-issue-19552.nll.stderr
  237. +2 −2 src/test/ui/regions/regions-ref-in-fn-arg.nll.stderr
  238. +1 −1 src/test/ui/regions/regions-ret.nll.stderr
  239. +1 −1 src/test/ui/regions/regions-return-stack-allocated-vec.nll.stderr
  240. +1 −1 src/test/ui/regions/regions-steal-closure.nll.stderr
  241. +1 −1 src/test/ui/regions/regions-trait-variance.nll.stderr
  242. +1 −1 src/test/ui/regions/regions-var-type-out-of-scope.nll.stderr
  243. +1 −1 src/test/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.nll.stderr
  244. +3 −3 src/test/ui/rfc-2005-default-binding-mode/enum.nll.stderr
  245. +3 −3 src/test/ui/rfc-2005-default-binding-mode/explicit-mut.nll.stderr
  246. +1 −1 src/test/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.nll.stderr
  247. +1 −1 src/test/ui/slice-mut-2.nll.stderr
  248. +10 −10 src/test/ui/span/borrowck-borrow-overloaded-auto-deref-mut.nll.stderr
  249. +4 −4 src/test/ui/span/borrowck-borrow-overloaded-deref-mut.nll.stderr
  250. +1 −1 src/test/ui/span/borrowck-call-is-borrow-issue-12224.nll.stderr
  251. +1 −1 src/test/ui/span/borrowck-call-method-from-mut-aliasable.nll.stderr
  252. +2 −2 src/test/ui/span/borrowck-object-mutability.nll.stderr
  253. +1 −1 src/test/ui/span/destructor-restrictions.nll.stderr
  254. +1 −1 src/test/ui/span/dropck_direct_cycle_with_drop.nll.stderr
  255. +1 −1 src/test/ui/span/issue-11925.nll.stderr
  256. +3 −3 src/test/ui/span/mut-arg-hint.nll.stderr
  257. +1 −1 src/test/ui/span/mut-ptr-cant-outlive-ref.nll.stderr
  258. +6 −6 src/test/ui/span/regions-escape-loop-via-vec.nll.stderr
  259. +5 −5 src/test/ui/span/send-is-not-static-std-sync.nll.stderr
  260. +1 −1 src/test/ui/span/vec-must-not-hide-type-from-dropck.nll.stderr
  261. +2 −2 src/test/ui/static/static-lifetime-bound.nll.stderr
  262. +1 −1 src/test/ui/static/static-reference-to-fn-2.nll.stderr
  263. +1 −1 src/test/ui/static/static-region-bound.nll.stderr
  264. +4 −4 src/test/ui/std-uncopyable-atomics.nll.stderr
  265. +1 −1 src/test/ui/thread-local-mutation.nll.stderr
  266. +1 −1 src/test/ui/traits/trait-coercion-generic-regions.nll.stderr
  267. +2 −2 src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.nll.stderr
  268. +4 −4 src/test/ui/unboxed-closures/unboxed-closure-illegal-move.nll.stderr
  269. +9 −9 src/test/ui/unboxed-closures/unboxed-closure-immutable-capture.nll.stderr
  270. +1 −1 src/test/ui/unboxed-closures/unboxed-closure-region.nll.stderr
  271. +1 −1 src/test/ui/unboxed-closures/unboxed-closures-borrow-conflict.nll.stderr
  272. +2 −2 src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.nll.stderr
  273. +2 −2 src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.nll.stderr
  274. +1 −1 src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.nll.stderr
  275. +1 −1 src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.nll.stderr
  276. +5 −5 src/test/ui/unboxed-closures/unboxed-closures-mutate-upvar.nll.stderr
  277. +6 −6 src/test/ui/union/union-borrow-move-parent-sibling.nll.stderr
  278. +5 −5 src/test/ui/unop-move-semantics.nll.stderr
  279. +6 −6 src/test/ui/unsized-locals/double-move.nll.stderr
  280. +1 −1 src/test/ui/use/use-after-move-based-on-type.nll.stderr
  281. +1 −1 src/test/ui/use/use-after-move-self-based-on-type.nll.stderr
  282. +1 −1 src/test/ui/use/use-after-move-self.nll.stderr
  283. +3 −3 src/test/ui/variance/variance-issue-20533.nll.stderr
  284. +1 −1 src/test/ui/vec/vec-mut-iter-borrow.nll.stderr
  285. +1 −1 src/test/ui/walk-struct-literal-with.nll.stderr
  286. +6 −6 src/test/ui/wf/wf-misc-methods-issue-28609.nll.stderr
  287. +1 −1 src/test/ui/writing-to-immutable-vec.nll.stderr
@@ -1,7 +1,7 @@
error[E0508]: cannot move out of type `[NonCopy; 1]`, a non-copy array
--> $DIR/E0508.rs:5:18
|
LL | let _value = array[0]; //~ ERROR [E0508]
LL | let _value = array[0];
| ^^^^^^^^
| |
| cannot move out of here
@@ -1,7 +1,7 @@
error[E0507]: cannot move out of borrowed content
--> $DIR/access-mode-in-closures.rs:8:15
|
LL | match *s { S(v) => v } //~ ERROR cannot move out
LL | match *s { S(v) => v }
| ^^ - data moved here
| |
| cannot move out of borrowed content
@@ -10,7 +10,7 @@ LL | match *s { S(v) => v } //~ ERROR cannot move out
note: move occurs because `v` has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
--> $DIR/access-mode-in-closures.rs:8:22
|
LL | match *s { S(v) => v } //~ ERROR cannot move out
LL | match *s { S(v) => v }
| ^

error: aborting due to previous error
@@ -3,7 +3,7 @@ error[E0505]: cannot move out of `x` because it is borrowed
|
LL | 's: loop { y = denormalise(&x); break }
| -- borrow of `x` occurs here
LL | drop(x); //~ ERROR cannot move out of `x` because it is borrowed
LL | drop(x);
| ^ move out of `x` occurs here
LL | return f(y);
| - borrow later used here
@@ -1,14 +1,14 @@
error[E0505]: cannot move out of `x` because it is borrowed
--> $DIR/augmented-assignments.rs:16:5
|
LL | x //~ error: use of moved value: `x`
LL | x
| -
| |
| _____borrow of `x` occurs here
| |
LL | | //~^ value used here after move
LL | |
LL | | +=
LL | | x; //~ value moved here
LL | | x;
| | ^
| | |
| |_____move out of `x` occurs here
@@ -20,7 +20,7 @@ error[E0596]: cannot borrow `y` as mutable, as it is not declared as mutable
LL | let y = Int(2);
| - help: consider changing this to be mutable: `mut y`
...
LL | y //~ error: cannot borrow immutable local variable `y` as mutable
LL | y
| ^ cannot borrow as mutable

error: aborting due to 2 previous errors
@@ -7,7 +7,7 @@ LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs + rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -19,8 +19,8 @@ LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs + rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -32,7 +32,7 @@ LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs - rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -44,8 +44,8 @@ LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs - rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -57,7 +57,7 @@ LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs * rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -69,8 +69,8 @@ LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs * rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -82,7 +82,7 @@ LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs / rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -94,8 +94,8 @@ LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs / rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -107,7 +107,7 @@ LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs % rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -119,8 +119,8 @@ LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs % rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -132,7 +132,7 @@ LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs & rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -144,8 +144,8 @@ LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs & rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -157,7 +157,7 @@ LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs | rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -169,8 +169,8 @@ LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs | rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -182,7 +182,7 @@ LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs ^ rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -194,8 +194,8 @@ LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs ^ rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -207,7 +207,7 @@ LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs << rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -219,8 +219,8 @@ LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs << rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `lhs`
@@ -232,7 +232,7 @@ LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs >> rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(lhs);
| ^^^ value used here after move

error[E0382]: use of moved value: `rhs`
@@ -244,8 +244,8 @@ LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
| consider adding a `Copy` constraint to this type argument
LL | lhs >> rhs;
| --- value moved here
LL | drop(lhs); //~ ERROR use of moved value: `lhs`
LL | drop(rhs); //~ ERROR use of moved value: `rhs`
LL | drop(lhs);
LL | drop(rhs);
| ^^^ value used here after move

error: aborting due to 20 previous errors
@@ -8,7 +8,7 @@ LL | fn double_move<T: Add<Output=()>>(x: T) {
LL | x
| - value moved here
LL | +
LL | x; //~ ERROR: use of moved value
LL | x;
| ^ value used here after move

error[E0382]: borrow of moved value: `x`
@@ -21,7 +21,7 @@ LL | fn move_then_borrow<T: Add<Output=()> + Clone>(x: T) {
LL | x
| - value moved here
LL | +
LL | x.clone(); //~ ERROR: use of moved value
LL | x.clone();
| ^ value borrowed here after move

error[E0505]: cannot move out of `x` because it is borrowed
@@ -30,7 +30,7 @@ error[E0505]: cannot move out of `x` because it is borrowed
LL | let m = &x;
| -- borrow of `x` occurs here
...
LL | x //~ ERROR: cannot move out of `x` because it is borrowed
LL | x
| ^ move out of `x` occurs here
...
LL | use_mut(n); use_imm(m);
@@ -42,21 +42,21 @@ error[E0505]: cannot move out of `y` because it is borrowed
LL | let n = &mut y;
| ------ borrow of `y` occurs here
...
LL | y; //~ ERROR: cannot move out of `y` because it is borrowed
LL | y;
| ^ move out of `y` occurs here
LL | use_mut(n); use_imm(m);
| - borrow later used here

error[E0507]: cannot move out of borrowed content
--> $DIR/binop-move-semantics.rs:30:5
|
LL | *m //~ ERROR: cannot move out of borrowed content
LL | *m
| ^^ cannot move out of borrowed content

error[E0507]: cannot move out of borrowed content
--> $DIR/binop-move-semantics.rs:32:5
|
LL | *n; //~ ERROR: cannot move out of borrowed content
LL | *n;
| ^^ cannot move out of borrowed content

error[E0502]: cannot borrow `f` as immutable because it is also borrowed as mutable
@@ -68,7 +68,7 @@ LL | &mut f
| _____mutable borrow occurs here
| |
LL | | +
LL | | &f; //~ ERROR: cannot borrow `f` as immutable because it is also borrowed as mutable
LL | | &f;
| | ^-
| |_____||
| |mutable borrow later used here
@@ -83,7 +83,7 @@ LL | &f
| _____immutable borrow occurs here
| |
LL | | +
LL | | &mut f; //~ ERROR: cannot borrow `f` as mutable because it is also borrowed as immutable
LL | | &mut f;
| | ^^^^^-
| |_____|____|
| | immutable borrow later used here
Oops, something went wrong.

0 comments on commit c1cfacf

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