1
Fork 0

Auto merge of #32169 - mitaa:anon-tip, r=nrc

Allow custom filenames for anonymous inputs

This came out of #29253 but doesn't fix it.

I thought it might be worth merging on its own nonetheless.
This commit is contained in:
bors 2016-03-14 14:44:55 -07:00
commit 6d215fe04c
8 changed files with 32 additions and 19 deletions

View file

@ -205,7 +205,7 @@ impl<'a, 'tcx> Clean<Crate> for visit_ast::RustdocVisitor<'a, 'tcx> {
current_dir().unwrap().join(path)
}
},
Input::Str(_) => PathBuf::new() // FIXME: this is wrong
Input::Str { ref name, .. } => PathBuf::from(name.clone()),
};
Crate {