Skip to content

test: snapshot for derive suggestion in diff files #107659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

bvanjoi
Copy link
Contributor

@bvanjoi bvanjoi commented Feb 4, 2023

fixed #107649

@rustbot
Copy link
Collaborator

rustbot commented Feb 4, 2023

r? @nagisa

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 4, 2023
@bvanjoi bvanjoi changed the title test: snapshot for derive suggestion in diff files(close: #107649) test: snapshot for derive suggestion in diff files Feb 4, 2023
@matthiaskrgr
Copy link
Member

Your pr only contains tests i think it's missing the source change?

@bvanjoi
Copy link
Contributor Author

bvanjoi commented Feb 4, 2023

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.

@matthiaskrgr
Copy link
Member

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".

help: consider annotating `UnusedDelimSuggestion` with `#[derive(Debug)]`
   --> |compiler/rustc_lint/src/lints.rs:1465:1
    |

but I don't see this "|{path}" pattern at all in your test output 🤔

@bvanjoi
Copy link
Contributor Author

bvanjoi commented Feb 4, 2023

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".

help: consider annotating `UnusedDelimSuggestion` with `#[derive(Debug)]`
   --> |compiler/rustc_lint/src/lints.rs:1465:1
    |

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?

@estebank
Copy link
Contributor

estebank commented Feb 6, 2023

help: consider annotating `UnusedDelimSuggestion` with `#[derive(Debug)]`
   --> |compiler/rustc_lint/src/lints.rs:1465:1
    |

should be

help: consider annotating `UnusedDelimSuggestion` with `#[derive(Debug)]`
   --> compiler/rustc_lint/src/lints.rs:1465:1
    |

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).

@bvanjoi
Copy link
Contributor Author

bvanjoi commented Feb 6, 2023

help: consider annotating `UnusedDelimSuggestion` with `#[derive(Debug)]`
   --> |compiler/rustc_lint/src/lints.rs:1465:1
    |

should be

help: consider annotating `UnusedDelimSuggestion` with `#[derive(Debug)]`
   --> compiler/rustc_lint/src/lints.rs:1465:1
    |

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

@bvanjoi
Copy link
Contributor Author

bvanjoi commented Feb 9, 2023

Help review it if you have time @matthiaskrgr @estebank

@estebank
Copy link
Contributor

estebank commented Feb 9, 2023

r? @estebank
@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Feb 9, 2023

📌 Commit 7615045 has been approved by estebank

It is now in the queue for this repository.

@rustbot rustbot assigned estebank and unassigned nagisa Feb 9, 2023
@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 9, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 9, 2023
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
@bors bors merged commit 5aa062e into rust-lang:master Feb 9, 2023
@rustbot rustbot added this to the 1.69.0 milestone Feb 9, 2023
@bvanjoi bvanjoi deleted the issue-107649 branch April 3, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E0277 unfortunate spacing in source
6 participants