We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
style_or_override
1 parent 7b4c5c6 commit 21724edCopy full SHA for 21724ed
src/librustc_errors/emitter.rs
@@ -1056,7 +1056,7 @@ impl EmitterWriter {
1056
// `max_line_num_len`
1057
let padding = " ".repeat(padding + label.len() + 5);
1058
1059
- /// Returns `true` if `style`, or the override if present and the style is `NoStyle`.
+ /// Returns `override` if it is present and `style` is `NoStyle` or `style` otherwise
1060
fn style_or_override(style: Style, override: Option<Style>) -> Style {
1061
match (style, override) {
1062
(Style::NoStyle, Some(override)) => override,
0 commit comments