Validate crate name in CLI option --extern
This commit is contained in:
parent
f0727758d1
commit
8d81d5a909
15 changed files with 60 additions and 17 deletions
|
@ -1710,6 +1710,15 @@ impl EarlyErrorHandler {
|
|||
self.handler.struct_fatal(msg).emit()
|
||||
}
|
||||
|
||||
#[allow(rustc::untranslatable_diagnostic)]
|
||||
#[allow(rustc::diagnostic_outside_of_impl)]
|
||||
pub(crate) fn early_struct_error(
|
||||
&self,
|
||||
msg: impl Into<DiagnosticMessage>,
|
||||
) -> DiagnosticBuilder<'_, !> {
|
||||
self.handler.struct_fatal(msg)
|
||||
}
|
||||
|
||||
#[allow(rustc::untranslatable_diagnostic)]
|
||||
#[allow(rustc::diagnostic_outside_of_impl)]
|
||||
pub fn early_warn(&self, msg: impl Into<DiagnosticMessage>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue