File tree 3 files changed +18
-2
lines changed
test/run-make/issue-26092
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ use super::Compilation;
33
33
use serialize:: json;
34
34
35
35
use std:: env;
36
- use std:: ffi:: OsString ;
36
+ use std:: ffi:: { OsString , OsStr } ;
37
37
use std:: fs;
38
38
use std:: io:: { self , Write } ;
39
39
use std:: path:: { Path , PathBuf } ;
@@ -966,7 +966,7 @@ pub fn build_output_filenames(input: &Input,
966
966
967
967
OutputFilenames {
968
968
out_directory : out_file. parent ( ) . unwrap_or ( cur_dir) . to_path_buf ( ) ,
969
- out_filestem : out_file. file_stem ( ) . unwrap ( )
969
+ out_filestem : out_file. file_stem ( ) . unwrap_or ( OsStr :: new ( "" ) )
970
970
. to_str ( ) . unwrap ( ) . to_string ( ) ,
971
971
single_output_file : ofile,
972
972
extra : sess. opts . cg . extra_filename . clone ( ) ,
Original file line number Diff line number Diff line change
1
+ -include ../tools.mk
2
+
3
+ all :
4
+ $(RUSTC ) -o " " blank.rs 2>&1 | \
5
+ grep ' No such file or directory'
Original file line number Diff line number Diff line change
1
+ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments