@@ -165,7 +165,8 @@ fn test_is_uuid() {
165
165
assert ! is_uuid( "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaป" ) ;
166
166
}
167
167
168
- // FIXME: implement url/URL parsing so we don't have to resort to weak checks
168
+ // FIXME (#2661): implement url/URL parsing so we don't have to resort
169
+ // to weak checks
169
170
170
171
fn has_archive_extension ( p : str ) -> bool {
171
172
str:: ends_with ( p, ".tar" ) ||
@@ -188,8 +189,8 @@ fn is_archive_path(u: str) -> bool {
188
189
}
189
190
190
191
fn is_archive_url ( u : str ) -> bool {
191
- // FIXME: this requires the protocol bit - if we had proper url parsing,
192
- // we wouldn't need it
192
+ // FIXME (#2661) : this requires the protocol bit - if we had proper
193
+ // url parsing, we wouldn't need it
193
194
194
195
alt str:: find_str ( u, "://" ) {
195
196
option:: some ( i) { has_archive_extension ( u) }
@@ -315,7 +316,7 @@ fn load_crate(filename: str) -> option<crate> {
315
316
316
317
alt * attr_name {
317
318
"std" | "core" { }
318
- _ { e. deps += [ query] ; }
319
+ _ { vec :: push ( e. deps, query) ; }
319
320
}
320
321
}
321
322
_ { }
@@ -774,7 +775,7 @@ fn install_source(c: cargo, path: str) {
774
775
let mut cratefiles = [ ] ;
775
776
for os:: walk_dir( ". ") { |p|
776
777
if str :: ends_with( p, ". rc") {
777
- cratefiles += [ p ] ;
778
+ vec :: push ( cratefiles, p ) ;
778
779
}
779
780
}
780
781
@@ -956,9 +957,10 @@ fn cmd_uninstall(c: cargo) {
956
957
let bin = c. bindir;
957
958
let target = c. opts. free[ 2 u] ;
958
959
959
- // FIXME: needs stronger pattern matching
960
- // FIXME: needs to uninstall from a specified location in a cache instead
961
- // of looking for it (binaries can be uninstalled by name only)
960
+ // FIXME (#2662): needs stronger pattern matching
961
+ // FIXME (#2662): needs to uninstall from a specified location in a
962
+ // cache instead of looking for it (binaries can be uninstalled by
963
+ // name only)
962
964
if is_uuid( target) {
963
965
for os:: list_dir( lib) . each { |file|
964
966
alt str :: find_str( file, "-" + target + "-") {
@@ -1059,8 +1061,8 @@ fn install_query(c: cargo, wd: str, target: str) {
1059
1061
}
1060
1062
}
1061
1063
1062
- // FIXME: This whole dep_cache and current_install
1063
- // thing is a bit of a hack. It should be cleaned up in the future.
1064
+ // FIXME (#2662) : This whole dep_cache and current_install thing is
1065
+ // a bit of a hack. It should be cleaned up in the future.
1064
1066
1065
1067
if target == c. current_install {
1066
1068
for c. dep_cache. each { |k, _v|
@@ -1894,7 +1896,7 @@ fn main(argv: [str]) {
1894
1896
if !first_time && o. free[ 1 ] != "init" {
1895
1897
cmd_init( c) ;
1896
1898
1897
- // FIXME: shouldn't need to reconfigure
1899
+ // FIXME (#2662) : shouldn't need to reconfigure
1898
1900
c = configure( o) ;
1899
1901
}
1900
1902
0 commit comments