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