Fix & test for correct highlighting of strings with shared prefix#343
Fix & test for correct highlighting of strings with shared prefix#343faculerena wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
Have to double check with @Muscraft but I suspect this belongs in the rustc code calling annotate-snippets. annotate-snippets is a general library with no knowledge of import paths. |
|
I'm not sure either, but I sent this PR to talk about that. I agree that the path part of the fix looks like it should be in Edit: I mean, fixing this in rustc would mean getting a handful of things that were removed in favor of using this crate back there. |
|
I took some time to try and find a solution that didn't require adding knowledge of |
|
Amazing man, the other fix will probably stay in rustc stable if annotate-snippets is not stabilized before 1.93, then that solution will work. Thanks! |
Applies here the fix suggested in this PR.
Original issue.