Commit graph

66 commits

Author SHA1 Message Date
moxian
6d4331b16b Allow bisecting privatizer use changes
Currently all the use items have the same AstPath,
which means that privatizer tries to change all of them at once.
Which means that if *any* of them can't get privated, then
*all* of them stay unprivated, with all the consequences..
2025-04-20 15:54:50 +02:00
moxian
0b7e1c2a82 Minor reaper opti: don't do rustfix with no suggestions 2025-04-20 15:54:50 +02:00
moxian
2f885257e6 Fix delete-unused-functions panics
The pass used to (?) track invalidated files itself,
but now that functionality has been moved up one level,
but also kinda not really.

So here we clarify this by:
- making reaper not care about tracking invalidated files anymore
- making processor yes care about tracking invalidated files, and
    ensuring that it does not call process_file again after gettin
    ProcessState::FileInvalidated, as it advertizes to do.
2025-04-20 15:54:50 +02:00
moxian
b44cd4e6eb Better error message on failing to parse --verify-fn
clap formats the FromStr::Err's arising from parsing the flags
with the Display formatter. This is a very reasonable default
but it also means it loses all the context, since anyhow::Error
only prints the outermost error in Display.
So any failure parsing/creating/loading the function is displayed
to the user as simple "compiling and loading rust function", which
is impossible to debug.

Using the Debug formatting in impl FromStr for RustFunction helps
work around this.
2025-04-20 15:54:50 +02:00
cf39338b30 add in memory AST 2023-12-31 17:01:16 +01:00
50dc094ddd speed up tests by doing rustup which
`cargo test` goes from 2.4s to 1.6s
2023-09-23 16:04:17 +02:00
ea5fb6e4ba Use native library name 2023-09-23 15:26:22 +02:00
cf6706ebd6 Make dylib_flag cross-platform 2023-09-23 15:26:22 +02:00
Deadbeef
9467c55770 use genemichaels for formatting 2023-05-26 20:00:28 +08:00
0ccd55fa0f remove print 2023-04-17 19:36:16 +02:00
d97dbd6a94 clippy 2023-04-11 11:11:54 +02:00
7fcc623c7f fix python indentation 2023-04-04 14:58:53 +02:00
f84cfd935b python in bash in rust 2023-04-04 13:36:46 +02:00
c70d6fa26f start with test runner 2023-04-04 12:23:45 +02:00
bf8f13c62a pass struct to code 2023-04-04 11:39:00 +02:00
159e8271fe Run item-deleter at the end 2023-04-04 10:35:17 +02:00
c9db921f04 Run everybody-loops before privatize
everybody-loops should reduce lots of compile time, so it makes sense to run first.
2023-04-04 10:30:25 +02:00
1b5d2f6228 write some docs challenge 2023-04-01 16:58:09 +02:00
8b76e561cb more 2023-04-01 16:26:22 +02:00
562c56a95a more 2023-04-01 16:20:24 +02:00
133d42d9ba more 2023-04-01 16:15:14 +02:00
e4127f3e96 more 2023-04-01 16:03:46 +02:00
02b8eaa7b2 more 2023-04-01 15:58:00 +02:00
961ba86e59 ctrlc 2023-03-28 14:36:32 +02:00
729deb5110 allow ignoring files 2023-03-27 21:52:32 +02:00
4efb617ae9 fix reaper in workspace 2023-02-19 16:50:48 +01:00
76418d9b82 track traits lol 2023-01-23 09:13:37 +01:00
fa0b3021a9 improve tracking for structs and fields 2023-01-23 09:07:04 +01:00
fdfde615f6 item deleter pass 2023-01-22 13:19:18 +01:00
22804c3065 only linux 2023-01-22 12:13:51 +01:00
b993b564a2 rustfmt 2023-01-22 12:06:03 +01:00
527e3ca657 restructure passes 2023-01-22 11:51:37 +01:00
162641c14a cookbook 2023-01-03 20:47:15 +01:00
5ac406e650 Support --script properly... hopefully 2023-01-03 20:38:15 +01:00
Albert Larsan
c6f3465807
Correct compile error on Windows 2022-12-28 14:23:45 +01:00
c0289c65f7 make subcommand configurable 2022-12-21 20:05:30 +01:00
a866667545 Disallow multiple files for --rustc 2022-12-21 19:40:12 +01:00
8fc0693cc3 Fix typos 2022-12-21 19:37:19 +01:00
63c49b8dfa Only log warnings in tests 2022-12-21 19:33:35 +01:00
e918248016 some docs 2022-12-20 21:24:52 +01:00
4f4afa627d more tests 2022-12-20 21:14:16 +01:00
75108c8553 test infra 2022-12-20 20:47:51 +01:00
a1efa3fd56 Cleanup 2022-12-20 20:11:35 +01:00
a50131cf64 move PassController 2022-12-20 18:03:51 +01:00
64da92ab9e pwetty 2022-12-20 17:59:17 +01:00
79b69fafb9 make better 2022-12-20 17:18:53 +01:00
f7395cd817
some dylib cleanup 2022-12-19 16:12:55 +01:00
d447ee6783
remove cargo 2022-12-19 15:56:20 +01:00
38d126a4b6
HAHAHAHAHAHAHA 2022-12-19 15:52:04 +01:00
106be93473
now s 2022-12-19 14:05:19 +01:00