X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_errors%2Fdiagnostic_builder.rs;h=fc74e43ff5739e770ec056b8edd45a84acdd18ae;hb=961a9d6e97a37ff1bb33578721dfa8687054c7b8;hp=31f697a724a0357385bfb81487c7684c32f84041;hpb=5cccda1770f76b8184ea55e4735ce88f824f7fd8;p=rust.git diff --git a/src/librustc_errors/diagnostic_builder.rs b/src/librustc_errors/diagnostic_builder.rs index 31f697a724a..fc74e43ff57 100644 --- a/src/librustc_errors/diagnostic_builder.rs +++ b/src/librustc_errors/diagnostic_builder.rs @@ -348,7 +348,7 @@ pub fn new(handler: &'a Handler, level: Level, message: &str) -> DiagnosticBuild /// Convenience function for internal use, clients should use one of the /// struct_* methods on Handler. - pub fn new_with_code(handler: &'a Handler, + crate fn new_with_code(handler: &'a Handler, level: Level, code: Option, message: &str)