Skip to content
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

Rollup of 6 pull requests #104495

Closed
wants to merge 49 commits into from
Closed

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Nov 16, 2022

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

Lukas Markeffsky and others added 30 commits October 12, 2022 18:39
Implement condvars for Windows

Adds 3 shims for Windows: `SleepConditionVariableSRW`, `WakeConditionVariable`, `WakeAllConditionVariable` to add support for condvars (which fixes rust-lang#2628).

Salvaged from what was removed from rust-lang#2231
README: Add macos cache deletion command
pthread: slight refactoring of how we access the sync object fields
@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 16, 2022
@Manishearth
Copy link
Member Author

@bors rollup=never

@Manishearth
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Nov 16, 2022

📌 Commit 8e72bb6c1e08ef7a5053c193951485c034580971 has been approved by Manishearth

It is now in the queue for this repository.

@klensy
Copy link
Contributor

klensy commented Nov 16, 2022

Something broken here: rollup reverts some dependency versions, but i can't find which PR do this.
Ahh, this one 8e72bb6.

@Manishearth
Copy link
Member Author

Yes, because the lockfile needed to be updated

remove HRTB from `[T]::is_sorted_by{,_key}`

Changes the signature of `[T]::is_sorted_by{,_key}` to match `[T]::binary_search_by{,_key}` and make code like rust-lang#53485 (comment) compile.

Tracking issue: rust-lang#53485

~~Do we need an ACP for something like this?~~ Edit: Filed ACP here: rust-lang/libs-team#121
…, r=davidtwco

Diagnostics `icu4x` based list formatting.

This adds a new kind of `DiagnosticArg` and add the ability to convert it to a `FluentValue::Custom`. When emitting fluent output, it makes use of `ListFormatter` from `icu4x` project to convert it to localized version of list following the fluent locale, as a kind of eager translation.

Tested locally with locales like `en`, `ja`, etc, and they work fine. <del>Though neither `zh-CN` nor `zh-Hans` works correctly, it seems they fallback to `und` locale somehow, emitting only comma-based list. I believe this is an internal issue of `icu4x` itself.</del>(Works fine after rust-lang#104047 (comment))

Would love to hear what others think.

r? `@davidtwco`
cc `@Manishearth`
update Miri

Not a huge sync, but there was a conflict and [josh](https://github.com/josh-project/josh/) seems to prefer those to be merged back ASAP.
@Manishearth
Copy link
Member Author

@bors r+

fixed the lockfile, idk where the intermediate one came from

@bors
Copy link
Contributor

bors commented Nov 16, 2022

📌 Commit e31f007 has been approved by Manishearth

It is now in the queue for this repository.

@klensy
Copy link
Contributor

klensy commented Nov 16, 2022

And now rollup description totally lies about it content. Maybe it's easier to rebuild it from scratch, instead of manually fixing stuff? IMHO

@bors
Copy link
Contributor

bors commented Nov 16, 2022

⌛ Testing commit e31f007 with merge a34eed603522e235b5fe4e11e300769443b60da2...

@Manishearth
Copy link
Member Author

@klensy I'd already crossed out the relevant entry in the description?

I usually rebuild from scratch, but in this case I've closed the tree and I didn't want to reopen just so that this last rollup can be remade.

And the lockfile update was a necessary manual change; I'd have had to do it even if I remade the rollup. It's just that the first time I made that commit I had run cargo check instead of x.py build which generated an incorrect lockfile. So my manual commit at 8e72bb6 wasn't the cause of the failure: it was just an incomplete fix.

@Mark-Simulacrum
Copy link
Member

Editing in-flight rollups is relatively painful for our infrastructure, which in some cases tries to parse out specific PRs from descriptions/commits, so it's best to avoid doing that.

@Manishearth
Copy link
Member Author

Ah, good to know!

@bors
Copy link
Contributor

bors commented Nov 16, 2022

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 16, 2022
@Manishearth
Copy link
Member Author

Manishearth commented Nov 16, 2022

Failure:

``` ---- [mir-opt] src/test/mir-opt/deref-patterns/string.rs stdout ---- 25 _7 = const false; // scope 0 at $DIR/string.rs:+3:9: +3:10 26 _6 = move _1; // scope 0 at $DIR/string.rs:+3:9: +3:10 27 _0 = const 4321_i32; // scope 1 at $DIR/string.rs:+3:14: +3:18 - drop(_6) -> [return: bb6, unwind: bb12]; // scope 0 at $DIR/string.rs:+3:17: +3:18 + drop(_6) -> bb6; // scope 0 at $DIR/string.rs:+3:17: +3:18 29 } 30 31 bb2: {

37 }
38
39 bb3: {

  •       _4 = <str as PartialEq>::eq(_3, const "a") -> [return: bb4, unwind: bb12]; // scope 0 at $DIR/string.rs:+2:14: +2:17
    
  •       _4 = <str as PartialEq>::eq(_3, const "a") -> bb4; // scope 0 at $DIR/string.rs:+2:14: +2:17
    

41 // mir::Constant
42 // + span: $DIR/string.rs:9:14: 9:17
43 // + literal: Const { ty: for<'a, 'b> fn(&'a str, &'b str) -> bool {::eq}, val: Value() }

52
53 bb5: {
54 _0 = const 1234_i32; // scope 0 at $DIR/string.rs:+2:22: +2:26

  •       goto -> bb10;                    // scope 0 at $DIR/string.rs:+2:22: +2:26
    
  •       goto -> bb9;                     // scope 0 at $DIR/string.rs:+2:22: +2:26
    

56 }
57
58 bb6: {

59 StorageDead(_6); // scope 0 at $DIR/string.rs:+3:17: +3:18

  •       goto -> bb10;                    // scope 0 at $DIR/string.rs:+3:17: +3:18
    
  •       goto -> bb9;                     // scope 0 at $DIR/string.rs:+3:17: +3:18
    

61 }
62
63 bb7: {

64 return; // scope 0 at $DIR/string.rs:+5:2: +5:2
65 }
66

  •   bb8 (cleanup): {
    
  •       resume;                          // scope 0 at $DIR/string.rs:+0:1: +5:2
    
  •   bb8: {
    
  •       drop(_1) -> bb7;                 // scope 0 at $DIR/string.rs:+5:1: +5:2
    

69 }
70
71 bb9: {

  •       drop(_1) -> [return: bb7, unwind: bb8]; // scope 0 at $DIR/string.rs:+5:1: +5:2
    
  •   }
    
  •   bb10: {
    
  •       switchInt(_7) -> [false: bb7, otherwise: bb9]; // scope 0 at $DIR/string.rs:+5:1: +5:2
    
  •   }
    
  •   bb11 (cleanup): {
    
  •       drop(_1) -> bb8;                 // scope 0 at $DIR/string.rs:+5:1: +5:2
    
  •   }
    
  •   bb12 (cleanup): {
    
  •       switchInt(_7) -> [false: bb8, otherwise: bb11]; // scope 0 at $DIR/string.rs:+5:1: +5:2
    
  •       switchInt(_7) -> [false: bb7, otherwise: bb8]; // scope 0 at $DIR/string.rs:+5:1: +5:2
    

85 }
86 }
87


</details>

@rust-log-analyzer
Copy link
Collaborator

The job test-various failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
   Compiling icu_provider_macros v1.0.0
[RUSTC-TIMING] regex test:false 4.811
   Compiling chalk-derive v0.87.0
[RUSTC-TIMING] displaydoc test:false 0.935
[RUSTC-TIMING] icu_provider_macros test:false 0.748
[RUSTC-TIMING] zerovec_derive test:false 1.669
   Compiling chalk-ir v0.87.0
[RUSTC-TIMING] gimli test:false 5.783
[RUSTC-TIMING] gimli test:false 5.783
[RUSTC-TIMING] zerofrom_derive test:false 2.324
   Compiling zerofrom v0.1.1
[RUSTC-TIMING] yoke_derive test:false 2.304
   Compiling thiserror v1.0.33
[RUSTC-TIMING] thiserror test:false 0.056
   Compiling fluent-syntax v0.11.0
   Compiling fluent-syntax v0.11.0
[RUSTC-TIMING] zerofrom test:false 0.110
   Compiling tracing v0.1.35
   Compiling tracing v0.1.35
[RUSTC-TIMING] zerofrom test:false 0.115
   Compiling tracing-subscriber v0.3.3
   Compiling thorin-dwp v0.3.0
[RUSTC-TIMING] fluent_syntax test:false 0.297
[RUSTC-TIMING] tracing test:false 0.272
---
[RUSTC-TIMING] zerovec test:false 1.089
[RUSTC-TIMING] rls_data test:false 0.928
   Compiling unic-langid-impl v0.9.1
[RUSTC-TIMING] tinystr test:false 0.194
   Compiling icu_locid v1.0.0
[RUSTC-TIMING] serde_json test:false 1.443
[RUSTC-TIMING] zerovec test:false 1.338
[RUSTC-TIMING] unic_langid_impl test:false 0.220
   Compiling unic-langid-macros-impl v0.9.1
---
   Compiling icu_provider_adapters v1.0.0
   Compiling icu_list v1.0.0
[RUSTC-TIMING] fluent_langneg test:false 0.170
[RUSTC-TIMING] intl_memoizer test:false 0.193
[RUSTC-TIMING] icu_locid test:false 1.087
[RUSTC-TIMING] fluent_langneg test:false 0.256
[RUSTC-TIMING] icu_provider test:false 0.696
[RUSTC-TIMING] intl_memoizer test:false 0.293
   Compiling rustc_baked_icu_data v0.0.0 (/checkout/compiler/rustc_baked_icu_data)
[RUSTC-TIMING] intl_pluralrules test:false 0.517
[RUSTC-TIMING] intl_pluralrules test:false 0.517
[RUSTC-TIMING] icu_list test:false 0.471
[RUSTC-TIMING] rustc_baked_icu_data test:false 0.377
[RUSTC-TIMING] icu_provider_adapters test:false 0.659
[RUSTC-TIMING] fluent_bundle test:false 0.603
   Compiling rustc_macros v0.1.0 (/checkout/compiler/rustc_macros)
[RUSTC-TIMING] fluent_bundle test:false 1.232
[RUSTC-TIMING] rustc_macros test:false 2.117
---
   Compiling tracing-attributes v0.1.22
[RUSTC-TIMING] displaydoc test:false 1.189
   Compiling icu_provider_macros v1.0.0
   Compiling chalk-derive v0.87.0
[RUSTC-TIMING] icu_provider_macros test:false 0.863
[RUSTC-TIMING] zerovec_derive test:false 2.658
[RUSTC-TIMING] thiserror_impl test:false 2.500
   Compiling thiserror v1.0.33
[RUSTC-TIMING] thiserror test:false 0.062
---
[RUSTC-TIMING] gimli test:false 10.683
   Compiling tracing-subscriber v0.3.3
[RUSTC-TIMING] fluent_syntax test:false 0.546
   Compiling thorin-dwp v0.3.0
[RUSTC-TIMING] yoke_derive test:false 4.263
[RUSTC-TIMING] zerofrom_derive test:false 4.519
   Compiling zerofrom v0.1.1
[RUSTC-TIMING] fluent_syntax test:false 0.797
[RUSTC-TIMING] fluent_syntax test:false 0.797
[RUSTC-TIMING] zerofrom test:false 0.134
[RUSTC-TIMING] zerofrom test:false 0.142
   Compiling tracing-tree v0.2.0
[RUSTC-TIMING] thorin test:false 1.932
   Compiling rustc_log v0.0.0 (/checkout/compiler/rustc_log)
[RUSTC-TIMING] object test:false 12.503
---
[RUSTC-TIMING] rls_data test:false 1.515
   Compiling unic-langid-impl v0.9.1
[RUSTC-TIMING] tinystr test:false 0.236
[RUSTC-TIMING] tinystr test:false 0.383
   Compiling icu_locid v1.0.0
   Compiling unic-langid-macros-impl v0.9.1
[RUSTC-TIMING] zerovec test:false 2.329
[RUSTC-TIMING] serde_json test:false 2.636
[RUSTC-TIMING] unic_langid_macros_impl test:false 0.723
---
[RUSTC-TIMING] fluent_langneg test:false 0.436
   Compiling fluent-bundle v0.15.2
[RUSTC-TIMING] intl_memoizer test:false 0.538
[RUSTC-TIMING] intl_pluralrules test:false 0.828
   Compiling rustc_baked_icu_data v0.0.0 (/checkout/compiler/rustc_baked_icu_data)
[RUSTC-TIMING] icu_provider test:false 1.350
[RUSTC-TIMING] intl_pluralrules test:false 1.409
[RUSTC-TIMING] icu_list test:false 1.038
[RUSTC-TIMING] icu_locid test:false 2.479
[RUSTC-TIMING] rustc_baked_icu_data test:false 0.739
   Compiling rustc_macros v0.1.0 (/checkout/compiler/rustc_macros)
   Compiling rustc_macros v0.1.0 (/checkout/compiler/rustc_macros)
[RUSTC-TIMING] icu_provider_adapters test:false 1.609
[RUSTC-TIMING] rustc_macros test:false 3.131
   Compiling rustc_index v0.0.0 (/checkout/compiler/rustc_index)
   Compiling rustc_data_structures v0.0.0 (/checkout/compiler/rustc_data_structures)
[RUSTC-TIMING] rustc_index test:false 0.739
---

failures:
Some tests failed in compiletest suite=mir-opt mode=mir-opt host=x86_64-unknown-linux-gnu target=wasm32-unknown-unknown

---- [mir-opt] src/test/mir-opt/deref-patterns/string.rs stdout ----
25         _7 = const false;                // scope 0 at $DIR/string.rs:+3:9: +3:10
26         _6 = move _1;                    // scope 0 at $DIR/string.rs:+3:9: +3:10
27         _0 = const 4321_i32;             // scope 1 at $DIR/string.rs:+3:14: +3:18
-         drop(_6) -> [return: bb6, unwind: bb12]; // scope 0 at $DIR/string.rs:+3:17: +3:18
+         drop(_6) -> bb6;                 // scope 0 at $DIR/string.rs:+3:17: +3:18
30 
31     bb2: {

37     }
37     }
38 
39     bb3: {
-         _4 = <str as PartialEq>::eq(_3, const "a") -> [return: bb4, unwind: bb12]; // scope 0 at $DIR/string.rs:+2:14: +2:17
+         _4 = <str as PartialEq>::eq(_3, const "a") -> bb4; // scope 0 at $DIR/string.rs:+2:14: +2:17
41                                          // mir::Constant
42                                          // + span: $DIR/string.rs:9:14: 9:17
43                                          // + literal: Const { ty: for<'a, 'b> fn(&'a str, &'b str) -> bool {<str as PartialEq>::eq}, val: Value(<ZST>) }
52 
53     bb5: {
53     bb5: {
54         _0 = const 1234_i32;             // scope 0 at $DIR/string.rs:+2:22: +2:26
-         goto -> bb10;                    // scope 0 at $DIR/string.rs:+2:22: +2:26
+         goto -> bb9;                     // scope 0 at $DIR/string.rs:+2:22: +2:26
57 
58     bb6: {


59         StorageDead(_6);                 // scope 0 at $DIR/string.rs:+3:17: +3:18
-         goto -> bb10;                    // scope 0 at $DIR/string.rs:+3:17: +3:18
+         goto -> bb9;                     // scope 0 at $DIR/string.rs:+3:17: +3:18
62 
63     bb7: {


64         return;                          // scope 0 at $DIR/string.rs:+5:2: +5:2
66 
66 
-     bb8 (cleanup): {
-         resume;                          // scope 0 at $DIR/string.rs:+0:1: +5:2
+     bb8: {
+         drop(_1) -> bb7;                 // scope 0 at $DIR/string.rs:+5:1: +5:2
70 
71     bb9: {


-         drop(_1) -> [return: bb7, unwind: bb8]; // scope 0 at $DIR/string.rs:+5:1: +5:2
- 
-     bb10: {
-     bb10: {
-         switchInt(_7) -> [false: bb7, otherwise: bb9]; // scope 0 at $DIR/string.rs:+5:1: +5:2
- 
- 
-     bb11 (cleanup): {
-         drop(_1) -> bb8;                 // scope 0 at $DIR/string.rs:+5:1: +5:2
- 
- 
-     bb12 (cleanup): {
-         switchInt(_7) -> [false: bb8, otherwise: bb11]; // scope 0 at $DIR/string.rs:+5:1: +5:2
+         switchInt(_7) -> [false: bb7, otherwise: bb8]; // scope 0 at $DIR/string.rs:+5:1: +5:2
86 }
87 


thread '[mir-opt] src/test/mir-opt/deref-patterns/string.rs' panicked at 'Actual MIR output differs from expected MIR output /checkout/src/test/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir', src/tools/compiletest/src/runtest.rs:3447:21


failures:
    [mir-opt] src/test/mir-opt/deref-patterns/string.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic rollup A PR which is a rollup S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.