Jacob Pratt 7eea141b87
Rollup merge of #143544 - workingjubilee:rename-bare-fn, r=fmease
compiler: rename BareFn to FnPtr

At some point "BareFn" was the chosen name for a "bare" function, without the niceties of `~fn`, `&fn`, or a few other ways of writing a function type. However, at some point the syntax for a "bare function" and any other function diverged even more. We started calling them what they are: function pointers, denoted by their own syntax.

However, we never changed the *internal* name for these, as this divergence was very gradual. Personally, I have repeatedly searched for "FnPtr" and gotten confused until I find the name is BareFn, only to forget this until the next time, since I don't routinely interact with the higher-level AST and HIR. But even tools that interact with these internal types only touch on them in a few places, making a migration easy enough. Let's use a more intuitive and obvious name, as this 12+ year old name has little to do with current Rust.
2025-07-07 03:26:09 +02:00
..
2025-02-08 22:12:13 +00:00
2025-05-27 09:44:10 +02:00
2024-12-19 16:05:41 +11:00
2024-07-29 08:26:52 +10:00
2025-06-30 20:42:27 +10:00
2025-05-10 08:58:47 +10:00
2025-06-03 10:52:32 -07:00
2024-04-26 13:29:20 +10:00
2025-06-30 20:42:27 +10:00
2025-06-15 15:46:20 +08:00