Do not look for external modules when the input is from stdin

This commit is contained in:
topecongiro 2019-03-17 12:26:45 +09:00
parent 92f57211c1
commit d0e96ed331

View file

@ -624,6 +624,10 @@ fn parse_crate(
syntax::source_map::FileName::Custom("stdin".to_owned()),
text,
)
.map(|mut parser| {
parser.recurse_into_file_modules = false;
parser
})
.map_err(|diags| {
diags
.into_iter()