fork/cargo

git clone https://git.julia.blue/fork/cargo

Weihang Lofix(cli): Adjust messages to match rustc (#15928)3ceb2cb25

0.92.0
2.7 KiB53 linesraw
1<svg width="818px" height="272px" xmlns="http://www.w3.org/2000/svg">
2  <style>
3    .fg { fill: #AAAAAA }
4    .bg { background: #000000 }
5    .fg-bright-blue { fill: #5555FF }
6    .fg-bright-green { fill: #55FF55 }
7    .fg-bright-red { fill: #FF5555 }
8    .container {
9      padding: 0 10px;
10      line-height: 18px;
11    }
12    .bold { font-weight: bold; }
13    tspan {
14      font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
15      white-space: pre;
16      line-height: 18px;
17    }
18  </style>
19
20  <rect width="100%" height="100%" y="0" rx="4.5" class="bg" />
21
22  <text xml:space="preserve" class="container fg">
23    <tspan x="10px" y="28px"><tspan class="fg-bright-red bold">error</tspan><tspan class="bold">: use of unstable lint `im_a_teapot`</tspan>
24</tspan>
25    <tspan x="10px" y="46px"><tspan> </tspan><tspan class="fg-bright-blue bold">--&gt; </tspan><tspan>Cargo.toml:6:1</tspan>
26</tspan>
27    <tspan x="10px" y="64px"><tspan>  </tspan><tspan class="fg-bright-blue bold">|</tspan>
28</tspan>
29    <tspan x="10px" y="82px"><tspan class="fg-bright-blue bold">6</tspan><tspan> </tspan><tspan class="fg-bright-blue bold">|</tspan><tspan> im_a_teapot = { level = "warn", priority = 10 }</tspan>
30</tspan>
31    <tspan x="10px" y="100px"><tspan>  </tspan><tspan class="fg-bright-blue bold">|</tspan><tspan> </tspan><tspan class="fg-bright-red bold">^^^^^^^^^^^</tspan><tspan> </tspan><tspan class="fg-bright-red bold">this is behind `test-dummy-unstable`, which is not enabled</tspan>
32</tspan>
33    <tspan x="10px" y="118px"><tspan>  </tspan><tspan class="fg-bright-blue bold">|</tspan>
34</tspan>
35    <tspan x="10px" y="136px"><tspan>  </tspan><tspan class="fg-bright-blue bold">= </tspan><tspan class="bold">help</tspan><tspan>: consider adding `cargo-features = ["test-dummy-unstable"]` to the top of the manifest</tspan>
36</tspan>
37    <tspan x="10px" y="154px"><tspan class="fg-bright-green bold">note</tspan><tspan>: `cargo::im_a_teapot` was inherited</tspan>
38</tspan>
39    <tspan x="10px" y="172px"><tspan> </tspan><tspan class="fg-bright-blue bold">--&gt; </tspan><tspan>foo/Cargo.toml:9:1</tspan>
40</tspan>
41    <tspan x="10px" y="190px"><tspan>  </tspan><tspan class="fg-bright-blue bold">|</tspan>
42</tspan>
43    <tspan x="10px" y="208px"><tspan class="fg-bright-blue bold">9</tspan><tspan> </tspan><tspan class="fg-bright-blue bold">|</tspan><tspan> workspace = true</tspan>
44</tspan>
45    <tspan x="10px" y="226px"><tspan>  </tspan><tspan class="fg-bright-blue bold">|</tspan><tspan> </tspan><tspan class="fg-bright-blue bold">----------------</tspan>
46</tspan>
47    <tspan x="10px" y="244px"><tspan class="fg-bright-red bold">error</tspan><tspan>: encountered 1 errors(s) while verifying lints</tspan>
48</tspan>
49    <tspan x="10px" y="262px">
50</tspan>
51  </text>
52
53</svg>