1
Fork 0

Auto merge of #3815 - phansch:make_private, r=Manishearth

Make DiagnosticWrapper private

It's doesn't have to be public anywhere outside of clippy_lints as far as I can tell.
This commit is contained in:
bors 2019-02-25 06:31:27 +00:00
commit 1233b39ca9

View file

@ -8,7 +8,7 @@ use syntax::errors::DiagnosticBuilder;
use syntax::source_map::Span;
/// Wrapper around `DiagnosticBuilder` that adds a link to Clippy documentation for the emitted lint
pub struct DiagnosticWrapper<'a>(pub DiagnosticBuilder<'a>);
struct DiagnosticWrapper<'a>(DiagnosticBuilder<'a>);
impl<'a> Drop for DiagnosticWrapper<'a> {
fn drop(&mut self) {