diff options
| author | Bernhard Schuster <bernhard@ahoi.io> | 2021-04-09 16:35:40 +0200 |
|---|---|---|
| committer | Bernhard Schuster <bernhard@ahoi.io> | 2021-07-02 07:13:19 +0200 |
| commit | 67e6a813159b5438507d4c24201e452a110a8284 (patch) | |
| tree | 96e3c9b9a7b60a9fda5701c0b2c46561484f8c4a /compiler/rustc_session/src/parse.rs | |
| parent | 1034282bca4402b2a9d913c981002c45dc3e2425 (diff) | |
| download | rust-67e6a813159b5438507d4c24201e452a110a8284.tar.gz rust-67e6a813159b5438507d4c24201e452a110a8284.zip | |
add track_path::path fn for proc-macro usage
Ref #73921
Diffstat (limited to 'compiler/rustc_session/src/parse.rs')
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index 7b7878e9c7f..226fde2343a 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -133,6 +133,8 @@ pub struct ParseSess { pub reached_eof: Lock<bool>, /// Environment variables accessed during the build and their values when they exist. pub env_depinfo: Lock<FxHashSet<(Symbol, Option<Symbol>)>>, + /// File paths accessed during the build. + pub file_depinfo: Lock<FxHashSet<Symbol>>, /// All the type ascriptions expressions that have had a suggestion for likely path typo. pub type_ascription_path_suggestions: Lock<FxHashSet<Span>>, /// Whether cfg(version) should treat the current release as incomplete @@ -165,6 +167,7 @@ impl ParseSess { symbol_gallery: SymbolGallery::default(), reached_eof: Lock::new(false), env_depinfo: Default::default(), + file_depinfo: Default::default(), type_ascription_path_suggestions: Default::default(), assume_incomplete_release: false, proc_macro_quoted_spans: Default::default(), |
