Skip to main content

warning

Macro warning 

Source
macro_rules! warning {
    ($($args:tt)+) => { ... };
}
Expand description

Emits a diagnostic of level Level::Warning with a formatted message.

Warnings are conditions that do not harm the correct execution of the task at hand but that the user should pay attention to.

Example:

warning!(span, "misleading identifier: {}", ident);