]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_driver/lib.rs
Fix rebase fallout.
[rust.git] / src / librustc_driver / lib.rs
index ef638464adce9b8074292899ab2308bdf2462983..6557be9f7ecd0845f71a981d32e0ec56da43c69c 100644 (file)
 
 const ICE_REPORT_COMPILER_FLAGS_STRIP_VALUE: &[&str] = &["incremental"];
 
-pub fn source_name(input: &Input) -> FileName {
-    match *input {
-        Input::File(ref ifile) => ifile.clone().into(),
-        Input::Str { ref name, .. } => name.clone(),
-    }
-}
-
 pub fn abort_on_err<T>(result: Result<T, ErrorReported>, sess: &Session) -> T {
     match result {
         Err(..) => {