Rollup merge of #116474 - nnethercote:rustc_assorted, r=spastorino
Assorted small cleanups r? `@spastorino`
This commit is contained in:
commit
9796dfdd56
8 changed files with 28 additions and 81 deletions
|
@ -280,8 +280,7 @@ impl RealFileName {
|
|||
}
|
||||
|
||||
/// Differentiates between real files and common virtual files.
|
||||
#[derive(Debug, Eq, PartialEq, Clone, Ord, PartialOrd, Hash)]
|
||||
#[derive(Decodable, Encodable)]
|
||||
#[derive(Debug, Eq, PartialEq, Clone, Ord, PartialOrd, Hash, Decodable, Encodable)]
|
||||
pub enum FileName {
|
||||
Real(RealFileName),
|
||||
/// Call to `quote!`.
|
||||
|
@ -292,8 +291,6 @@ pub enum FileName {
|
|||
// FIXME(jseyfried)
|
||||
MacroExpansion(Hash64),
|
||||
ProcMacroSourceCode(Hash64),
|
||||
/// Strings provided as `--cfg [cfgspec]` stored in a `crate_cfg`.
|
||||
CfgSpec(Hash64),
|
||||
/// Strings provided as crate attributes in the CLI.
|
||||
CliCrateAttr(Hash64),
|
||||
/// Custom sources for explicit parser calls from plugins and drivers.
|
||||
|
@ -338,7 +335,6 @@ impl fmt::Display for FileNameDisplay<'_> {
|
|||
MacroExpansion(_) => write!(fmt, "<macro expansion>"),
|
||||
Anon(_) => write!(fmt, "<anon>"),
|
||||
ProcMacroSourceCode(_) => write!(fmt, "<proc-macro source code>"),
|
||||
CfgSpec(_) => write!(fmt, "<cfgspec>"),
|
||||
CliCrateAttr(_) => write!(fmt, "<crate attribute>"),
|
||||
Custom(ref s) => write!(fmt, "<{s}>"),
|
||||
DocTest(ref path, _) => write!(fmt, "{}", path.display()),
|
||||
|
@ -364,7 +360,6 @@ impl FileName {
|
|||
Anon(_)
|
||||
| MacroExpansion(_)
|
||||
| ProcMacroSourceCode(_)
|
||||
| CfgSpec(_)
|
||||
| CliCrateAttr(_)
|
||||
| Custom(_)
|
||||
| QuoteExpansion(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue