File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ fn impl_enum(input: Enum) -> TokenStream {
496496// deprecated type without triggering deprecation warning on the generated impl.
497497fn call_site_ident ( ident : & Ident ) -> Ident {
498498 let mut ident = ident. clone ( ) ;
499- ident. set_span ( Span :: call_site ( ) ) ;
499+ ident. set_span ( ident . span ( ) . resolved_at ( Span :: call_site ( ) ) ) ;
500500 ident
501501}
502502
Original file line number Diff line number Diff line change 11error[E0277]: `MyError` doesn't implement `std::fmt::Display`
2- --> tests/ui/missing-display.rs:3 :10
2+ --> tests/ui/missing-display.rs:4 :10
33 |
443 | #[derive(Error, Debug)]
5- | ^^^^^ `MyError` cannot be formatted with the default formatter
5+ | ----- in this derive macro expansion
6+ 4 | pub enum MyError {
7+ | ^^^^^^^ `MyError` cannot be formatted with the default formatter
68 |
79 = help: the trait `std::fmt::Display` is not implemented for `MyError`
810 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
You can’t perform that action at this time.
0 commit comments