1. 25 2月, 2022 5 次提交
    • A
      Fix intra-doc link issues exposed by new macro · 7b7b0f14
      Aaron Hill 提交于
      These links never worked, but the lint was suppressed due to the fact
      that the span was pointing into the macro. With the new macro
      implementation, the span now points directly to the doc comment in the
      macro invocation, so it's no longer suppressed.
      7b7b0f14
    • A
      Address review comments · 01efe6d5
      Aaron Hill 提交于
      01efe6d5
    • A
      Fix test · e686aee4
      Aaron Hill 提交于
      e686aee4
    • A
      Convert `newtype_index` to a proc macro · 339bbebb
      Aaron Hill 提交于
      The `macro_rules!` implementation was becomng excessively complicated,
      and difficult to modify. The new proc macro implementation should make
      it much easier to add new features (e.g. skipping certain `#[derive]`s)
      339bbebb
    • B
      Auto merge of #94131 - Mark-Simulacrum:fmt-string, r=oli-obk · 4b043fab
      bors 提交于
      Always format to internal String in FmtPrinter
      
      This avoids monomorphizing for different parameters, decreasing generic code
      instantiated downstream from rustc_middle -- locally seeing 7% unoptimized LLVM IR
      line wins on rustc_borrowck, for example.
      
      We likely can't/shouldn't get rid of the Result-ness on most functions, though some
      further cleanup avoiding fmt::Error where we now know it won't occur may be possible,
      though somewhat painful -- fmt::Write is a pretty annoying API to work with in practice
      when you're trying to use it infallibly.
      4b043fab
  2. 24 2月, 2022 22 次提交
  3. 23 2月, 2022 13 次提交