File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ target-spec-json = "0.1"
36
36
// clippy::std_instead_of_alloc,
37
37
clippy:: std_instead_of_core,
38
38
) ]
39
+ #![ cfg_attr( test, allow( unexpected_cfgs) ) ] // https://github.com/rust-lang/rust/issues/124735
39
40
40
41
#[ cfg( test) ]
41
42
#[ path = "gen/assert_impl.rs" ]
Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ 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
+ // https://github.com/rust-lang/rust-analyzer/issues/10826
38
+ // So use inner attribute under cfg(rustfmt).
37
39
format ! (
38
40
"// SPDX-License-Identifier: Apache-2.0 OR MIT
39
41
// This file is @generated by {bin_name}
You can’t perform that action at this time.
0 commit comments