Skip to content

Commit 33137ff

Browse files
phanschCentril
andcommitted
Address review comments
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent e3516a1 commit 33137ff

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/librustc/session/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ impl OutputType {
227227
}
228228
}
229229

230-
/// The type of diagnostics output to generate
230+
/// The type of diagnostics output to generate.
231231
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
232232
pub enum ErrorOutputType {
233233
/// Output meant for the consumption of humans.
234234
HumanReadable(HumanReadableErrorType),
235235
/// Output that's consumed by other tools such as `rustfix` or the `RLS`.
236236
Json {
237-
/// Render the JSON in a human readable way (with indents and newlines)
237+
/// Render the JSON in a human readable way (with indents and newlines).
238238
pretty: bool,
239239
/// The JSON output includes a `rendered` field that includes the rendered
240240
/// human output.

src/librustc_errors/diagnostic_builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl<'a> DiagnosticBuilder<'a> {
348348

349349
/// Convenience function for internal use, clients should use one of the
350350
/// struct_* methods on Handler.
351-
pub(crate) fn new_with_code(handler: &'a Handler,
351+
crate fn new_with_code(handler: &'a Handler,
352352
level: Level,
353353
code: Option<DiagnosticId>,
354354
message: &str)

src/librustc_errors/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
//! Diagnostics creation and emission for rustc
1+
//! Diagnostics creation and emission for `rustc`.
22
//!
33
//! This module contains the code for creating and emitting diagnostics.
44
55
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
66

7+
#![feature(crate_visibility_modifier)]
78
#![allow(unused_attributes)]
89
#![cfg_attr(unix, feature(libc))]
910
#![feature(nll)]

0 commit comments

Comments
 (0)