Do not look for external modules when the input is from stdin
This commit is contained in:
parent
92f57211c1
commit
d0e96ed331
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user