@@ -762,7 +762,6 @@ edition = "2015"
762762authors = []
763763
764764[lints.cargo]
765- im-a-teapot = "warn"
766765 "# ,
767766 )
768767 . file ( "src/lib.rs" , "" )
@@ -799,7 +798,6 @@ authors = []
799798im-a-teapot = true
800799
801800[lints.cargo]
802- im-a-teapot = "warn"
803801 "# ,
804802 )
805803 . file ( "src/lib.rs" , "" )
@@ -835,7 +833,7 @@ authors = []
835833im-a-teapot = true
836834
837835[lints.cargo]
838- im-a-teapot = "warn"
836+ im_a_teapot = "warn"
839837 "# ,
840838 )
841839 . file ( "src/lib.rs" , "" )
@@ -860,7 +858,7 @@ warning: `im_a_teapot` is specified
860858}
861859
862860#[ cargo_test]
863- fn cargo_lints_underscore_supported ( ) {
861+ fn cargo_lints_dashes_dont_get_rewritten ( ) {
864862 let foo = project ( )
865863 . file (
866864 "Cargo.toml" ,
@@ -875,7 +873,7 @@ authors = []
875873im-a-teapot = true
876874
877875[lints.cargo]
878- im_a_teapot = "warn"
876+ im-a-teapot = "warn"
879877 "# ,
880878 )
881879 . file ( "src/lib.rs" , "" )
@@ -885,13 +883,6 @@ im_a_teapot = "warn"
885883 . masquerade_as_nightly_cargo ( & [ "cargo-lints" , "test-dummy-unstable" ] )
886884 . with_stderr (
887885 "\
888- warning: `im_a_teapot` is specified
889- --> Cargo.toml:9:1
890- |
891- 9 | im-a-teapot = true
892- | ------------------
893- |
894- = note: `cargo::im_a_teapot` is set to `warn` in `[lints]`
895886 [CHECKING] foo v0.0.1 ([CWD])
896887[FINISHED] [..]
897888" ,
@@ -915,8 +906,8 @@ authors = []
915906im-a-teapot = true
916907
917908[lints.cargo]
918- im-a-teapot = { level = "warn", priority = 10 }
919- test-dummy-unstable = { level = "forbid", priority = -1 }
909+ im_a_teapot = { level = "warn", priority = 10 }
910+ test_dummy_unstable = { level = "forbid", priority = -1 }
920911 "# ,
921912 )
922913 . file ( "src/lib.rs" , "" )
@@ -948,8 +939,8 @@ fn workspace_cargo_lints() {
948939cargo-features = ["test-dummy-unstable"]
949940
950941[workspace.lints.cargo]
951- im-a-teapot = { level = "warn", priority = 10 }
952- test-dummy-unstable = { level = "forbid", priority = -1 }
942+ im_a_teapot = { level = "warn", priority = 10 }
943+ test_dummy_unstable = { level = "forbid", priority = -1 }
953944
954945[package]
955946name = "foo"
@@ -992,7 +983,7 @@ fn dont_always_inherit_workspace_lints() {
992983members = ["foo"]
993984
994985[workspace.lints.cargo]
995- im-a-teapot = "warn"
986+ im_a_teapot = "warn"
996987"# ,
997988 )
998989 . file (
@@ -1038,7 +1029,7 @@ edition = "2021"
10381029baz = { version = "0.1.0", optional = true }
10391030
10401031[lints.cargo]
1041- implicit-features = "warn"
1032+ implicit_features = "warn"
10421033"# ,
10431034 )
10441035 . file ( "src/lib.rs" , "" )
@@ -1056,7 +1047,7 @@ edition = "2021"
10561047bar = "0.1.0"
10571048
10581049[lints.cargo]
1059- implicit-features = "warn"
1050+ implicit_features = "warn"
10601051"# ,
10611052 )
10621053 . file ( "src/lib.rs" , "" )
@@ -1091,7 +1082,7 @@ edition = "2015"
10911082authors = []
10921083
10931084[lints.cargo]
1094- im-a-teapot = "warn"
1085+ im_a_teapot = "warn"
10951086 "# ,
10961087 )
10971088 . file ( "src/lib.rs" , "" )
@@ -1102,10 +1093,10 @@ im-a-teapot = "warn"
11021093 . with_status ( 101 )
11031094 . with_stderr (
11041095 "\
1105- error: use of unstable lint `im-a-teapot `
1096+ error: use of unstable lint `im_a_teapot `
11061097 --> Cargo.toml:9:1
11071098 |
1108- 9 | im-a-teapot = \" warn\"
1099+ 9 | im_a_teapot = \" warn\"
11091100 | ^^^^^^^^^^^ this is behind `test-dummy-unstable`, which is not enabled
11101101 |
11111102 = help: consider adding `cargo-features = [\" test-dummy-unstable\" ]` to the top of the manifest
@@ -1125,8 +1116,8 @@ fn check_feature_gated_workspace() {
11251116members = ["foo"]
11261117
11271118[workspace.lints.cargo]
1128- im-a-teapot = { level = "warn", priority = 10 }
1129- test-dummy-unstable = { level = "forbid", priority = -1 }
1119+ im_a_teapot = { level = "warn", priority = 10 }
1120+ test_dummy_unstable = { level = "forbid", priority = -1 }
11301121 "# ,
11311122 )
11321123 . file (
@@ -1150,26 +1141,26 @@ workspace = true
11501141 . with_status ( 101 )
11511142 . with_stderr (
11521143 "\
1153- error: use of unstable lint `im-a-teapot `
1144+ error: use of unstable lint `im_a_teapot `
11541145 --> Cargo.toml:6:1
11551146 |
1156- 6 | im-a-teapot = { level = \" warn\" , priority = 10 }
1147+ 6 | im_a_teapot = { level = \" warn\" , priority = 10 }
11571148 | ^^^^^^^^^^^ this is behind `test-dummy-unstable`, which is not enabled
11581149 |
1159- note: `cargo::im-a-teapot ` was inherited
1150+ note: `cargo::im_a_teapot ` was inherited
11601151 --> foo/Cargo.toml:9:1
11611152 |
116211539 | workspace = true
11631154 | ----------------
11641155 |
11651156 = help: consider adding `cargo-features = [\" test-dummy-unstable\" ]` to the top of the manifest
1166- error: use of unstable lint `test-dummy-unstable `
1157+ error: use of unstable lint `test_dummy_unstable `
11671158 --> Cargo.toml:7:1
11681159 |
1169- 7 | test-dummy-unstable = { level = \" forbid\" , priority = -1 }
1160+ 7 | test_dummy_unstable = { level = \" forbid\" , priority = -1 }
11701161 | ^^^^^^^^^^^^^^^^^^^ this is behind `test-dummy-unstable`, which is not enabled
11711162 |
1172- note: `cargo::test-dummy-unstable ` was inherited
1163+ note: `cargo::test_dummy_unstable ` was inherited
11731164 --> foo/Cargo.toml:9:1
11741165 |
117511669 | workspace = true
0 commit comments