aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_clippy_pass_by_ref.snap
blob: 4c9db0385b95ad25e61dba6d1ba8e84b5cbda2e4 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
source: crates/ra_flycheck/src/conv/test.rs
expression: diag
---
[
    MappedRustDiagnostic {
        location: Location {
            uri: "file:///test/compiler/mir/tagset.rs",
            range: Range {
                start: Position {
                    line: 41,
                    character: 23,
                },
                end: Position {
                    line: 41,
                    character: 28,
                },
            },
        },
        diagnostic: Diagnostic {
            range: Range {
                start: Position {
                    line: 41,
                    character: 23,
                },
                end: Position {
                    line: 41,
                    character: 28,
                },
            },
            severity: Some(
                Warning,
            ),
            code: Some(
                String(
                    "trivially_copy_pass_by_ref",
                ),
            ),
            source: Some(
                "clippy",
            ),
            message: "this argument is passed by reference, but would be more efficient if passed by value\n#[warn(clippy::trivially_copy_pass_by_ref)] implied by #[warn(clippy::all)]\nfor further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref",
            related_information: Some(
                [
                    DiagnosticRelatedInformation {
                        location: Location {
                            uri: "file:///test/compiler/lib.rs",
                            range: Range {
                                start: Position {
                                    line: 0,
                                    character: 8,
                                },
                                end: Position {
                                    line: 0,
                                    character: 19,
                                },
                            },
                        },
                        message: "lint level defined here",
                    },
                    DiagnosticRelatedInformation {
                        location: Location {
                            uri: "file:///test/compiler/mir/tagset.rs",
                            range: Range {
                                start: Position {
                                    line: 41,
                                    character: 23,
                                },
                                end: Position {
                                    line: 41,
                                    character: 28,
                                },
                            },
                        },
                        message: "consider passing by value instead",
                    },
                ],
            ),
            tags: None,
        },
        fixes: [],
    },
]