-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustc_target: import TargetMetadata #136953
Conversation
These commits modify compiler targets. |
This comment has been minimized.
This comment has been minimized.
78f4703
to
d76640b
Compare
These commits modify compiler targets. |
I don't see the benefit of importing something that is only used once over using the full path. Either solution seems fine, but changing a lot of code just to pick one option over the other is missing a rationale for me. Can you explain the reason for it? Was there some discussion about further changes that may benefit from doing this now? |
With that idea, I think other identifiers like |
☔ The latest upstream changes (presumably #137046) made this pull request unmergeable. Please resolve the merge conflicts. |
I agree it's super inconsistent right now, so I am in favor of churning it one way or the other. |
Makes sense, but someone who actually knows about rustc_target should review this or make a decision in either direction. Who'd be a good person to assign? |
While assigning someone, allow me to put my two cents in on the direction. If we go with FQNs, we'll have |
ah, well, rustc_target-knower speaking |
I believe the TargetMetadata was introduced by @Noratrieb. I think importing it in all specs so all specs look consistent on this point is fine, but if @Noratrieb has a strong opinion on this another way I'm somewhat inclined to defer to her. |
I used an absolute path because I could not be bothered to add an additional import while touching like 300 files. |
I figured so! Yeah, @ken-matsui rebase this? |
d76640b
to
b660382
Compare
bitrot-prone (but probably actually fine to roll up) @bors r+ p=1 rollup |
… r=workingjubilee rustc_target: import TargetMetadata
…kingjubilee Rollup of 12 pull requests Successful merges: - rust-lang#136671 (Overhaul `rustc_middle::limits`) - rust-lang#136817 (Pattern Migration 2024: clean up and comment) - rust-lang#136844 (Use `const_error!` when possible) - rust-lang#136953 (rustc_target: import TargetMetadata) - rust-lang#137095 (Replace some u64 hashes with Hash64) - rust-lang#137100 (HIR analysis: Remove unnecessary abstraction over list of clauses) - rust-lang#137105 (Restrict DerefPure for Cow<T> impl to T = impl Clone, [impl Clone], str.) - rust-lang#137120 (Enable `relative-path-include-bytes-132203` rustdoc-ui test on Windows) - rust-lang#137125 (Re-add missing empty lines in the releases notes) - rust-lang#137140 (Fix const items not being allowed to be called `r#move` or `r#static`) - rust-lang#137145 (use add-core-stubs / minicore for a few more tests) - rust-lang#137149 (Remove SSE ABI from i586-pc-windows-msvc) r? `@ghost` `@rustbot` modify labels: rollup
☀️ Test successful - checks-actions |
Finished benchmarking commit (d5eb31c): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary -3.8%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (secondary -2.8%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 789.602s -> 789.735s (0.02%) |
No description provided.