File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77## [ Unreleased]
88
99### Fixes
10+ * Fix use of ` # ` operator in macros due to private field (issue #364 )
11+ * Thanks to @Manishearth for identifying this.
1012* ci: Check the tests pass with ` -Zminimal-versions `
1113
1214## 2.8.1 - 2025-10-05
Original file line number Diff line number Diff line change @@ -3541,7 +3541,7 @@ where
35413541/// be used directly.
35423542#[ cfg( has_std_error) ]
35433543#[ doc( hidden) ]
3544- pub struct ErrorTagWrapper < E > ( E ) ;
3544+ pub struct ErrorTagWrapper < E > ( pub E ) ;
35453545
35463546#[ cfg( has_std_error) ]
35473547#[ test]
Original file line number Diff line number Diff line change 1+ #![ cfg( feature = "std" ) ]
2+ use slog:: Logger ;
3+ use std:: io:: { Error , ErrorKind } ;
4+
5+ #[ test]
6+ fn ok ( ) {
7+ repro ( slog:: Logger :: root ( slog:: Discard , slog:: o!( ) ) )
8+ }
9+
10+ fn repro ( log : Logger ) {
11+ let err = Error :: new ( ErrorKind :: Other , "some error" ) ;
12+ slog:: info!( log, "oops" ; "err" => #err) ;
13+ }
You can’t perform that action at this time.
0 commit comments