rust/src/test/ui/asm
Nathaniel McCallum ba9afb58b3 Move naked function ABI check to its own lint
This check was previously categorized under the lint named
`UNSUPPORTED_NAKED_FUNCTIONS`. That lint is future incompatible and will
be turned into an error in a future release. However, as defined in the
Constrained Naked Functions RFC, this check should only be a warning.
This is because it is possible for a naked function to be implemented in
such a way that it does not break even the undefined ABI. For example, a
`jmp` to a `const`.

Therefore, this patch defines a new lint named
`UNDEFINED_NAKED_FUNCTION_ABI` which contains just this single check.
Unlike `UNSUPPORTED_NAKED_FUNCTIONS`, `UNDEFINED_NAKED_FUNCTION_ABI`
will not be converted to an error in the future.

rust-lang/rfcs#2774
rust-lang/rfcs#2972
2021-08-04 15:23:50 -04:00
..
bad-arch.mirunsafeck.stderr Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
bad-arch.rs Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
bad-arch.thirunsafeck.stderr Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
bad-options.rs Add tests for global_asm! 2021-05-13 22:31:58 +01:00
bad-options.stderr Add a "raw" option for asm! which ignores format string specifiers 2021-06-24 23:42:15 +01:00
bad-reg.rs Add clobber-only register classes for asm! 2021-07-10 17:29:00 +02:00
bad-reg.stderr Add clobber-only register classes for asm! 2021-07-10 17:29:00 +02:00
bad-template.mirunsafeck.stderr Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
bad-template.rs Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
bad-template.thirunsafeck.stderr Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
const.rs Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
duplicate-options.fixed Add tests for global_asm! 2021-05-13 22:31:58 +01:00
duplicate-options.rs Add tests for global_asm! 2021-05-13 22:31:58 +01:00
duplicate-options.stderr Add tests for global_asm! 2021-05-13 22:31:58 +01:00
inline-syntax.arm.stderr compiletest: ignore tests on a per-revision basis 2021-06-24 23:13:08 +03:00
inline-syntax.rs Re-Annotate the tests with needs-llvm-components 2021-06-24 23:13:08 +03:00
inline-syntax.x86_64.stderr compiletest: ignore tests on a per-revision basis 2021-06-24 23:13:08 +03:00
interpolated-idents.rs builtin_macros: Fix use of interpolated identifiers in asm! 2020-10-06 00:18:03 +03:00
interpolated-idents.stderr Show macro name in 'this error originates in macro' message 2021-05-12 19:03:06 -04:00
issue-72570.rs add test for #72960 2020-06-05 12:08:54 +02:00
issue-72570.stderr add test for #72960 2020-06-05 12:08:54 +02:00
issue-82869.rs Move some UI tests to more suitable subdirs 2021-06-30 06:41:10 +09:00
issue-82869.stderr Move some UI tests to more suitable subdirs 2021-06-30 06:41:10 +09:00
naked-functions.rs Move naked function ABI check to its own lint 2021-08-04 15:23:50 -04:00
naked-functions.stderr Move naked function ABI check to its own lint 2021-08-04 15:23:50 -04:00
naked-invalid-attr.rs Check for asm support in UI tests that require it 2021-04-13 00:00:00 +00:00
naked-invalid-attr.stderr Bless test. 2020-11-26 21:32:28 +01:00
noreturn.rs Add tests for asm! 2020-05-18 14:41:32 +01:00
parse-error.rs Add tests for global_asm! 2021-05-13 22:31:58 +01:00
parse-error.stderr Add a "raw" option for asm! which ignores format string specifiers 2021-06-24 23:42:15 +01:00
rustfix-asm.fixed Clarify errors and warnings about the transition to the new asm! 2020-05-31 18:25:05 +01:00
rustfix-asm.rs Clarify errors and warnings about the transition to the new asm! 2020-05-31 18:25:05 +01:00
rustfix-asm.stderr Clarify errors and warnings about the transition to the new asm! 2020-05-31 18:25:05 +01:00
srcloc.rs Rollup merge of #83328 - tmiasko:asm-test, r=joshtriplett 2021-03-27 12:37:19 +09:00
srcloc.stderr asm: Allow multiple template strings; interpret them as newline-separated 2020-06-15 12:35:27 -07:00
sym.rs Update LLVM submodule 2021-04-30 07:28:40 -07:00
type-check-1.rs Fix comments in tests 2021-05-16 03:54:08 +01:00
type-check-1.stderr Remove support for floating-point constants in asm! 2021-05-14 14:58:21 +01:00
type-check-2.rs Remove support for floating-point constants in asm! 2021-05-14 14:58:21 +01:00
type-check-2.stderr Remove support for floating-point constants in asm! 2021-05-14 14:58:21 +01:00
type-check-3.rs Add tests for global_asm! 2021-05-13 22:31:58 +01:00
type-check-3.stderr Add tests for global_asm! 2021-05-13 22:31:58 +01:00
type-check-4.rs Add borrow-check test 2020-05-18 14:41:34 +01:00
type-check-4.stderr Add borrow-check test 2020-05-18 14:41:34 +01:00