Files
rust/tests/pretty
Jonathan Brouwer aa45526d8f Rollup merge of #158854 - jdonszelmann:test-entrypoint, r=jonathanbrouwer
Add `#[rustc_test_entrypoint_marker]`

r? @JonathanBrouwer

cc: @Nadrieril @N1ark @aDotInTheVoid

Some context: a bunch of tooling around rustc likes to find entry points. This is easy for `main`, it's a lang item. But tests aren't as easy. There is already a similar marker for the data structure associated with tests, but if you want to do for example dynamic analysis, you want just the defid of the function you can call to start the tests. This is that marker. There's a test using a rustc driver that the attr indeed shows up and marks the test functions.

@Nadrieril and @N1ark asked for this kind of behavior. I talked to @aDotInTheVoid about whether we should do things like this where we cannot really guarantee the stability or even use it inside rustc. The thing is, we don't provide staboility guarantees, it's just a useful little thing to have for as long as its there and it doesn't bother anyone either. It's up to tool authors to deal with breakage we may introduce.
2026-07-13 20:18:06 +02:00
..
2026-05-28 13:29:19 +02:00
2026-01-13 08:47:48 +01:00
…
…
2026-07-13 11:02:01 +02:00
2026-04-08 15:01:38 +01:00
…
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2026-07-13 10:54:53 +02:00
…
…
2025-04-15 11:14:23 +02:00
2025-03-21 09:35:31 +01:00
2026-07-13 12:42:08 +02:00