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

As part of an ongoing 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 a legacy compiletest-style test header. To fix this, you should migrate to the ui_test-style header //@ <content>.