about summary refs log tree commit diff
path: root/tests/ui/invalid
AgeCommit message (Collapse)AuthorLines
2025-09-21port `#[debugger_visualizer]` to the new attribute systemJana Dönszelmann-13/+18
2025-09-16Add span for struct tail recursion limit errorTawan Muadmuenwai-2/+1
2025-08-18Remove the no_sanitize attribute in favor of sanitizeBastian Kersting-15/+0
This removes the #[no_sanitize] attribute, which was behind an unstable feature named no_sanitize. Instead, we introduce the sanitize attribute which is more powerful and allows to be extended in the future (instead of just focusing on turning sanitizers off). This also makes sanitize(kernel_address = ..) attribute work with -Zsanitize=address To do it the same as how clang disables address sanitizer, we now disable ASAN on sanitize(kernel_address = "off") and KASAN on sanitize(address = "off"). The same was added to clang in https://reviews.llvm.org/D44981.
2025-08-14Update uitestsJonathan Brouwer-11/+8
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-11Add more docs to templates for attrs with incorrect argumentsEsteban Küber-0/+2
2025-08-11Allow attr entries to declare list of alternatives for `List` and ↵Esteban Küber-3/+8
`NamedValueStr` Modify `AttributeTemplate` to support list of alternatives for list and name value attribute styles. Suggestions now provide more correct suggested code: ``` error[E0805]: malformed `used` attribute input --> $DIR/used_with_multi_args.rs:3:1 | LL | #[used(compiler, linker)] | ^^^^^^------------------^ | | | expected a single argument here | help: try changing it to one of the following valid forms of the attribute | LL - #[used(compiler, linker)] LL + #[used(compiler)] | LL - #[used(compiler, linker)] LL + #[used(linker)] | LL - #[used(compiler, linker)] LL + #[used] | ``` instead of the prior "masking" of the lack of this feature by suggesting pipe-separated lists: ``` error[E0805]: malformed `used` attribute input --> $DIR/used_with_multi_args.rs:3:1 | LL | #[used(compiler, linker)] | ^^^^^^------------------^ | | | expected a single argument here | help: try changing it to one of the following valid forms of the attribute | LL - #[used(compiler, linker)] LL + #[used(compiler|linker)] | LL - #[used(compiler, linker)] LL + #[used] | ```
2025-06-27Port `#[rustc_layout_scalar_valid_range_start/end]` to the new attribute ↵Jonathan Brouwer-12/+26
parsing infrastructure Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-17make error codes reflect reality betterJana Dönszelmann-15/+9
2025-06-17use consistent attr errors in all attribute parsersJana Dönszelmann-2/+2
2025-06-17fix bugs in inline/force_inline and diagnostics of all attr parsersJana Dönszelmann-5/+32
2025-06-16Make sure to propagate result from visit_expr_fieldsMichael Goulet-1/+20
2025-05-03Implement asymmetrical precedence for closures and jumpsDavid Tolnay-2/+2
2025-04-08UI tests: add missing diagnostic kinds where possibleVadim Petrochenkov-7/+7
2025-04-03compiletest: Require `//~` annotations even if `error-pattern` is specifiedVadim Petrochenkov-1/+2
2025-02-25Don't require method impls for methods with `Self:Sized` bounds for impls ↵Oli Scherer-7/+4
for unsized types
2025-02-15Move `#![crate_type]` UI tests into attributes directoryLeón Orell Valerian Liehr-15/+0
Gets rid of two top-level UI tests which is always great. Furthermore, move `need-crate-arg-ignore-tidy$x.rs` from `command/` to `invalid-compile-flags/`. `command/` concerns `std::process::Command` tests, not CLI tests.
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-12/+18
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2025-01-07Update tests.Mara Bos-1/+1
2024-12-27Remove the `-test` suffix from normalize directivesZalathar-2/+2
2024-11-16Fix ICE when passing DefId-creating args to legacy_const_generics.Luca Versari-0/+113
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-5/+5
2024-02-08Continue to borrowck even if there were previous errorsOli Scherer-1/+3
2023-11-24Show number in error message even for one errorNilstrieb-5/+5
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-04Remove support for compiler plugins.Nicholas Nethercote-29/+0
They've been deprecated for four years. This commit includes the following changes. - It eliminates the `rustc_plugin_impl` crate. - It changes the language used for lints in `compiler/rustc_driver_impl/src/lib.rs` and `compiler/rustc_lint/src/context.rs`. External lints are now called "loaded" lints, rather than "plugins" to avoid confusion with the old plugins. This only has a tiny effect on the output of `-W help`. - E0457 and E0498 are no longer used. - E0463 is narrowed, now only relating to unfound crates, not plugins. - The `plugin` feature was moved from "active" to "removed". - It removes the entire plugins chapter from the unstable book. - It removes quite a few tests, mostly all of those in `tests/ui-fulldeps/plugin/`. Closes #29597.
2023-10-20Move `invalid-llvm-passes` test to `invalid-compile-flags` folderMiguel Ojeda-8/+0
Nowadays there is an `invalid-compile-flags` folder, thus move this one there. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-08-05Fix ICE failed to get layout for ReferencesErroryukang-0/+52
2023-05-16Fix dependency tracking for debugger visualizersMichael Woerister-3/+4
2023-05-01fix stderrsGibby Free-3/+3
2023-05-01remove bootstrap from testsGibby Free-3/+0
2023-03-01stabilize debugger visualizer attributeGibby Free-2/+2
2023-01-11Move /src/test to /testsAlbert Larsan-0/+473