File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
## Other
9
9
10
+ - Work around build failures when building ` bat ` from vendored sources #3179 (@dtolnay )
11
+
10
12
## Syntaxes
11
13
12
14
## Themes
Original file line number Diff line number Diff line change @@ -236,8 +236,14 @@ fn get_def_paths() -> anyhow::Result<Vec<PathBuf>> {
236
236
] ;
237
237
238
238
let mut toml_paths = vec ! [ ] ;
239
- for subdir in source_subdirs {
240
- let wd = WalkDir :: new ( Path :: new ( "src/syntax_mapping/builtins" ) . join ( subdir) ) ;
239
+ for subdir_name in source_subdirs {
240
+ let subdir = Path :: new ( "src/syntax_mapping/builtins" ) . join ( subdir_name) ;
241
+ if !subdir. try_exists ( ) ? {
242
+ // Directory might not exist due to this `cargo vendor` bug:
243
+ // https://github.com/rust-lang/cargo/issues/15080
244
+ continue ;
245
+ }
246
+ let wd = WalkDir :: new ( subdir) ;
241
247
let paths = wd
242
248
. into_iter ( )
243
249
. filter_map_ok ( |entry| {
You can’t perform that action at this time.
0 commit comments