File tree Expand file tree Collapse file tree 1 file changed +6
-51
lines changed
Expand file tree Collapse file tree 1 file changed +6
-51
lines changed Original file line number Diff line number Diff line change @@ -777,71 +777,26 @@ fn unused_keys() {
777777 version = "0.1.0"
778778 edition = "2015"
779779 authors = []
780+ unused = "foo"
780781
781782 [target.foo]
782783 bar = "3"
784+
785+ [lib]
786+ build = "foo"
783787 "# ,
784788 )
785789 . file ( "src/lib.rs" , "" )
786790 . build ( ) ;
787791
788792 p. cargo ( "check" )
789793 . with_stderr_data ( str![ [ r#"
794+ [WARNING] unused manifest key: lib.build
795+ [WARNING] unused manifest key: package.unused
790796[WARNING] unused manifest key: target.foo.bar
791797[CHECKING] foo v0.1.0 ([ROOT]/foo)
792798[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
793799
794- "# ] ] )
795- . run ( ) ;
796-
797- let p = project ( )
798- . file (
799- "Cargo.toml" ,
800- r#"
801- [package]
802-
803- name = "foo"
804- version = "0.5.0"
805- edition = "2015"
806- authors = ["wycats@example.com"]
807- unused = "foo"
808- "# ,
809- )
810- . file ( "src/lib.rs" , "pub fn foo() {}" )
811- . build ( ) ;
812- p. cargo ( "check" )
813- . with_stderr_data ( str![ [ r#"
814- [WARNING] unused manifest key: package.unused
815- [CHECKING] foo v0.5.0 ([ROOT]/foo)
816- [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
817-
818- "# ] ] )
819- . run ( ) ;
820-
821- let p = project ( )
822- . at ( "bar" )
823- . file (
824- "Cargo.toml" ,
825- r#"
826- [package]
827-
828- name = "foo"
829- version = "0.5.0"
830- edition = "2015"
831- authors = ["wycats@example.com"]
832-
833- [lib]
834- build = "foo"
835- "# ,
836- )
837- . file ( "src/lib.rs" , "pub fn foo() {}" )
838- . build ( ) ;
839- p. cargo ( "check" )
840- . with_stderr_data ( str![ [ r#"
841- [WARNING] unused manifest key: lib.build
842- [CHECKING] foo v0.5.0 ([ROOT]/bar)
843- [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
844-
845800"# ] ] )
846801 . run ( ) ;
847802}
You can’t perform that action at this time.
0 commit comments