use rustc::session::config::{self, Input, OutputFilenames, OutputType};
use rustc::session::Session;
+use rustc_ast::{ast, attr};
+use rustc_span::symbol::sym;
+use rustc_span::Span;
use std::path::{Path, PathBuf};
-use syntax::symbol::sym;
-use syntax::{ast, attr};
-use syntax_pos::Span;
pub fn out_filename(
sess: &Session,
}
if let Input::File(ref path) = *input {
if let Some(s) = path.file_stem().and_then(|s| s.to_str()) {
- if s.starts_with("-") {
+ if s.starts_with('-') {
let msg = format!(
"crate names cannot start with a `-`, but \
`{}` has a leading hyphen",