-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Prepare revert of 144013 #144172
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
Prepare revert of 144013 #144172
Conversation
…ocal" This reverts commit 998df3a.
@bors r+ |
I can't seem to reduce #144168, the big and weird macros make it hard. It looks like this will do it, but it does not.: const _: () = {
let x= 10;
};
const _: () = {
let x= 10;
}; I suspect this has something to do with this, but I'm not sure. let key = BindingKey::new_disambiguated(ident, ns, || {
(module.0.0.lazy_resolutions.borrow().len() + 1).try_into().unwrap()
}); |
The exact repro is subtle (you can have many different kinds of errors with slightly different code) and seems to involve const eval failing in a certain manner, and interacting with macros, failing imports, and glob imports. It's not that hard though. macro_rules! impl_for_transmute_from {
() => {
const _: () = {};
};
}
mod impls {
use super::*;
impl_for_transmute_from!();
impl_for_transmute_from!();
const _: () = todo!();
const _: () = todo!();
const _: () = todo!();
const _: () = todo!();
const _: () = todo!();
}
use X as Y;
use Z as W;
const _: () = todo!(); I'll add it as a test later today (in this PR if it hasn't landed, in another if it has), and don't want to delay this one too much to ensure it hits nightly today. Bumping prio to avoid rollups, @bors p=6 |
Oh wow, I would never have come up with that. What are some general tips for minimizing examples? Besides having a good understanding of the compiler :). |
I'd never come up with that either, it's just reduced from the crate instead of trying to recreate it 😅. For tips, maybe https://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/ (and some understanding the compiler is better for recreating MCVEs from scratch, rather than minimizing examples, that's just |
This is likely caused by every resolution in |
So |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing f63685d (parent) -> 0d95920 (this PR) Test differencesShow 4 test diffs4 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 0d9592026226f5a667a0da60c13b955e0b486a07 --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (0d95920): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 2.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 465.551s -> 465.968s (0.09%) |
Add non-regression test for rust-lang#144168 This is a non-regression test for issue rust-lang#144168, reduced from `zerocopy`, to go with rust-lang#144172 since it had no test yet, and we didn't want to delay it from landing. Closes rust-lang#144168 I've checked that the test does fail without rust-lang#144172.
Add non-regression test for rust-lang#144168 This is a non-regression test for issue rust-lang#144168, reduced from `zerocopy`, to go with rust-lang#144172 since it had no test yet, and we didn't want to delay it from landing. Closes rust-lang#144168 I've checked that the test does fail without rust-lang#144172.
This is a possible revert for #144013 causing issue #144168 (imo p-crit) to give us time to figure out a correct fix for #144013 without pressure. Feel free to close if it's an easy fix instead: r? @petrochenkov