File: multiple_annotations.toml

package info (click to toggle)
rust-annotate-snippets 0.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[message]
level = "Error"
title = ""

[[message.snippets]]
source = """
fn add_title_line(result: &mut Vec<String>, main_annotation: Option<&Annotation>) {
    if let Some(annotation) = main_annotation {
        result.push(format_title_line(
            &annotation.annotation_type,
            None,
            &annotation.label,
        ));
    }
}
"""
line_start = 96
[[message.snippets.annotations]]
label = "Variable defined here"
level = "Error"
range = [100, 110]
[[message.snippets.annotations]]
label = "Referenced here"
level = "Error"
range = [184, 194]
[[message.snippets.annotations]]
label = "Referenced again here"
level = "Error"
range = [243, 253]