Skip to content

Commit 108e541

Browse files
committed
Remove unused FileName::CfgSpec.
1 parent 442a66d commit 108e541

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,6 @@ impl Input {
813813
FileName::Anon(_) => None,
814814
FileName::MacroExpansion(_) => None,
815815
FileName::ProcMacroSourceCode(_) => None,
816-
FileName::CfgSpec(_) => None,
817816
FileName::CliCrateAttr(_) => None,
818817
FileName::Custom(_) => None,
819818
FileName::DocTest(path, _) => Some(path),

compiler/rustc_span/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ impl RealFileName {
280280
}
281281

282282
/// Differentiates between real files and common virtual files.
283-
#[derive(Debug, Eq, PartialEq, Clone, Ord, PartialOrd, Hash)]
284-
#[derive(Decodable, Encodable)]
283+
#[derive(Debug, Eq, PartialEq, Clone, Ord, PartialOrd, Hash, Decodable, Encodable)]
285284
pub enum FileName {
286285
Real(RealFileName),
287286
/// Call to `quote!`.
@@ -292,8 +291,6 @@ pub enum FileName {
292291
// FIXME(jseyfried)
293292
MacroExpansion(Hash64),
294293
ProcMacroSourceCode(Hash64),
295-
/// Strings provided as `--cfg [cfgspec]` stored in a `crate_cfg`.
296-
CfgSpec(Hash64),
297294
/// Strings provided as crate attributes in the CLI.
298295
CliCrateAttr(Hash64),
299296
/// Custom sources for explicit parser calls from plugins and drivers.
@@ -339,7 +336,6 @@ impl fmt::Display for FileNameDisplay<'_> {
339336
MacroExpansion(_) => write!(fmt, "<macro expansion>"),
340337
Anon(_) => write!(fmt, "<anon>"),
341338
ProcMacroSourceCode(_) => write!(fmt, "<proc-macro source code>"),
342-
CfgSpec(_) => write!(fmt, "<cfgspec>"),
343339
CliCrateAttr(_) => write!(fmt, "<crate attribute>"),
344340
Custom(ref s) => write!(fmt, "<{s}>"),
345341
DocTest(ref path, _) => write!(fmt, "{}", path.display()),
@@ -365,7 +361,6 @@ impl FileName {
365361
Anon(_)
366362
| MacroExpansion(_)
367363
| ProcMacroSourceCode(_)
368-
| CfgSpec(_)
369364
| CliCrateAttr(_)
370365
| Custom(_)
371366
| QuoteExpansion(_)

0 commit comments

Comments
 (0)