about summary refs log tree commit diff
path: root/tests/ui/invalid-compile-flags
AgeCommit message (Collapse)AuthorLines
2025-09-26Ignore more failing ui tests for GCC backendGuillaume Gomez-0/+1
2025-09-22Extends branch protection tests to include GCSReuben Cruise-2/+2
2025-09-12Add --print target-spec-json-schemaNoratrieb-2/+2
This schema is helpful for people writing custom target spec JSON. It can provide autocomplete in the editor, and also serves as documentation when there are documentation comments on the structs, as `schemars` will put them in the schema.
2025-08-24Port crate name to the new attribute systemJana Dönszelmann-21/+14
2025-08-17Add `-Zindirect-branch-cs-prefix` optionMiguel Ojeda-0/+25
This is intended to be used for Linux kernel RETPOLINE builds. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-08-11Add link to docs on malformed attributesEsteban Küber-0/+8
2025-06-16tests: `{Meta,Pointee}Sized` in non-minicore testsDavid Wood-1/+7
As before, add `MetaSized` and `PointeeSized` traits to all of the non-minicore `no_core` tests so that they don't fail for lack of language items.
2025-05-04compiletest: Support matching on non-json lines in compiler outputVadim Petrochenkov-1/+2
and migrate most of remaining `error-pattern`s to it.
2025-04-24Unify the format of rustc cli flagsxizheyin-3/+5
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-21Construct OutputType using macro and print [=FILENAME] help infoxizheyin-3/+13
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-20Add ui test emit-output-types-without-args.rsxizheyin-0/+7
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-14Specify `--print info=file` syntax in `--help`clubby789-2/+3
2025-04-10tests: use specific-purpose `needs-crate-type` over `ignore-$target` directivesJieyou Xu-6/+3
Not all existing tests are converted, I only updated ones that I can easily find via directive comments.
2025-04-03compiletest: Require `//~` annotations even if `error-pattern` is specifiedVadim Petrochenkov-10/+16
2025-04-02Rollup merge of #139184 - Urgau:crate-root-lint-levels, r=jieyouxuTakayuki Maeda-2/+2
Add unstable `--print=crate-root-lint-levels` This PR implements `--print=crate-root-lint-levels` from MCP 833 https://github.com/rust-lang/compiler-team/issues/833. Tracking issue: https://github.com/rust-lang/rust/issues/139180 Best reviewed commit by commit.
2025-04-01Add unstable `--print=crate-root-lint-levels`Urgau-2/+2
2025-03-25compiletest: Support matching on diagnostics without a spanVadim Petrochenkov-0/+11
2025-03-23Rebless tests with changed help due to new print request optionJieyou Xu-2/+2
2025-03-19Suggest `-Whelp` when pass `--print lints` to rustcxizheyin-0/+1
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-03-14Show valid crate types when the user passes unknown `--crate-type` valuemalezjaa-6/+6
Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
2025-03-01ensure we always print all --print options in helpMichael Toner-1/+1
2025-02-15Reject macro calls inside of `#![crate_name]`León Orell Valerian Liehr-0/+53
2025-02-15Move `#![crate_type]` UI tests into attributes directoryLeón Orell Valerian Liehr-0/+8
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-12clarifyTshepang Mbambo-3/+3
Also, use signular form for consistency/simplicity
2025-02-12test cli functionality in all targetsTshepang Mbambo-3/+1
2025-01-08Only test proc-macro invalid compile flags with panic=unwindErick Tryzelaar-0/+1
Fuchsia explicitly builds rust and all rust targets with `-C panic=abort` to minimize code generation size. However, when compiling a proc-macro with this setting it can cause a warning to be emitted, which breaks `tests/ui/invalid-compile-flags/crate-type-flag.rs`. This hasn't been a problem in the past for us since we compile our proc macros on host, rather than inside Fuchsia. This attempts to fix the issue by explicitly requiring that we're using the unwinder when compiling this test to avoid the warning being emitted. Fixes #135223
2024-12-30tests: add basic test coverage for cli flag `--crate-type`许杰友 Jieyou Xu (Joe)-0/+67
2024-12-02rust_for_linux: -Zreg-struct-return commandline flag for X86 (#116973)Andrew Zhogin-0/+29
2024-11-26Remove extra tests.Camille GILLOT-11/+0
2024-11-05Rollup merge of #132259 - mrkajetanp:branch-protection-pauth-lr, r=davidtwcoMatthias Krüger-4/+9
rustc_codegen_llvm: Add a new 'pc' option to branch-protection Add a new 'pc' option to -Z branch-protection for aarch64 that enables the use of PC as a diversifier in PAC branch protection code. When the pauth-lr target feature is enabled in combination with -Z branch-protection=pac-ret,pc, the new 9.5-a instructions (pacibsppc, retaasppc, etc) will be generated.
2024-11-02Add `--print host-triple`Noratrieb-1/+1
People often parse `-vV` output to get to the host triple, which is annoying to do. It's easier to just get it directly.
2024-10-31rustc_codegen_llvm: Add a new 'pc' option to branch-protectionKajetan Puchalski-4/+9
Add a new 'pc' option to -Z branch-protection for aarch64 that enables the use of PC as a diversifier in PAC branch protection code. When the pauth-lr target feature is enabled in combination with -Z branch-protection=pac-ret,pc, the new 9.5-a instructions (pacibsppc, retaasppc, etc) will be generated.
2024-10-18rust_for_linux: -Zregparm=<N> commandline flag for X86 (#116972)Andrew Zhogin-0/+57
2024-08-11Fix #128930: Print documentation of CLI options missing their argGeorge Bateman-0/+6
2024-04-25Add `--print=check-cfg` to get the expected configsUrgau-1/+1
2024-04-24Improve diagnostic for unknown --print requestUrgau-0/+5
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-42/+42
2023-12-08Fuel is incompatible with incremental compilationTomasz Miąsko-0/+11
2023-11-30Add `-Zfunction-return={keep,thunk-extern}` optionMiguel Ojeda-0/+49
This is intended to be used for Linux kernel RETHUNK builds. With this commit (optionally backported to Rust 1.73.0), plus a patched Linux kernel to pass the flag, I get a RETHUNK build with Rust enabled that is `objtool`-warning-free and is able to boot in QEMU and load a sample Rust kernel module. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-11-24Show number in error message even for one errorNilstrieb-2/+2
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-20Move `invalid-llvm-passes` test to `invalid-compile-flags` folderMiguel Ojeda-0/+8
Nowadays there is an `invalid-compile-flags` folder, thus move this one there. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-01-11Move /src/test to /testsAlbert Larsan-0/+26