about summary refs log tree commit diff
path: root/tests/ui/target-feature/invalid-attribute.stderr
AgeCommit message (Collapse)AuthorLines
2025-08-27inline at the callsite & warn when target features mismatchJames Barford-Evans-12/+16
Co-authored-by: Jamie Cunliffe <Jamie.Cunliffe@arm.com>
2025-08-21refactor target checking, move out of context.rs and rename MaybeWarn to PolicyJana Dönszelmann-1/+1
2025-08-14Update uitestsJonathan Brouwer-105/+84
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-03Port `#[target_feature]` to the new attribute parsing infrastructureJonathan Brouwer-34/+51
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-03-24Emit `unused_attributes` for `#[inline]` on exported functionsNoratrieb-6/+6
I saw someone post a code sample that contained these two attributes, which immediately made me suspicious. My suspicions were confirmed when I did a small test and checked the compiler source code to confirm that in these cases, `#[inline]` is indeed ignored (because you can't exactly `LocalCopy`an unmangled symbol since that would lead to duplicate symbols, and doing a mix of an unmangled `GloballyShared` and mangled `LocalCopy` instantiation is too complicated for our current instatiation mode logic, which I don't want to change right now). So instead, emit the usual unused attribute lint with a message saying that the attribute is ignored in this position. I think this is not 100% true, since I expect LLVM `inlinehint` to still be applied to such a function, but that's not why people use this attribute, they use it for the `LocalCopy` instantiation mode, where it doesn't work.
2025-01-27Stabilize target_feature_11Caleb Zulawski-39/+21
2025-01-15Render fn defs with target_features attrs with the attribute [second site]Oli Scherer-14/+14
2025-01-15Treat safe target_feature functions as unsafe by defaultOli Scherer-5/+19
2024-03-07Merge collect_mod_item_types query into check_well_formedOli Scherer-9/+9
2024-01-13Bless testsGeorge-lewis-15/+17
Update tests
2024-01-09Avoid silencing relevant follow-up errorsOli Scherer-6/+16
2023-07-29Replace ignore-everything with only-archJubilee Young-22/+22
Combining revisions with only-arch allows specifying that a test only applies to a handful of targets. This allows removing a large amount of repetition in the test suite for tests that do not benefit. The revisions are suboptimal for this for some tests, so they aren't preferred in those cases.
2023-04-30tests: Add tests for LoongArch64WANG Rui-22/+22
2023-04-03remove invalid ignore-powerpc64lePietro Albini-22/+22
2023-03-13Gracefully handle `#[target_feature]` on staticsNilstrieb-16/+79
The was careful around not calling `fn_sig` on not-functions but well, it wasn't careful enough. This commit makes it a little more careful and also adds tests for a bunch more item kinds.
2023-03-02Revert "Stabilize `#![feature(target_feature_11)]`"Léo Lanteri Thauvin-13/+30
This reverts commit b379d216eefaba083a0627b1724d73f99d4bdf5c.
2023-02-01Stabilize `#![feature(target_feature_11)]`Léo Lanteri Thauvin-30/+13
2023-01-11Move /src/test to /testsAlbert Larsan-0/+136