Skip to content
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

trim paths in box_default #10153

Merged
merged 1 commit into from
Jan 6, 2023
Merged

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Jan 3, 2023

This might help with #10089, though I have not tested that yet. In any event, it keeps the suggestion short and to the point.


changelog: Trim paths in [box_default] suggestion

@rustbot
Copy link
Collaborator

rustbot commented Jan 3, 2023

r? @Jarcho

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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 3, 2023
@Jarcho
Copy link
Contributor

Jarcho commented Jan 5, 2023

How does this handle cases where the path (or part of it) is actually needed?

@llogiq
Copy link
Contributor Author

llogiq commented Jan 5, 2023

The macro just reduces paths that have active imports, so the shortened paths are guaranteed to lead to the same item as the fully qualified paths.

It's also used in the compiler, btw.

bors added a commit that referenced this pull request Jan 6, 2023
trim paths in `default_trait_access`/`clone_on_copy` suggestions

This should help making the suggestions more palatable. Similar to #10153.

---

changelog: trim paths in [`default_trait_access`]/[`clone_on_copy`] suggestions
@Jarcho
Copy link
Contributor

Jarcho commented Jan 6, 2023

Sounds good. @bors r+

@bors
Copy link
Collaborator

bors commented Jan 6, 2023

📌 Commit d3a50d2 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jan 6, 2023

⌛ Testing commit d3a50d2 with merge 179a22f...

@bors
Copy link
Collaborator

bors commented Jan 6, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 179a22f to master...

@bors bors merged commit 179a22f into rust-lang:master Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants