Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::collections::HashMap;
use std::io::{self, Write};
use std::time::{Duration, Instant};

use rustc_arena::TypedArena;
use rustc_ast::ast;
use rustc_span::Span;

Expand Down Expand Up @@ -131,7 +132,9 @@ fn format_project<T: FormatHandler>(
};

let mut context = FormatContext::new(&krate, report, parse_session, config, handler);
let item_arena = TypedArena::default();
let files = modules::ModResolver::new(
&item_arena,
&context.parse_session,
directory_ownership.unwrap_or(DirectoryOwnership::UnownedViaBlock),
!input_is_stdin && !config.skip_children(),
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ extern crate lazy_static;
extern crate tracing;

// N.B. these crates are loaded from the sysroot, so they need extern crate.
extern crate rustc_arena;
extern crate rustc_ast;
extern crate rustc_ast_pretty;
extern crate rustc_builtin_macros;
Expand Down
Loading