File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ Note: The MSRV when these features are enabled depends on the MSRV of these crat
132
132
) ]
133
133
// docs.rs only (cfg is enabled by docs.rs, not build script)
134
134
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
135
+ #![ cfg_attr( test, allow( unexpected_cfgs) ) ] // https://github.com/rust-lang/rust/issues/124735
135
136
136
137
#[ cfg( test) ]
137
138
#[ path = "gen/assert_impl.rs" ]
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ pub(crate) fn workspace_root() -> PathBuf {
33
33
#[ track_caller]
34
34
pub ( crate ) fn header ( function_name : & str ) -> String {
35
35
// rust-analyzer does not respect outer attribute (#[rustfmt::skip]) on
36
- // a module without a body. So use inner attribute under cfg(rustfmt).
36
+ // a module without a body and unstable ignore option in .rustfmt.toml.
37
+ // So use inner attribute under cfg(rustfmt).
37
38
format ! (
38
39
"// SPDX-License-Identifier: Apache-2.0 OR MIT
39
40
// This file is @generated by {bin_name}
You can’t perform that action at this time.
0 commit comments