diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-27 12:03:37 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-27 12:03:37 +1000 |
| commit | 5fd503ab445b2a70897026e495dd4df4343333eb (patch) | |
| tree | 3a11f2af6663ebc61d2b0d883a72e114cc76a799 /compiler/rustc_errors/src/diagnostic.rs | |
| parent | 2b5621280c118ca72eb84470129c72b069e22907 (diff) | |
| download | rust-5fd503ab445b2a70897026e495dd4df4343333eb.tar.gz rust-5fd503ab445b2a70897026e495dd4df4343333eb.zip | |
Add `warn(unreachable_pub)` to `rustc_errors`.
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic.rs')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index fae8b5647fc..3303e4ee752 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -204,7 +204,7 @@ pub trait LintDiagnostic<'a, G: EmissionGuarantee> { } #[derive(Clone, Debug, Encodable, Decodable)] -pub struct DiagLocation { +pub(crate) struct DiagLocation { file: Cow<'static, str>, line: u32, col: u32, |
