tree: 058466e589e8b521baf78d15eef422cfbb237dff [path history] [tgz]
  1. abi/
  2. alloc-error/
  3. allocator/
  4. annotate-snippet/
  5. anon-params/
  6. argfile/
  7. argument-suggestions/
  8. array-slice-vec/
  9. asm/
  10. associated-consts/
  11. associated-inherent-types/
  12. associated-item/
  13. associated-type-bounds/
  14. associated-types/
  15. async-await/
  16. attributes/
  17. auto-traits/
  18. autoref-autoderef/
  19. auxiliary/
  20. backtrace/
  21. bench/
  22. binding/
  23. binop/
  24. blind/
  25. block-result/
  26. borrowck/
  27. box/
  28. btreemap/
  29. builtin-superkinds/
  30. c-variadic/
  31. cast/
  32. cfg/
  33. check-cfg/
  34. closure-expected-type/
  35. closure_context/
  36. closures/
  37. cmse-nonsecure/
  38. codegen/
  39. codemap_tests/
  40. coercion/
  41. coherence/
  42. coinduction/
  43. command/
  44. compare-method/
  45. compiletest-self-test/
  46. conditional-compilation/
  47. confuse-field-and-method/
  48. const-generics/
  49. const-ptr/
  50. const_prop/
  51. consts/
  52. coroutine/
  53. coverage-attr/
  54. crate-loading/
  55. cross/
  56. cross-crate/
  57. custom_test_frameworks/
  58. cycle-trait/
  59. debuginfo/
  60. definition-reachable/
  61. delegation/
  62. dep-graph/
  63. deployment-target/
  64. deprecation/
  65. deref-patterns/
  66. derived-errors/
  67. derives/
  68. deriving/
  69. dest-prop/
  70. destructuring-assignment/
  71. diagnostic-flags/
  72. diagnostic-width/
  73. diagnostic_namespace/
  74. did_you_mean/
  75. directory_ownership/
  76. disallowed-deconstructing/
  77. dollar-crate/
  78. drop/
  79. drop-bounds/
  80. dropck/
  81. dst/
  82. duplicate/
  83. dyn-drop/
  84. dyn-keyword/
  85. dyn-star/
  86. dynamically-sized-types/
  87. editions/
  88. empty/
  89. entry-point/
  90. enum/
  91. enum-discriminant/
  92. env-macro/
  93. error-codes/
  94. error-emitter/
  95. errors/
  96. explicit/
  97. explicit-tail-calls/
  98. expr/
  99. extern/
  100. extern-flag/
  101. feature-gates/
  102. ffi-attrs/
  103. fmt/
  104. fn/
  105. fn-main/
  106. for/
  107. for-loop-while/
  108. foreign/
  109. fuel/
  110. fully-qualified-type/
  111. function-pointer/
  112. functional-struct-update/
  113. functions-closures/
  114. generic-associated-types/
  115. generic-const-items/
  116. generics/
  117. half-open-range-patterns/
  118. hashmap/
  119. hello_world/
  120. higher-ranked/
  121. hygiene/
  122. illegal-sized-bound/
  123. impl-header-lifetime-elision/
  124. impl-trait/
  125. implied-bounds/
  126. imports/
  127. include-macros/
  128. incoherent-inherent-impls/
  129. indexing/
  130. inference/
  131. infinite/
  132. inherent-impls-overlap-check/
  133. inline-const/
  134. instrument-coverage/
  135. instrument-xray/
  136. interior-mutability/
  137. internal/
  138. internal-lints/
  139. intrinsics/
  140. invalid/
  141. invalid-compile-flags/
  142. invalid-module-declaration/
  143. invalid-self-argument/
  144. io-checks/
  145. issues/
  146. iterators/
  147. json/
  148. keyword/
  149. kindck/
  150. label/
  151. lang-items/
  152. late-bound-lifetimes/
  153. layout/
  154. lazy-type-alias/
  155. lazy-type-alias-impl-trait/
  156. let-else/
  157. lexer/
  158. lifetimes/
  159. limits/
  160. linkage-attr/
  161. lint/
  162. liveness/
  163. loops/
  164. lowering/
  165. lto/
  166. lub-glb/
  167. macro_backtrace/
  168. macros/
  169. malformed/
  170. manual/
  171. marker_trait_attr/
  172. match/
  173. meta/
  174. methods/
  175. mir/
  176. mir-dataflow/
  177. mismatched_types/
  178. missing/
  179. missing-trait-bounds/
  180. missing_non_modrs_mod/
  181. modules/
  182. modules_and_files_visibility/
  183. moves/
  184. mut/
  185. namespace/
  186. native-library-link-flags/
  187. never_type/
  188. nll/
  189. no_std/
  190. non_modrs_mods/
  191. non_modrs_mods_and_inline_mods/
  192. not-panic/
  193. numbers-arithmetic/
  194. numeric/
  195. object-lifetime/
  196. object-safety/
  197. obsolete-in-place/
  198. offset-of/
  199. on-unimplemented/
  200. operator-recovery/
  201. or-patterns/
  202. overloaded/
  203. packed/
  204. panic-handler/
  205. panic-runtime/
  206. panics/
  207. parallel-rustc/
  208. parser/
  209. patchable-function-entry/
  210. pattern/
  211. pin-macro/
  212. polymorphization/
  213. precondition-checks/
  214. print_type_sizes/
  215. privacy/
  216. proc-macro/
  217. process/
  218. process-termination/
  219. ptr_ops/
  220. pub/
  221. qualified/
  222. query-system/
  223. range/
  224. raw-ref-op/
  225. reachable/
  226. recursion/
  227. recursion_limit/
  228. regions/
  229. repeat-expr/
  230. repr/
  231. reserved/
  232. resolve/
  233. return/
  234. rfcs/
  235. rmeta/
  236. runtime/
  237. rust-2018/
  238. rust-2021/
  239. rust-2024/
  240. rustc-env/
  241. rustdoc/
  242. sanitizer/
  243. self/
  244. sepcomp/
  245. shadowed/
  246. shell-argfiles/
  247. simd/
  248. single-use-lifetime/
  249. sized/
  250. span/
  251. specialization/
  252. stability-attribute/
  253. stable-mir-print/
  254. stack-protector/
  255. static/
  256. statics/
  257. stats/
  258. std/
  259. stdlib-unit-tests/
  260. str/
  261. structs/
  262. structs-enums/
  263. suggestions/
  264. svh/
  265. symbol-mangling-version/
  266. symbol-names/
  267. sync/
  268. target-feature/
  269. test-attrs/
  270. thir-print/
  271. thread-local/
  272. threads-sendsync/
  273. tool-attributes/
  274. track-diagnostics/
  275. trait-bounds/
  276. traits/
  277. transmutability/
  278. transmute/
  279. treat-err-as-bug/
  280. trivial-bounds/
  281. try-block/
  282. try-trait/
  283. tuple/
  284. type/
  285. type-alias/
  286. type-alias-enum-variants/
  287. type-alias-impl-trait/
  288. type-inference/
  289. typeck/
  290. typeof/
  291. ufcs/
  292. unboxed-closures/
  293. underscore-imports/
  294. underscore-lifetime/
  295. uniform-paths/
  296. uninhabited/
  297. union/
  298. unknown-unstable-lints/
  299. unop/
  300. unpretty/
  301. unresolved/
  302. unsafe/
  303. unsized/
  304. unsized-locals/
  305. unused-crate-deps/
  306. unwind-abis/
  307. use/
  308. variance/
  309. variants/
  310. version/
  311. warnings/
  312. wasm/
  313. wf/
  314. where-clauses/
  315. while/
  316. windows-subsystem/
  317. zero-sized/
  318. .gitattributes
  319. alias-uninit-value.rs
  320. allow-non-lint-warnings.rs
  321. anonymous-higher-ranked-lifetime.rs
  322. anonymous-higher-ranked-lifetime.stderr
  323. artificial-block.rs
  324. as-precedence.rs
  325. assign-assign.rs
  326. assign-imm-local-twice.rs
  327. assign-imm-local-twice.stderr
  328. assoc-lang-items.rs
  329. assoc-lang-items.stderr
  330. assoc-oddities-3.rs
  331. associated-path-shl.rs
  332. associated-path-shl.stderr
  333. atomic-from-mut-not-available.rs
  334. atomic-from-mut-not-available.stderr
  335. attempted-access-non-fatal.rs
  336. attempted-access-non-fatal.stderr
  337. attr-bad-crate-attr.rs
  338. attr-bad-crate-attr.stderr
  339. attr-shebang.rs
  340. attr-start.rs
  341. attr-usage-inline.rs
  342. attr-usage-inline.stderr
  343. attrs-resolution-errors.rs
  344. attrs-resolution-errors.stderr
  345. attrs-resolution.rs
  346. augmented-assignments-feature-gate-cross.rs
  347. augmented-assignments-rpass.rs
  348. augmented-assignments.rs
  349. augmented-assignments.stderr
  350. auto-instantiate.rs
  351. auto-ref-slice-plus-ref.rs
  352. auto-ref-slice-plus-ref.stderr
  353. autoderef-full-lval.rs
  354. autoderef-full-lval.stderr
  355. bare-fn-implements-fn-mut.rs
  356. bare-static-string.rs
  357. big-literals.rs
  358. bind-by-move.rs
  359. bitwise.rs
  360. bogus-tag.rs
  361. bogus-tag.stderr
  362. borrow-by-val-method-receiver.rs
  363. bounds-lifetime.rs
  364. bounds-lifetime.stderr
  365. break-diverging-value.rs
  366. break-diverging-value.stderr
  367. builtin-clone-unwind.rs
  368. can-copy-pod.rs
  369. cancel-clean-via-immediate-rvalue-ref.rs
  370. cannot-mutate-captured-non-mut-var.rs
  371. cannot-mutate-captured-non-mut-var.stderr
  372. capture1.rs
  373. capture1.stderr
  374. catch-unwind-bang.rs
  375. cenum_impl_drop_cast.rs
  376. cenum_impl_drop_cast.stderr
  377. cfguard-run.rs
  378. char.rs
  379. class-cast-to-trait.rs
  380. class-cast-to-trait.stderr
  381. class-method-missing.rs
  382. class-method-missing.stderr
  383. cleanup-rvalue-for-scope.rs
  384. cleanup-rvalue-scopes-cf.rs
  385. cleanup-rvalue-scopes-cf.stderr
  386. cleanup-rvalue-scopes.rs
  387. cleanup-rvalue-temp-during-incomplete-alloc.rs
  388. cleanup-shortcircuit.rs
  389. close-over-big-then-small-data.rs
  390. command-line-diagnostics.rs
  391. command-line-diagnostics.stderr
  392. complex.rs
  393. conservative_impl_trait.rs
  394. conservative_impl_trait.stderr
  395. constructor-lifetime-args.rs
  396. constructor-lifetime-args.stderr
  397. copy-a-resource.rs
  398. copy-a-resource.stderr
  399. crate-leading-sep.rs
  400. crate-method-reexport-grrrrrrr.rs
  401. crate-name-attr-used.rs
  402. crate-name-mismatch.rs
  403. crate-name-mismatch.stderr
  404. custom-attribute-multisegment.rs
  405. custom-attribute-multisegment.stderr
  406. custom-test-frameworks-simple.rs
  407. custom_attribute.rs
  408. custom_attribute.stderr
  409. deduplicate-diagnostics.deduplicate.stderr
  410. deduplicate-diagnostics.duplicate.stderr
  411. deduplicate-diagnostics.rs
  412. deep.rs
  413. default-method-parsing.rs
  414. default-method-simple.rs
  415. defaults-well-formedness.rs
  416. deprecation-in-force-unstable.rs
  417. deref-non-pointer.rs
  418. deref-non-pointer.stderr
  419. deref-rc.rs
  420. deref.rs
  421. derive-uninhabited-enum-38885.rs
  422. derive-uninhabited-enum-38885.stderr
  423. destructure-trait-ref.rs
  424. destructure-trait-ref.stderr
  425. diverging-fallback-method-chain.rs
  426. diverging-fallback-option.rs
  427. diverging-fn-tail-35849.rs
  428. diverging-fn-tail-35849.stderr
  429. double-ref.rs
  430. double-type-import.rs
  431. double-type-import.stderr
  432. dupe-first-attr.rs
  433. duplicate_entry_error.rs
  434. duplicate_entry_error.stderr
  435. early-ret-binop-add.rs
  436. elide-errors-on-mismatched-tuple.rs
  437. elide-errors-on-mismatched-tuple.stderr
  438. elided-test.rs
  439. elided-test.stderr
  440. else-if.rs
  441. empty-allocation-non-null.rs
  442. empty-allocation-rvalue-non-null.rs
  443. empty-type-parameter-list.rs
  444. empty-type-parameter-list.stderr
  445. error-festival.rs
  446. error-festival.stderr
  447. error-should-say-copy-not-pod.rs
  448. error-should-say-copy-not-pod.stderr
  449. exclusive-drop-and-copy.rs
  450. exclusive-drop-and-copy.stderr
  451. explain.rs
  452. explain.stdout
  453. explicit-i-suffix.rs
  454. explore-issue-38412.rs
  455. explore-issue-38412.stderr
  456. ext-expand-inner-exprs.rs
  457. ext-nonexistent.rs
  458. ext-nonexistent.stderr
  459. fact.rs
  460. fail-simple.rs
  461. fail-simple.stderr
  462. filter-block-view-items.rs
  463. format-no-std.rs
  464. fun-indirect-call.rs
  465. future-incompatible-lint-group.rs
  466. future-incompatible-lint-group.stderr
  467. global-scope.rs
  468. hello.rs
  469. illegal-ufcs-drop.fixed
  470. illegal-ufcs-drop.rs
  471. illegal-ufcs-drop.stderr
  472. impl-inherent-non-conflict.rs
  473. impl-not-adjacent-to-type.rs
  474. impl-privacy-xc-1.rs
  475. impl-unused-rps-in-assoc-type.rs
  476. impl-unused-rps-in-assoc-type.stderr
  477. impl-unused-tps-inherent.rs
  478. impl-unused-tps-inherent.stderr
  479. impl-unused-tps.rs
  480. impl-unused-tps.stderr
  481. implicit-method-bind.rs
  482. implicit-method-bind.stderr
  483. inline-disallow-on-variant.rs
  484. inline-disallow-on-variant.stderr
  485. inlined-main.rs
  486. inner-attrs-on-impl.rs
  487. inner-module.rs
  488. inner-static-type-parameter.rs
  489. inner-static-type-parameter.stderr
  490. inner-static.rs
  491. integral-indexing.rs
  492. integral-indexing.stderr
  493. integral-variable-unification-error.rs
  494. integral-variable-unification-error.stderr
  495. invalid_crate_type_syntax.rs
  496. invalid_crate_type_syntax.stderr
  497. invalid_dispatch_from_dyn_impls.rs
  498. invalid_dispatch_from_dyn_impls.stderr
  499. issue-11881.rs
  500. issue-13560.rs
  501. issue-15924.rs
  502. issue-16822.rs
  503. issue-18502.rs
  504. issue-24106.rs
  505. issue-76387-llvm-miscompile.rs
  506. issues-71798.rs
  507. issues-71798.stderr
  508. item-name-overload.rs
  509. kinds-in-metadata.rs
  510. kinds-of-primitive-impl.rs
  511. kinds-of-primitive-impl.stderr
  512. last-use-in-block.rs
  513. last-use-in-cap-clause.rs
  514. last-use-is-capture.rs
  515. lazy-and-or.rs
  516. lexical-scopes.rs
  517. lexical-scopes.stderr
  518. lexical-scoping.rs
  519. link-section.rs
  520. list.rs
  521. log-err-phi.rs
  522. log-knows-the-names-of-variants.rs
  523. log-poly.rs
  524. logging-only-prints-once.rs
  525. loud_ui.rs
  526. max-min-classes.rs
  527. maximal_mir_to_hir_coverage.rs
  528. maybe-bounds.rs
  529. maybe-bounds.stderr
  530. method-output-diff-issue-127263.rs
  531. method-output-diff-issue-127263.stderr
  532. minus-string.rs
  533. minus-string.stderr
  534. missing_debug_impls.rs
  535. missing_debug_impls.stderr
  536. mod-subitem-as-enum-variant.rs
  537. mod-subitem-as-enum-variant.stderr
  538. monomorphize-abi-alignment.rs
  539. msvc-data-only.rs
  540. msvc-opt-minsize.rs
  541. multibyte.rs
  542. multiline-comment.rs
  543. mut-function-arguments.rs
  544. mutual-recursion-group.rs
  545. myriad-closures.rs
  546. nested-block-comment.rs
  547. nested-cfg-attrs.rs
  548. nested-cfg-attrs.stderr
  549. nested-class.rs
  550. nested-ty-params.rs
  551. nested-ty-params.stderr
  552. new-impl-syntax.rs
  553. new-import-syntax.rs
  554. new-style-constants.rs
  555. new-unicode-escapes.rs
  556. newlambdas.rs
  557. newtype-polymorphic.rs
  558. newtype.rs
  559. no-capture-arc.rs
  560. no-capture-arc.stderr
  561. no-core-1.rs
  562. no-core-2.rs
  563. no-link-unknown-crate.rs
  564. no-link-unknown-crate.stderr
  565. no-reuse-move-arc.rs
  566. no-reuse-move-arc.stderr
  567. no-send-res-ports.rs
  568. no-send-res-ports.stderr
  569. no-warn-on-field-replace-issue-34101.rs
  570. no_crate_type.rs
  571. no_crate_type.stderr
  572. no_send-enum.rs
  573. no_send-enum.stderr
  574. no_send-rc.rs
  575. no_send-rc.stderr
  576. no_share-enum.rs
  577. no_share-enum.stderr
  578. no_share-struct.rs
  579. no_share-struct.stderr
  580. noexporttypeexe.rs
  581. noexporttypeexe.stderr
  582. non-constant-expr-for-arr-len.rs
  583. non-constant-expr-for-arr-len.stderr
  584. non-copyable-void.rs
  585. non-copyable-void.stderr
  586. non-fmt-panic.fixed
  587. non-fmt-panic.rs
  588. non-fmt-panic.stderr
  589. noncopyable-class.rs
  590. noncopyable-class.stderr
  591. nonscalar-cast.fixed
  592. nonscalar-cast.rs
  593. nonscalar-cast.stderr
  594. not-clone-closure.rs
  595. not-clone-closure.stderr
  596. not-copy-closure.rs
  597. not-copy-closure.stderr
  598. not-enough-arguments.rs
  599. not-enough-arguments.stderr
  600. nul-characters.rs
  601. nullable-pointer-iotareduction.rs
  602. nullable-pointer-size.rs
  603. object-pointer-types.rs
  604. object-pointer-types.stderr
  605. objects-coerce-freeze-borrored.rs
  606. occurs-check-2.rs
  607. occurs-check-2.stderr
  608. occurs-check-3.rs
  609. occurs-check-3.stderr
  610. occurs-check.rs
  611. occurs-check.stderr
  612. once-cant-call-twice-on-heap.rs
  613. once-cant-call-twice-on-heap.stderr
  614. oom_unwind.rs
  615. op-assign-builtins-by-ref.rs
  616. opeq.rs
  617. opt-in-copy.rs
  618. opt-in-copy.stderr
  619. optimization-remark.rs
  620. out-pointer-aliasing.rs
  621. output-slot-variants.rs
  622. over-constrained-vregs.rs
  623. panic-while-printing.rs
  624. panic_implementation-closures.rs
  625. paren-span.rs
  626. paren-span.stderr
  627. partialeq_help.rs
  628. partialeq_help.stderr
  629. path-lookahead.fixed
  630. path-lookahead.rs
  631. path-lookahead.stderr
  632. path.rs
  633. paths-containing-nul.rs
  634. phantom-auto-trait.rs
  635. phantom-auto-trait.stderr
  636. point-to-type-err-cause-on-impl-trait-return-2.rs
  637. point-to-type-err-cause-on-impl-trait-return-2.stderr
  638. pptypedef.rs
  639. pptypedef.stderr
  640. primitive-binop-lhs-mut.rs
  641. print-stdout-eprint-stderr.rs
  642. project-cache-issue-31849.rs
  643. ptr-coercion-rpass.rs
  644. ptr-coercion.rs
  645. ptr-coercion.stderr
  646. query-visibility.rs
  647. raw-str.rs
  648. README.md
  649. realloc-16687.rs
  650. reassign-ref-mut.rs
  651. reassign-ref-mut.stderr
  652. reexport-test-harness-main.rs
  653. removing-extern-crate.fixed
  654. removing-extern-crate.rs
  655. removing-extern-crate.stderr
  656. resource-assign-is-not-copy.rs
  657. resource-destruct.rs
  658. rustc-error.rs
  659. rustc-error.stderr
  660. seq-args.rs
  661. seq-args.stderr
  662. shadow-bool.rs
  663. shadowed-use-visibility.rs
  664. short-error-format.rs
  665. short-error-format.stderr
  666. sized-borrowed-pointer.rs
  667. sized-cycle-note.rs
  668. sized-cycle-note.stderr
  669. sized-owned-pointer.rs
  670. sse2.rs
  671. stable-addr-of.rs
  672. std-uncopyable-atomics.rs
  673. std-uncopyable-atomics.stderr
  674. stdio-is-blocking.rs
  675. string-box-error.rs
  676. struct-ctor-mangling.rs
  677. super-at-top-level.rs
  678. super-at-top-level.stderr
  679. super.rs
  680. svh-add-nothing.rs
  681. swap-1.rs
  682. swap-overlapping.rs
  683. switched-expectations.rs
  684. switched-expectations.stderr
  685. syntax-extension-minor.rs
  686. tag-type-args.rs
  687. tag-type-args.stderr
  688. tag-variant-cast-non-nullary.fixed
  689. tag-variant-cast-non-nullary.rs
  690. tag-variant-cast-non-nullary.stderr
  691. tail-call-arg-leak.rs
  692. tail-cps.rs
  693. tail-typeck.rs
  694. tail-typeck.stderr
  695. trailing-comma.rs
  696. trait-method-number-parameters.rs
  697. trait-method-number-parameters.stderr
  698. transmute-equal-assoc-types.rs
  699. transmute-non-immediate-to-immediate.rs
  700. trivial_casts-rpass.rs
  701. trivial_casts-rpass.stderr
  702. try-from-int-error-partial-eq.rs
  703. try-operator-hygiene.rs
  704. try-operator.rs
  705. tydesc-name.rs
  706. type-id-higher-rank-2.rs
  707. type-namespace.rs
  708. type-param-constraints.rs
  709. type-param.rs
  710. type-ptr.rs
  711. type-use-i1-versus-i8.rs
  712. type_length_limit.polonius.stderr
  713. type_length_limit.rs
  714. type_length_limit.stderr
  715. typeid-intrinsic.rs
  716. typestate-multi-decl.rs
  717. unconstrained-none.rs
  718. unconstrained-none.stderr
  719. unconstrained-ref.rs
  720. unconstrained-ref.stderr
  721. underscore-ident-matcher.rs
  722. underscore-ident-matcher.stderr
  723. underscore-lifetimes.rs
  724. underscore-method-after-integer.rs
  725. unevaluated_fixed_size_array_len.rs
  726. unevaluated_fixed_size_array_len.stderr
  727. uninit-empty-types.rs
  728. unit.rs
  729. unknown-language-item.rs
  730. unknown-language-item.stderr
  731. unknown-llvm-arg.rs
  732. unknown-llvm-arg.stderr
  733. unnamed_argument_mode.rs
  734. unreachable-code-1.rs
  735. unreachable-code.rs
  736. unsigned-literal-negation.rs
  737. unsigned-literal-negation.stderr
  738. unused-move-capture.rs
  739. unused-move.rs
  740. unwind-no-uwtable.rs
  741. use-import-export.rs
  742. use-keyword-2.rs
  743. use-module-level-int-consts.rs
  744. use-nested-groups.rs
  745. used.rs
  746. used.stderr
  747. using-target-feature-unstable.rs
  748. usize-generic-argument-parent.rs
  749. usize-generic-argument-parent.stderr
  750. utf8-bom.rs
  751. utf8_idents.rs
  752. wait-forked-but-failed-child.rs
  753. walk-struct-literal-with.rs
  754. walk-struct-literal-with.stderr
  755. weak-new-uninhabited-issue-48493.rs
  756. weird-exit-code.rs
  757. weird-exprs.rs
  758. write-fmt-errors.rs
  759. writing-to-immutable-vec.rs
  760. writing-to-immutable-vec.stderr
  761. wrong-hashset-issue-42918.rs
tests/ui/README.md

UI Tests

This folder contains rustc's UI tests.

Test Directives (Headers)

Typically, a UI test will have some test directives / headers which are special comments that tell compiletest how to build and intepret a test.

As part of an on-going effort to rewrite compiletest (see https://github.com/rust-lang/compiler-team/issues/536), a major change proposal to change legacy compiletest-style headers // <directive> to ui_test-style headers //@ <directive> was accepted (see https://github.com/rust-lang/compiler-team/issues/512.

An example directive is ignore-test. In legacy compiletest style, the header would be written as

// ignore-test

but in ui_test style, the header would be written as

//@ ignore-test

compiletest is changed to accept only //@ directives for UI tests (currently), and will reject and report an error if it encounters any comments // <content> that may be parsed as an legacy compiletest-style test header. To fix this, you should migrate to the ui_test-style header //@ <content>.