File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub fn fetch<'a>(
16
16
ws : & Workspace < ' a > ,
17
17
options : & FetchOptions < ' a > ,
18
18
) -> CargoResult < ( Resolve , PackageSet < ' a > ) > {
19
+ ws. emit_warnings ( ) ?;
19
20
let ( packages, resolve) = ops:: resolve_ws ( ws) ?;
20
21
21
22
let jobs = Some ( 1 ) ;
Original file line number Diff line number Diff line change @@ -112,3 +112,22 @@ fn fetch_platform_specific_dependencies() {
112
112
. with_stderr_does_not_contain ( "[DOWNLOADED] d1 v1.2.3 [..]" )
113
113
. run ( ) ;
114
114
}
115
+
116
+ #[ cargo_test]
117
+ fn fetch_warning ( ) {
118
+ let p = project ( )
119
+ . file (
120
+ "Cargo.toml" ,
121
+ r#"
122
+ [package]
123
+ name = "foo"
124
+ version = "1.0.0"
125
+ misspelled = "wut"
126
+ "# ,
127
+ )
128
+ . file ( "src/lib.rs" , "" )
129
+ . build ( ) ;
130
+ p. cargo ( "fetch" )
131
+ . with_stderr ( "[WARNING] unused manifest key: package.misspelled" )
132
+ . run ( ) ;
133
+ }
You can’t perform that action at this time.
0 commit comments