rust/tests/ui
bors d4822c2d84 Auto merge of #127589 - notriddle:notriddle/search-sem-3, r=GuillaumeGomez
rustdoc-search: simplify rules for generics and type params

**Heads up!**: This PR is a follow-up that depends on #124544. It adds 12dc24f460, a change to the filtering behavior, and 9900ea48b5, a minor ranking tweak.

Part of https://github.com/rust-lang/rust-project-goals/issues/112

This PR overturns https://github.com/rust-lang/rust/pull/109802

## Preview

* no results: [`Box<[A]> -> Vec<B>`](http://notriddle.com/rustdoc-html-demo-12/search-sem-3/std/index.html?search=Box%3C%5BA%5D%3E%20-%3E%20Vec%3CB%3E)
* results: [`Box<[A]> -> Vec<A>`](http://notriddle.com/rustdoc-html-demo-12/search-sem-3/std/index.html?search=Box%3C%5BA%5D%3E%20-%3E%20Vec%3CA%3E)
* [`T -> U`](http://notriddle.com/rustdoc-html-demo-12/search-sem-3/std/index.html?search=T%20-%3E%20U)
* [`Cx -> TyCtxt`](http://notriddle.com/rustdoc-html-demo-12/search-sem-3-compiler/rustdoc/index.html?search=Cx%20-%3E%20TyCtxt)

![image](https://github.com/user-attachments/assets/015ae28c-7469-4f7f-be03-157d28d7ec97)

## Description

This commit is a response to feedback on the displayed type signatures results, by making generics act stricter.

- Order within generics is significant. This means `Vec<Allocator>` now matches only with a true vector of allocators, instead of matching the second type param. It also makes unboxing within generics stricter, so `Result<A, B>` only matches if `B` is in the error type and `A` is in the success type. The top level of the function search is unaffected.
- Generics are only "unboxed" if a type is explicitly opted into it. References and tuples are hardcoded to allow unboxing, and Box, Rc, Arc, Option, Result, and Future are opted in with an unstable attribute. Search result unboxing is the process that allows you to search for `i32 -> str` and get back a function with the type signature `&Future<i32> -> Box<str>`.
- Instead of ranking by set overlap, it ranks by the number of items in the type signature. This makes it easier to find single type signatures like transmute.

## Find the discussion on

* <https://rust-lang.zulipchat.com/#narrow/stream/393423-t-rustdoc.2Fmeetings/topic/meeting.202024-07-08/near/449965149>
* <https://github.com/rust-lang/rust/pull/124544#issuecomment-2204272265>
* <https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/deciding.20on.20semantics.20of.20generics.20in.20rustdoc.20search>
2024-11-11 12:26:00 +00:00
..
abi
alloc-error
allocator
annotate-snippet
anon-params
argfile
argument-suggestions
array-slice-vec
asm Stabilize Arm64EC inline assembly 2024-11-10 17:43:46 +09:00
associated-consts
associated-inherent-types
associated-item
associated-type-bounds
associated-types
async-await
attributes
auto-traits
autodiff
autoref-autoderef
auxiliary
backtrace
bench
binding
binop
blind
block-result
borrowck
box
btreemap
builtin-superkinds
c-variadic
cast
cfg
check-cfg Stabilize WebAssembly multivalue, reference-types, and tail-call target features 2024-11-10 07:45:14 -08:00
closure_context
closure-expected-type
closures
cmse-nonsecure
codegen
codemap_tests Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
coercion
coherence
coinduction
command
compare-method
compiletest-self-test
conditional-compilation
confuse-field-and-method
const_prop
const-generics
const-ptr
consts
coroutine
coverage-attr
crate-loading
cross
cross-crate
custom_test_frameworks
cycle-trait
debuginfo
definition-reachable
delegation
dep-graph
deprecation
deref-patterns
derived-errors
derives
deriving
dest-prop
destructuring-assignment
diagnostic_namespace
diagnostic-flags
diagnostic-width Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
did_you_mean
directory_ownership
disallowed-deconstructing
dollar-crate
drop
drop-bounds
dropck
dst
duplicate
dyn-compatibility
dyn-drop
dyn-keyword
dyn-star
dynamically-sized-types
editions
empty
entry-point
enum
enum-discriminant
env-macro
error-codes
error-emitter Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
errors
explicit
explicit-tail-calls
expr
extern
extern-flag
feature-gates Auto merge of #127589 - notriddle:notriddle/search-sem-3, r=GuillaumeGomez 2024-11-11 12:26:00 +00:00
ffi-attrs
float
fmt
fn
fn-main
for
for-loop-while
foreign
fuel
fully-qualified-type
function-pointer
functional-struct-update
functions-closures
generic-associated-types
generic-const-items
generics
half-open-range-patterns
hashmap
hello_world
higher-ranked
hygiene
illegal-sized-bound
impl-header-lifetime-elision
impl-trait Dont suggest use<APIT> 2024-11-09 19:41:53 +00:00
implied-bounds
imports
include-macros
incoherent-inherent-impls
indexing
inference
infinite
inherent-impls-overlap-check
inline-const
instrument-coverage
instrument-xray
interior-mutability
internal
internal-lints
intrinsics
invalid
invalid-compile-flags
invalid-module-declaration
invalid-self-argument
io-checks
issues
iterators
json
keyword
kindck
label
lang-items
late-bound-lifetimes
layout Auto merge of #132173 - veluca93:abi_checks, r=RalfJung,compiler-errors 2024-11-10 02:52:25 +00:00
lazy-type-alias
lazy-type-alias-impl-trait
let-else
lexer
lifetimes Rollup merge of #132363 - compiler-errors:raw-lt-id-valid, r=wesleywiser 2024-11-09 19:16:43 +01:00
limits
linkage-attr
lint Rollup merge of #132426 - Urgau:unreach_pub-super, r=petrochenkov 2024-11-10 22:20:35 +01:00
liveness
loops
lowering
lto
lub-glb
macro_backtrace
macros
malformed
manual
marker_trait_attr
match
meta
methods
mir
mir-dataflow
mismatched_types Add test for str for "expected primitive, found type" 2024-11-09 00:23:53 -06:00
missing
missing_non_modrs_mod
missing-trait-bounds
modules
modules_and_files_visibility
moves
mut
namespace
native-library-link-flags
never_type
nll
no_std
non_modrs_mods
non_modrs_mods_and_inline_mods
not-panic
numbers-arithmetic
numeric
object-lifetime
obsolete-in-place
offset-of
on-unimplemented
operator-recovery
or-patterns
overloaded
packed
panic-handler
panic-runtime
panics
parallel-rustc
parser Auto merge of #126597 - estebank:unicode-output, r=fmease 2024-11-11 00:00:58 +00:00
patchable-function-entry
pattern
pin-macro
polymorphization
precondition-checks
print_type_sizes
print-request
privacy
proc-macro
process
process-termination
ptr_ops
pub
qualified
query-system
range
raw-ref-op
reachable
recursion
recursion_limit
regions
repeat-expr
repr
reserved
resolve
return
rfcs Add more places where expressions can occur 2024-11-10 01:18:35 +01:00
rmeta
runtime
rust-2018
rust-2021
rust-2024
rustc-env
rustdoc
sanitizer
self
sepcomp
shadowed
shell-argfiles
simd
single-use-lifetime
sized
span
specialization
stability-attribute
stable-mir-print
stack-protector
static
statics
stats
std
stdlib-unit-tests
str
structs
structs-enums
suggestions
svh
symbol-mangling-version
symbol-names
sync
target-feature
test-attrs
thir-print
thread-local
threads-sendsync
tool-attributes
track-diagnostics
trait-bounds
traits give a hint which feature is missing 2024-11-09 23:32:06 +01:00
transmutability
transmute
treat-err-as-bug
trivial-bounds
try-block
try-trait
tuple
type
type-alias
type-alias-enum-variants
type-alias-impl-trait
type-inference
typeck
typeof
ufcs
unboxed-closures
underscore-imports
underscore-lifetime
uniform-paths
uninhabited
union
unknown-unstable-lints
unop
unpretty
unresolved
unsafe
unsized
unsized-locals
unused-crate-deps
unwind-abis
use
variance
variants
version
warnings
wasm Stabilize WebAssembly multivalue, reference-types, and tail-call target features 2024-11-10 07:45:14 -08:00
wf
where-clauses
while
windows-subsystem
zero-sized
.gitattributes Move /src/test to /tests 2023-01-11 09:32:08 +00:00
alias-uninit-value.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
allow-non-lint-warnings.rs Make run-make/allow-non-lint-warnings-cmdline into a ui test 2024-06-13 12:55:55 +02:00
anonymous-higher-ranked-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
anonymous-higher-ranked-lifetime.stderr Remove Partial/Ord from BoundRegion 2024-03-27 14:02:16 +00:00
artificial-block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
as-precedence.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
assign-assign.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
assign-imm-local-twice.rs Better span for "make binding mutable" suggestion 2024-07-04 02:02:21 +00:00
assign-imm-local-twice.stderr Better span for "make binding mutable" suggestion 2024-07-04 02:02:21 +00:00
assoc-lang-items.rs
assoc-lang-items.stderr consistency rename: language item -> lang item 2024-04-17 13:00:43 +02:00
assoc-oddities-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-path-shl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-path-shl.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
atomic-from-mut-not-available.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
atomic-from-mut-not-available.stderr fix test 2024-02-22 18:05:28 +00:00
attempted-access-non-fatal.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attempted-access-non-fatal.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attr-bad-crate-attr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
attr-bad-crate-attr.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
attr-shebang.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
attr-start.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
attr-usage-inline.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attr-usage-inline.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-resolution-errors.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-resolution-errors.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
attrs-resolution.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
augmented-assignments-feature-gate-cross.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
augmented-assignments-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
augmented-assignments.rs Peel off explicit (or implicit) deref before suggesting clone on move error in borrowck 2024-07-26 14:41:56 -04:00
augmented-assignments.stderr Peel off explicit (or implicit) deref before suggesting clone on move error in borrowck 2024-07-26 14:41:56 -04:00
auto-instantiate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
auto-ref-slice-plus-ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-ref-slice-plus-ref.stderr Consider methods from traits when suggesting typos 2024-02-22 18:04:55 +00:00
autoderef-full-lval.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
autoderef-full-lval.stderr Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
bare-fn-implements-fn-mut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bare-static-string.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
big-literals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bind-by-move.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bitwise.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bogus-tag.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bogus-tag.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrow-by-val-method-receiver.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bounds-lifetime.rs Simple modification of diagnostic information 2023-12-21 10:17:11 +08:00
bounds-lifetime.stderr Bless tests 2024-01-13 12:46:58 -05:00
break-diverging-value.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
break-diverging-value.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
builtin-clone-unwind.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
can-copy-pod.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cancel-clean-via-immediate-rvalue-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cannot-mutate-captured-non-mut-var.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cannot-mutate-captured-non-mut-var.stderr More accurate mutability suggestion 2024-07-04 05:36:34 +00:00
capture1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
capture1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
catch-unwind-bang.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cenum_impl_drop_cast.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cenum_impl_drop_cast.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cfguard-run.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
char.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
class-cast-to-trait.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
class-cast-to-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
class-method-missing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
class-method-missing.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cleanup-rvalue-for-scope.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cleanup-rvalue-scopes-cf.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cleanup-rvalue-scopes-cf.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cleanup-rvalue-scopes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cleanup-rvalue-temp-during-incomplete-alloc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cleanup-shortcircuit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
close-over-big-then-small-data.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-diagnostics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-diagnostics.stderr Better span for "make binding mutable" suggestion 2024-07-04 02:02:21 +00:00
complex.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
conservative_impl_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
conservative_impl_trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
constructor-lifetime-args.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
constructor-lifetime-args.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
copy-a-resource.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
copy-a-resource.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
crate-leading-sep.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
crate-method-reexport-grrrrrrr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
crate-name-attr-used.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
crate-name-mismatch.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
crate-name-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
custom_attribute.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
custom_attribute.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
custom-attribute-multisegment.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
custom-attribute-multisegment.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
custom-test-frameworks-simple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deduplicate-diagnostics.deduplicate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deduplicate-diagnostics.duplicate.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
deduplicate-diagnostics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deep.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
default-method-parsing.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
default-method-simple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
defaults-well-formedness.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deprecation-in-force-unstable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deref-non-pointer.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deref-non-pointer.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
deref-rc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
derive-uninhabited-enum-38885.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
derive-uninhabited-enum-38885.stderr Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
destructure-trait-ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
destructure-trait-ref.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
diverging-fallback-method-chain.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
diverging-fallback-option.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
diverging-fn-tail-35849.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
diverging-fn-tail-35849.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
double-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
double-type-import.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
double-type-import.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dupe-first-attr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
duplicate_entry_error.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
duplicate_entry_error.stderr Rename std::panic::PanicInfo to PanicHookInfo. 2024-06-11 15:47:00 +02:00
duplicate-label-E0381-issue-129274.rs Deduplicate Spans in Uninitialized Check 2024-08-22 09:36:14 -07:00
duplicate-label-E0381-issue-129274.stderr Deduplicate Spans in Uninitialized Check 2024-08-22 09:36:14 -07:00
early-ret-binop-add.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
elide-errors-on-mismatched-tuple.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
elide-errors-on-mismatched-tuple.stderr
elided-test.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
elided-test.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
else-if.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
empty-allocation-non-null.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
empty-allocation-rvalue-non-null.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
empty-type-parameter-list.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
empty-type-parameter-list.stderr Update tests 2024-02-07 10:42:01 +08:00
error-festival.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
error-festival.stderr Suggest fixing typos and let bindings at the same time 2024-11-02 14:40:37 -07:00
error-should-say-copy-not-pod.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
error-should-say-copy-not-pod.stderr Detect when method call on argument could be removed to fulfill failed trait bound 2024-02-16 04:28:05 +00:00
exclusive-drop-and-copy.rs may not => cannot 2023-03-08 00:00:18 +00:00
exclusive-drop-and-copy.stderr may not => cannot 2023-03-08 00:00:18 +00:00
explain.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
explain.stdout Move /src/test to /tests 2023-01-11 09:32:08 +00:00
explicit-i-suffix.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
explore-issue-38412.rs use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
explore-issue-38412.stderr use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
ext-expand-inner-exprs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ext-nonexistent.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ext-nonexistent.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fact.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fail-simple.rs Tweak more warnings. 2024-10-28 14:20:28 +11:00
fail-simple.stderr Tweak more warnings. 2024-10-28 14:20:28 +11:00
filter-block-view-items.rs Unify all the always-false cfgs under the FALSE cfg 2024-04-07 01:16:45 +02:00
format-no-std.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fun-indirect-call.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-incompatible-lint-group.rs Update ui tests 2024-02-29 14:43:43 +01:00
future-incompatible-lint-group.stderr Update ui tests 2024-02-29 14:43:43 +01:00
global-scope.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
hello.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
illegal-ufcs-drop.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
illegal-ufcs-drop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
illegal-ufcs-drop.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-inherent-non-conflict.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-not-adjacent-to-type.rs Allow unused fields in some tests 2024-03-12 10:59:41 +01:00
impl-privacy-xc-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-unused-rps-in-assoc-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-unused-rps-in-assoc-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-unused-tps-inherent.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-unused-tps-inherent.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-unused-tps.rs stabilize -Znext-solver=coherence 2024-10-15 13:11:00 +02:00
impl-unused-tps.stderr stabilize -Znext-solver=coherence 2024-10-15 13:11:00 +02:00
implicit-method-bind.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
implicit-method-bind.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
inline-disallow-on-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inline-disallow-on-variant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
inlined-main.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inner-attrs-on-impl.rs Unify all the always-false cfgs under the FALSE cfg 2024-04-07 01:16:45 +02:00
inner-module.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inner-static-type-parameter.rs Generalize E0401 2023-09-10 23:06:14 +02:00
inner-static-type-parameter.stderr Rollup merge of #119939 - clubby789:static-const-generic-note, r=compiler-errors 2024-02-06 22:45:39 +01:00
inner-static.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
integral-indexing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
integral-indexing.stderr Trim output of E0277 in some cases 2024-11-02 03:08:04 +00:00
integral-variable-unification-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
integral-variable-unification-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
invalid_crate_type_syntax.rs
invalid_crate_type_syntax.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
invalid_dispatch_from_dyn_impls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
invalid_dispatch_from_dyn_impls.stderr Extend impl's def_span to include where clauses 2023-10-09 11:47:02 +00:00
issue-11881.rs
issue-13560.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-15924.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-16822.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-18502.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-24106.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-76387-llvm-miscompile.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issues-71798.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issues-71798.stderr Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
item-name-overload.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
kinds-in-metadata.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
kinds-of-primitive-impl.rs Continue compilation even if inherent impl checks fail 2024-02-14 21:04:51 +00:00
kinds-of-primitive-impl.stderr Continue compilation even if inherent impl checks fail 2024-02-14 21:04:51 +00:00
last-use-in-block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
last-use-in-cap-clause.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
last-use-is-capture.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lazy-and-or.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lexical-scopes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lexical-scopes.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lexical-scoping.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
link-section.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
list.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
log-err-phi.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
log-knows-the-names-of-variants.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
log-poly.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
logging-only-prints-once.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
loud_ui.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
max-min-classes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
maximal_mir_to_hir_coverage.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
maybe-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
maybe-bounds.stderr Support ?Trait bounds in supertraits and dyn Trait under a feature gate 2024-07-25 20:53:33 +03:00
method-output-diff-issue-127263.rs show unit output when there is only output diff in diagnostics 2024-07-06 21:00:30 +08:00
method-output-diff-issue-127263.stderr show unit output when there is only output diff in diagnostics 2024-07-06 21:00:30 +08:00
minus-string.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
minus-string.stderr Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
missing_debug_impls.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing_debug_impls.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mod-subitem-as-enum-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mod-subitem-as-enum-variant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
monomorphize-abi-alignment.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
msvc-data-only.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
msvc-opt-minsize.rs rewrite test-harness to rmake 2024-07-02 11:37:59 -04:00
multibyte.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
multiline-comment.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mut-function-arguments.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mutual-recursion-group.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
myriad-closures.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-block-comment.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-cfg-attrs.rs Unify all the always-false cfgs under the FALSE cfg 2024-04-07 01:16:45 +02:00
nested-cfg-attrs.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nested-class.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-ty-params.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-ty-params.stderr Generalize E0401 2023-09-10 23:06:14 +02:00
new-impl-syntax.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
new-import-syntax.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
new-style-constants.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
new-unicode-escapes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
newlambdas.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
newtype-polymorphic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
newtype.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no_crate_type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no_crate_type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no_send-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no_send-enum.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
no_send-rc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no_send-rc.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no_share-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no_share-enum.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
no_share-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no_share-struct.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-capture-arc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-capture-arc.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-core-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-core-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-link-unknown-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-link-unknown-crate.stderr
no-reuse-move-arc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-reuse-move-arc.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-send-res-ports.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-send-res-ports.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
no-warn-on-field-replace-issue-34101.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
noexporttypeexe.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
noexporttypeexe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
non-constant-expr-for-arr-len.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-constant-expr-for-arr-len.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
non-copyable-void.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
non-copyable-void.stderr Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
non-fmt-panic.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
non-fmt-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
non-fmt-panic.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
noncopyable-class.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
noncopyable-class.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nonscalar-cast.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nonscalar-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nonscalar-cast.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
not-clone-closure.rs Add --diagnostic-width to some tests failing after 1a0c502183 2024-11-06 20:02:42 +01:00
not-clone-closure.stderr Add --diagnostic-width to some tests failing after 1a0c502183 2024-11-06 20:02:42 +01:00
not-copy-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
not-copy-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
not-enough-arguments.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
not-enough-arguments.stderr Use ordinal number in argument error 2024-07-14 13:50:09 +09:00
nul-characters.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nullable-pointer-iotareduction.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nullable-pointer-size.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
object-pointer-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-pointer-types.stderr Deduplicate some logic and reword output 2024-02-22 18:05:28 +00:00
objects-coerce-freeze-borrored.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
occurs-check-2.rs change error messages to be incorrect, but more helpful 2024-02-22 18:18:33 +01:00
occurs-check-2.stderr change error messages to be incorrect, but more helpful 2024-02-22 18:18:33 +01:00
occurs-check-3.rs change error messages to be incorrect, but more helpful 2024-02-22 18:18:33 +01:00
occurs-check-3.stderr change error messages to be incorrect, but more helpful 2024-02-22 18:18:33 +01:00
occurs-check.rs change error messages to be incorrect, but more helpful 2024-02-22 18:18:33 +01:00
occurs-check.stderr change error messages to be incorrect, but more helpful 2024-02-22 18:18:33 +01:00
once-cant-call-twice-on-heap.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
once-cant-call-twice-on-heap.stderr Better account for FnOnce in move errors 2024-04-11 16:41:42 +00:00
oom_unwind.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
op-assign-builtins-by-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
opeq.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
opt-in-copy.rs may not => cannot 2023-03-08 00:00:18 +00:00
opt-in-copy.stderr may not => cannot 2023-03-08 00:00:18 +00:00
optimization-remark.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
out-pointer-aliasing.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
output-slot-variants.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
over-constrained-vregs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic_implementation-closures.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-while-printing.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
paren-span.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
paren-span.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
partialeq_help.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
partialeq_help.stderr
path-lookahead.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
path-lookahead.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
path-lookahead.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
path.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
paths-containing-nul.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
phantom-auto-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
phantom-auto-trait.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
point-to-type-err-cause-on-impl-trait-return-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
point-to-type-err-cause-on-impl-trait-return-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
pptypedef.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pptypedef.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
primitive-binop-lhs-mut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
print-calling-conventions.rs Migrate run-make/print-calling-conventions to ui-test 2024-08-03 20:09:42 -04:00
print-calling-conventions.stdout add C-cmse-nonsecure-entry ABI 2024-09-21 13:04:14 +02:00
print-stdout-eprint-stderr.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
project-cache-issue-31849.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr-coercion-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr-coercion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ptr-coercion.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
query-visibility.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
raw-str.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
README.md Implement infra support for migrating from // to //@ ui test directives 2024-02-16 19:40:23 +00:00
realloc-16687.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
reassign-ref-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reassign-ref-mut.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reexport-test-harness-main.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
removing-extern-crate.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
removing-extern-crate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
removing-extern-crate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
resource-assign-is-not-copy.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
resource-destruct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rustc-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustc-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
seq-args.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
seq-args.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
shadow-bool.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
shadowed-use-visibility.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
short-error-format.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
short-error-format.stderr On short error format, append primary span label to message 2024-08-06 04:08:10 +00:00
simd-abi-checks.rs
simd-abi-checks.stderr
sized-borrowed-pointer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sized-cycle-note.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
sized-cycle-note.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
sized-owned-pointer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sse2.rs sudo CI=green && Review changes <3 2024-06-25 18:06:22 +02:00
sse-abi-checks.rs
sse-abi-checks.stderr
stable-addr-of.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
std-uncopyable-atomics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
std-uncopyable-atomics.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
stdio-is-blocking.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
string-box-error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-ctor-mangling.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
super-at-top-level.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
super-at-top-level.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
super.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
svh-add-nothing.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
swap-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
swap-overlapping.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
switched-expectations.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
switched-expectations.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
syntax-extension-minor.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tag-type-args.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
tag-type-args.stderr Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
tag-variant-cast-non-nullary.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tag-variant-cast-non-nullary.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tag-variant-cast-non-nullary.stderr Emit more specific diagnostics when enums fail to cast with as 2024-02-09 09:19:44 +05:30
tail-call-arg-leak.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tail-cps.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tail-typeck.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tail-typeck.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trailing-comma.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-method-number-parameters.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-method-number-parameters.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
transmute-equal-assoc-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
transmute-non-immediate-to-immediate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial_casts-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial_casts-rpass.stderr Update tests 2024-02-07 10:42:01 +08:00
try-from-int-error-partial-eq.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-operator-hygiene.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-operator.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tydesc-name.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type_length_limit.polonius.stderr Manual find replace updates 2023-11-24 21:04:51 +01:00
type_length_limit.rs Gate the type length limit check behind a nightly flag 2024-07-12 21:16:09 -04:00
type_length_limit.stderr Re-implement a type-size based limit 2024-07-02 15:48:48 -04:00
type-id-higher-rank-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-namespace.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-param-constraints.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-use-i1-versus-i8.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
typeid-intrinsic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
typestate-multi-decl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unconstrained-none.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unconstrained-none.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unconstrained-ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unconstrained-ref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
underscore-ident-matcher.rs Tweak more warnings. 2024-10-28 14:20:28 +11:00
underscore-ident-matcher.stderr Tweak more warnings. 2024-10-28 14:20:28 +11:00
underscore-lifetimes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
underscore-method-after-integer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unevaluated_fixed_size_array_len.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unevaluated_fixed_size_array_len.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
uninit-empty-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unknown-language-item.rs consistency rename: language item -> lang item 2024-04-17 13:00:43 +02:00
unknown-language-item.stderr consistency rename: language item -> lang item 2024-04-17 13:00:43 +02:00
unknown-llvm-arg.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
unknown-llvm-arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnamed_argument_mode.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unreachable-code-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unreachable-code.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsigned-literal-negation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsigned-literal-negation.stderr Tweak -1 as usize suggestion 2024-07-05 00:52:01 +00:00
unused-move-capture.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused-move.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unwind-no-uwtable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
use-import-export.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
use-keyword-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
use-module-level-int-consts.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
use-nested-groups.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
used.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
used.stderr Show used attribute's kind for user when find it isn't applied to a static variable. 2024-06-29 19:39:09 +08:00
usize-generic-argument-parent.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
usize-generic-argument-parent.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
utf8_idents.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
utf8-bom.rs Annotate input reference tests 2024-10-30 16:47:47 -07:00
wait-forked-but-failed-child.rs Handle a few more simple tests 2024-05-20 11:13:10 -04:00
walk-struct-literal-with.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
walk-struct-literal-with.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
weak-new-uninhabited-issue-48493.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
weird-exit-code.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
weird-exprs.rs Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
write-fmt-errors.rs io::Write::write_fmt: panic if the formatter fails when the stream does not fail 2024-05-11 15:13:18 +02:00
writing-to-immutable-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
writing-to-immutable-vec.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
wrong-hashset-issue-42918.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00

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>.