test: snapshot for derive suggestion in diff files#107659
test: snapshot for derive suggestion in diff files#107659bors merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @nagisa (rustbot has picked a reviewer for you, use r? to override) |
|
Your pr only contains tests i think it's missing the source change? |
since I found that it turned out as expected when I tried to reproduce the problem in the issue, I just added some test cases. |
|
My problem was the " |{path}" which caused "|compiler/rustc_lint/src/lints.rs" to be opened when clicking on it instead of "compiler/rustc_lint/src/lints.rs". but I don't see this "|{path}" pattern at all in your test output 🤔 |
Then maybe I'm misunderstanding something. Can you post the reproduction steps so I can check and fix it? |
should be The leading pipe before the path is a bug somewhere in the diagnostics machinery. It is ok to open a PR adding a test (but it shouldn't close the original ticket until solved). |
Understood, I have replicated this issue locally and will try to fix it in the near future |
|
Help review it if you have time @matthiaskrgr @estebank |
Rollup of 6 pull requests Successful merges: - rust-lang#107648 (unused-lifetimes: don't warn about lifetimes originating from expanded code) - rust-lang#107655 (rustdoc: use the same URL escape rules for fragments as for examples) - rust-lang#107659 (test: snapshot for derive suggestion in diff files) - rust-lang#107786 (Implement some tweaks in the new solver) - rust-lang#107803 (Do not bring trait alias supertraits into scope) - rust-lang#107815 (Disqualify `auto trait` built-in impl in new solver if explicit `impl` exists) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
fixed #107649