Stream: general

Topic: inline code annotation?


RalfJ (Aug 12 2019 at 08:29, on Zulip):

I am writing a rustc lint, and I want to add some text inline into the code I am showing -- similar to how suggestions are rendered, but this is not a suggestion, it is just text. What should I do?
span_note doesn't do this, the text you give it shows up above the snippet is shows. span_label does something completely weird that I don't understand (it doesnt even respect the order in which it got called, showing up way in the beginning of the rendered diagnostic). And at that point I am out of options?

Last update: Nov 21 2019 at 23:25UTC