Skip to content

Commit 4d885df

Browse files
committed
fixup
1 parent 806c6de commit 4d885df

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

compiler/rustc_expand/src/proc_macro_server.rs

Lines changed: 1 addition & 6 deletions
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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use rustc_span::source_map::{FilePathMapping, SourceMap};
2323
use rustc_span::{Span, Symbol};
2424

2525
use rustc_ast::attr::AttrIdGenerator;
26-
use std::path;
2726
use std::str;
2827

2928
/// The set of keys (and, optionally, values) that define the compilation
@@ -215,9 +214,7 @@ pub struct ParseSess {
215214
/// Environment variables accessed during the build and their values when they exist.
216215
pub env_depinfo: Lock<FxHashSet<(Symbol, Option<Symbol>)>>,
217216
/// File paths accessed during the build.
218-
pub file_depinfo: Lock<FxHashSet<path::PathBuf>>,
219-
/// All the type ascriptions expressions that have had a suggestion for likely path typo.
220-
pub type_ascription_path_suggestions: Lock<FxHashSet<Span>>,
217+
pub file_depinfo: Lock<FxHashSet<Symbol>>,
221218
/// Whether cfg(version) should treat the current release as incomplete
222219
pub assume_incomplete_release: bool,
223220
/// Spans passed to `proc_macro::quote_span`. Each span has a numerical

0 commit comments

Comments
 (0)