-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
only return used dependencies in crate_dependencies_in_postorder
#125493
Conversation
I think the |
ok I'll look into that @rustbot author |
@petrochenkov Right, good spot. These queries and code could use some comments and renames to clarify these behaviors. @rustbot ready Still would like to have tests :/ |
All direct and indirect users of |
crate_dependencies_in_postorder
crate_dependencies_in_postorder
crate_dependencies_in_postorder
Some changes occurred in run-make tests. cc @jieyouxu |
For the life of me I can't wrestle compiletest annotations to make a test and may be missing something obvious that oli/vadim would see. Plan B: I pushed a run-make test to actually reproduce the ICE. |
I couldn't get a UI test to work either so I think a run-make test is fine :3 Might be related to -L flags, but I didn't dig very deep. |
remove unneeded extern crate in rmake test Cleanup requested in rust-lang#125493 (comment) r? jieyouxu `@bors` rollup=always
remove unneeded extern crate in rmake test Cleanup requested in rust-lang#125493 (comment) r? jieyouxu ``@bors`` rollup=always
Rollup merge of rust-lang#125715 - lqd:rmake-cleanup, r=jieyouxu remove unneeded extern crate in rmake test Cleanup requested in rust-lang#125493 (comment) r? jieyouxu ``@bors`` rollup=always
The simple-raytracer benchmark of cg_clif is another reproducer for this. |
r? @petrochenkov Instead of reverting #124976 (#124976 (comment)). |
@petrochenkov I don't think this PR fixes all open issues |
Ah, okay, then let's revert #124976 too (at least for beta). |
@petrochenkov I won't have a lot of time to analyze and fix the other issues in the next few days. So I feel it'd be safer to:
what do you think? (but I can tell you that reverting the same commits as I did in ad545ac makes the ICEs from #126021 disappear. I can't reproduce the exact same context, and am not sure about correctness here, e.g. it seems likely the indices could still be in-bounds but wrong) |
Until I hear back from vadim: @bors r- |
Revert "use `tcx.used_crates(())` more" before it reaches beta There are more open issues caused by rust-lang#124976 than will be fixed by rust-lang#125493 alone. The beta cut is soon, so let's revert it and buy some time to analyze and fix these issues in our own time. fixes rust-lang#125474 fixes rust-lang#125484 fixes rust-lang#125646 fixes rust-lang#125707 fixes rust-lang#126066 fixes rust-lang#125934 fixes rust-lang#126021 r? `@petrochenkov` `@bors` p=1
Revert "use `tcx.used_crates(())` more" before it reaches beta There are more open issues caused by rust-lang#124976 than will be fixed by rust-lang#125493 alone. The beta cut is soon, so let's revert it and buy some time to analyze and fix these issues in our own time. fixes rust-lang#125474 fixes rust-lang#125484 fixes rust-lang#125646 fixes rust-lang#125707 fixes rust-lang#126066 fixes rust-lang#125934 fixes rust-lang#126021 r? ``@petrochenkov`` ``@bors`` p=1
Revert "use `tcx.used_crates(())` more" before it reaches beta There are more open issues caused by rust-lang#124976 than will be fixed by rust-lang#125493 alone. The beta cut is soon, so let's revert it and buy some time to analyze and fix these issues in our own time. fixes rust-lang#125474 fixes rust-lang#125484 fixes rust-lang#125646 fixes rust-lang#125707 fixes rust-lang#126066 fixes rust-lang#125934 fixes rust-lang#126021 r? `@petrochenkov` `@bors` p=1
☔ The latest upstream changes (presumably #126097) made this pull request unmergeable. Please resolve the merge conflicts. |
Revert "use `tcx.used_crates(())` more" before it reaches beta There are more open issues caused by rust-lang#124976 than will be fixed by rust-lang#125493 alone. The beta cut is soon, so let's revert it and buy some time to analyze and fix these issues in our own time. fixes rust-lang#125474 fixes rust-lang#125484 fixes rust-lang#125646 fixes rust-lang#125707 fixes rust-lang#126066 fixes rust-lang#125934 fixes rust-lang#126021 r? `@petrochenkov` `@bors` p=1
|
oops wrong ping, meant to ping @petrochenkov :D |
We did the revert, and we’ll need part of this PR when we want to reland the original changes |
PR #124976 made use of
used_crates
and not all crates including speculatively loaded. This apparently broke some cases of trying to link (e.g. with upstream rust crates) which seems to expect all crates instead by doing index-based accesses in now-different arrays, and caused ICEs #125474 and #125484.We have 3 repros:
Instant
type with thetime
crate. #125484 (comment). I don't know what's going there, but this PR fixes it. The collision may be incidental.time
: repro from ICE when usingInstant
type with thetime
crate. #125484 (comment). Has proc-macros and IIUC name collisions, so it could be a mix between the above two.These ICEs are fixed by this PR BUT I can't get compiletest to emit the command line I'm seeing in the repros, with neither of the 2 MCVEs. Naively using aux-builds and so on doesn't reproduce the ICE. (It's also incredibly hard to make it show the command used to build the aux-build files). So I had to use a run-make test instead, in order to have at least one test in this PR.
r? @oli-obk as #124976's reviewer or @petrochenkov as #124976's author
fixes #125474
fixes #125484
fixes #125646
fixes #125707