File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -1168,6 +1168,40 @@ fn doc_workspace_open_help_message() {
1168
1168
. run ( ) ;
1169
1169
}
1170
1170
1171
+ #[ cargo_test]
1172
+ #[ cfg( not( windows) ) ] // `echo` may not be available
1173
+ fn doc_extern_map_local ( ) {
1174
+ assert ! ( is_nightly( ) ) ;
1175
+
1176
+ let p = project ( )
1177
+ . file (
1178
+ "Cargo.toml" ,
1179
+ r#"
1180
+ [package]
1181
+ name = "foo"
1182
+ version = "0.1.0"
1183
+ "# ,
1184
+ )
1185
+ . file ( "src/lib.rs" , "" )
1186
+ . build ( ) ;
1187
+
1188
+ p. change_file (
1189
+ ".cargo/config.toml" ,
1190
+ r#"
1191
+ [doc.extern-map]
1192
+ std = "local"
1193
+ "# ,
1194
+ ) ;
1195
+
1196
+
1197
+ p. cargo ( "doc -Zrustdoc-map --open" )
1198
+ . env ( "BROWSER" , "echo" )
1199
+ . masquerade_as_nightly_cargo ( )
1200
+ . with_stderr_contains ( "[..] Documenting foo v0.1.0 ([..])" )
1201
+ . with_stderr_does_not_contain ( "warning: unused config key `doc.extern-map` [..]" )
1202
+ . run ( ) ;
1203
+ }
1204
+
1171
1205
#[ cargo_test]
1172
1206
#[ cfg( not( windows) ) ] // `echo` may not be available
1173
1207
fn doc_workspace_open_different_library_and_package_names ( ) {
You can’t perform that action at this time.
0 commit comments