Skip to content

Commit

Permalink
Rollup merge of rust-lang#102860 - GuillaumeGomez:missing-docs-FileNa…
Browse files Browse the repository at this point in the history
…meDisplayPreference, r=nagisa

Add missing documentation for FileNameDisplayPreference variants

Took me a while to find the information when I needed it so hopefully it should save some time for the next ones.

r? `@thomcc`
  • Loading branch information
JohnTitor authored Oct 10, 2022
2 parents fe69407 + 550f579 commit efbef07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_span/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ impl From<PathBuf> for FileName {

#[derive(Clone, Copy, Eq, PartialEq, Hash, Debug)]
pub enum FileNameDisplayPreference {
/// Display the path after the application of rewrite rules provided via `--remap-path-prefix`.
/// This is appropriate for paths that get embedded into files produced by the compiler.
Remapped,
/// Display the path before the application of rewrite rules provided via `--remap-path-prefix`.
/// This is appropriate for use in user-facing output (such as diagnostics).
Local,
}

Expand Down

0 comments on commit efbef07

Please sign in to comment.