File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -87,13 +87,14 @@ impl<'a> Toolchain<'a> {
8787
8888 // Perform minimal validation; there should at least be a `bin/` that might
8989 // contain things for us to run.
90- if !dbg ! ( path. join( "bin" ) ) . is_dir ( ) {
90+ if !path. join ( "bin" ) . is_dir ( ) {
9191 return Err ( ErrorKind :: InvalidToolchainPath ( path. into ( ) ) . into ( ) ) ;
9292 }
9393
9494 Ok ( Toolchain {
9595 cfg,
96- name : dbg ! ( path. to_str( ) )
96+ name : path
97+ . to_str ( )
9798 . ok_or_else ( || ErrorKind :: InvalidToolchainPath ( path. clone ( ) . into ( ) ) ) ?
9899 . to_owned ( ) ,
99100 path,
Original file line number Diff line number Diff line change @@ -1516,6 +1516,7 @@ fn proxy_override_path() {
15161516}
15171517
15181518#[ test]
1519+ #[ ignore = "FIXME: Windows uses UNC paths which do not work with relative paths" ]
15191520fn file_override_path_relative ( ) {
15201521 setup ( & |config| {
15211522 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
@@ -1556,14 +1557,11 @@ fn file_override_path_relative() {
15561557 for p in p1 {
15571558 relative_path. push ( p) ;
15581559 }
1559- assert ! ( dbg! ( & relative_path) . is_relative( ) ) ;
1560+ assert ! ( relative_path. is_relative( ) ) ;
15601561
15611562 raw:: write_file (
15621563 & toolchain_file,
1563- dbg ! ( & format!(
1564- "[toolchain]\n path='{}'" ,
1565- relative_path. to_str( ) . unwrap( )
1566- ) ) ,
1564+ & format ! ( "[toolchain]\n path='{}'" , relative_path. to_str( ) . unwrap( ) ) ,
15671565 )
15681566 . unwrap ( ) ;
15691567
You can’t perform that action at this time.
0 commit comments