rust icon indicating copy to clipboard operation
rust copied to clipboard

derive(SmartPointer): assume pointee from the single generic and better error messages

Open dingxiangfei2009 opened this issue 1 year ago • 1 comments

Fix #129465

Actually RFC says that #[pointee] can be inferred when there is no ambiguity, or there is only one generic type parameter so to say.

cc @Darksonn

r? @compiler-errors

dingxiangfei2009 avatar Aug 23 '24 13:08 dingxiangfei2009

@rustbot label F-derive_smart_pointer

Darksonn avatar Aug 23 '24 13:08 Darksonn

@rustbot author

compiler-errors avatar Aug 26 '24 21:08 compiler-errors

@rustbot ready

  • Ran through the test and made sure that all diagnostic messages appeared, or have been used, at least once
  • Applied suggestions on wording

dingxiangfei2009 avatar Aug 28 '24 17:08 dingxiangfei2009

@bors r+ rollup

compiler-errors avatar Aug 28 '24 19:08 compiler-errors

:pushpin: Commit 39148351bd919d16920b00e0bd70203b73db53bb has been approved by compiler-errors

It is now in the queue for this repository.

bors avatar Aug 28 '24 19:08 bors