rust/compiler/rustc_builtin_macros/src
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
..
assert Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
deriving Rollup merge of #143544 - workingjubilee:rename-bare-fn, r=fmease 2025-07-07 03:26:09 +02:00
format_foreign Rustfmt 2025-02-08 22:12:13 +00:00
alloc_error_handler.rs Avoid some unnecessary symbol interning. 2025-06-20 13:18:41 +10:00
asm.rs move asm parsing code into rustc_parse 2025-05-27 09:44:10 +02:00
assert.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
autodiff.rs setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00
cfg.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
cfg_accessible.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cfg_eval.rs completely deduplicate Visitor and MutVisitor 2025-06-19 17:50:44 +08:00
cmdline_attrs.rs Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
compile_error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
concat_bytes.rs Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
contracts.rs Fix imports, remove attrs for unused_* 2025-02-10 20:15:30 +00:00
define_opaque.rs Test define opaques in extern items 2025-03-25 16:44:59 +00:00
derive.rs Use Ident::dummy() in dummy_annotatable. 2025-03-25 16:14:27 +11:00
edition_panic.rs use slice::contains where applicable 2025-03-28 12:21:21 +00:00
env.rs Remove AstDeref. 2025-05-10 08:58:47 +10:00
errors.rs Rollup merge of #142724 - xizheyin:avoid_overwrite_args, r=oli-obk 2025-06-25 22:14:55 +02:00
format.rs Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
format_foreign.rs Simplify printf and shell format suggestions 2025-03-06 13:55:05 -08:00
global_allocator.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
iter.rs Add iter macro 2025-06-03 10:52:32 -07:00
lib.rs rustc_builtin_macros: Make sure registered attributes stay sorted 2025-07-05 20:21:51 -07:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Reduce P<T> to a typedef of Box<T>. 2025-05-27 13:29:24 +10:00
proc_macro_harness.rs Use a symbol for ExpansionConfig::crate_name. 2025-06-20 13:17:39 +10:00
source_util.rs Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
standard_library_imports.rs Use a symbol for ExpansionConfig::crate_name. 2025-06-20 13:17:39 +10:00
test.rs use if let guards where possible 2025-06-15 15:46:20 +08:00
test_harness.rs Auto merge of #142706 - fee1-dead-contrib:push-zsznlqyrzsqo, r=oli-obk 2025-06-22 14:03:44 +00:00
trace_macros.rs Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino 2024-12-18 22:56:53 +08:00
util.rs Account for format_args in HiddenUnicodeCodepoints lint 2024-12-31 05:03:22 +00:00