Skip to content

Commit 5b0b922

Browse files
committed
fixup
1 parent 881b57a commit 5b0b922

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

compiler/rustc_expand/src/proc_macro_server.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ use rustc_span::symbol::{self, sym, Symbol};
1919
use rustc_span::{BytePos, FileName, Pos, SourceFile, Span};
2020
use smallvec::{smallvec, SmallVec};
2121
use std::ops::{Bound, Range};
22-
use std::{path, ascii, panic};
23-
use pm::bridge::{
24-
server, DelimSpan, ExpnGlobals, Group, Ident, LitKind, Literal, Punct, TokenTree,
25-
};
26-
use pm::{Delimiter, Level, LineColumn};
2722

2823
trait FromInternal<T> {
2924
fn from_internal(x: T) -> Self;
@@ -408,7 +403,7 @@ impl server::FreeFunctions for Rustc<'_, '_> {
408403
}
409404

410405
fn track_fs_path(&mut self, path: &str) {
411-
self.sess().file_depinfo.borrow_mut().insert(path::PathBuf::from(path));
406+
self.sess().file_depinfo.borrow_mut().insert(Symbol::intern(path));
412407
}
413408

414409
fn literal_from_str(&mut self, s: &str) -> Result<Literal<Self::Span, Self::Symbol>, ()> {

compiler/rustc_session/src/parse.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use rustc_span::source_map::{FilePathMapping, SourceMap};
2121
use rustc_span::{Span, Symbol};
2222

2323
use rustc_ast::attr::AttrIdGenerator;
24-
use std::path;
2524
use std::str;
2625

2726
/// The set of keys (and, optionally, values) that define the compilation
@@ -210,9 +209,7 @@ pub struct ParseSess {
210209
/// Environment variables accessed during the build and their values when they exist.
211210
pub env_depinfo: Lock<FxHashSet<(Symbol, Option<Symbol>)>>,
212211
/// File paths accessed during the build.
213-
pub file_depinfo: Lock<FxHashSet<path::PathBuf>>,
214-
/// All the type ascriptions expressions that have had a suggestion for likely path typo.
215-
pub type_ascription_path_suggestions: Lock<FxHashSet<Span>>,
212+
pub file_depinfo: Lock<FxHashSet<Symbol>>,
216213
/// Whether cfg(version) should treat the current release as incomplete
217214
pub assume_incomplete_release: bool,
218215
/// Spans passed to `proc_macro::quote_span`. Each span has a numerical

0 commit comments

Comments
 (0)