File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 8688b1b845f3ceede2a62da6a2fc2256e6bcfd2a
5
+ refs/heads/try: e3961df78d23e353ed48961bd82c27b2c935494c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -517,12 +517,13 @@ fn rustc_sysroot() -> str {
517
517
fn install_source( c: cargo, path: str ) {
518
518
#debug( "source: %s", path) ;
519
519
os:: change_dir( path) ;
520
- let contents = os:: list_dir_path( ". ") ;
521
520
522
- #debug( "contents: %s", str :: connect( contents, ", ") ) ;
523
-
524
- let cratefiles =
525
- vec:: filter:: <str >( contents, { |n| str :: ends_with( n, ". rc") } ) ;
521
+ let mut cratefiles = [ ] ;
522
+ for os:: walk_dir( ". ") { |p|
523
+ if str :: ends_with( p, ". rc") {
524
+ cratefiles += [ p] ;
525
+ }
526
+ }
526
527
527
528
if vec:: is_empty( cratefiles) {
528
529
fail "This doesn' t look like a rust package ( no . rc files) . ";
You can’t perform that action at this time.
0 commit comments