Skip to content

Conversation

@HKalbasi
Copy link
Member

@HKalbasi HKalbasi commented Feb 4, 2023

And some refactoring to make code more type safe.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 4, 2023
@HKalbasi
Copy link
Member Author

HKalbasi commented Feb 6, 2023

r? @Veykril

This is not a deep change in the type system. It just changes a Vec with u16 index to an Arena and stores inference variables used for rpits so we can find the underlying type for them using InferenceResult.

@Veykril
Copy link
Member

Veykril commented Feb 6, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Feb 6, 2023

📌 Commit 443bc7f has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 6, 2023

⌛ Testing commit 443bc7f with merge e9ce02c...

Comment on lines +51 to +57
let mut cmd = std::process::Command::new("rustc");
cmd.args(["-Z", "unstable-options", "--print", "target-spec-json"]).env("RUSTC_BOOTSTRAP", "1");
let output = cmd.output().unwrap();
assert!(output.status.success(), "{}", output.status);
let stdout = String::from_utf8(output.stdout).unwrap();
let target_data_layout =
stdout.split_once(r#""data-layout": ""#).unwrap().1.split_once('"').unwrap().0.to_owned();
Copy link
Member

Choose a reason for hiding this comment

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

can you extract that to a function?

@bors
Copy link
Contributor

bors commented Feb 6, 2023

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

@bors bors merged commit e9ce02c into rust-lang:master Feb 6, 2023
@bors bors mentioned this pull request Feb 6, 2023
bors added a commit that referenced this pull request Feb 6, 2023
Reuse fetching target data layout from rustc function

fix #14087
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.

5 participants