Skip to content

fix: Fix source roots not always being created when necessary #17145

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
Apr 26, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 26, 2024

(should) fix #17071 and fix #17079

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 26, 2024
@Veykril
Copy link
Member Author

Veykril commented Apr 26, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Apr 26, 2024

📌 Commit 2668912 has been approved by Veykril

It is now in the queue for this repository.

let vfs_path = vfs.file_path(file.file_id);
if let Some(path) = vfs_path.as_path() {
has_structure_changes = file.is_created_or_deleted();
has_structure_changes |= file.is_created_or_deleted();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@bors
Copy link
Contributor

bors commented Apr 26, 2024

⌛ Testing commit 2668912 with merge 1ed7e2d...

@bors
Copy link
Contributor

bors commented Apr 26, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 1ed7e2d to master...

@bors bors merged commit 1ed7e2d into rust-lang:master Apr 26, 2024
11 checks passed
@Veykril Veykril deleted the fix-missing-source-root branch April 26, 2024 17:25
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.

Crash when initializing (fetching/building phase) cargo project no value set for FileSourceRootQuery(FileId(6196))
3 participants