Skip to content

Conversation

@dianqk
Copy link
Member

@dianqk dianqk commented Nov 3, 2025

r? @ghost

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 3, 2025
@rust-log-analyzer
Copy link
Collaborator

The job aarch64-gnu-llvm-20-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
   Compiling icu_locale_core v2.0.0
error[E0308]: mismatched types
   --> compiler/rustc_span/src/source_map.rs:995:26
    |
995 |         if (!forwards && end_index == usize::MIN) || (forwards && start_index == usize::MAX) {
    |             ---------    ^^^^^^^^^ expected `bool`, found `usize`
    |             |
    |             expected because this is `bool`

error[E0308]: mismatched types
   --> compiler/rustc_span/src/source_map.rs:995:39
    |
973 |     #[instrument(skip(self, sp))]
    |     ----------------------------- expected because this is `bool`
...
995 |         if (!forwards && end_index == usize::MIN) || (forwards && start_index == usize::MAX) {
    |                                       ^^^^^^^^^^ expected `bool`, found `usize`

error[E0308]: mismatched types
   --> compiler/rustc_span/src/source_map.rs:995:67
    |
995 |         if (!forwards && end_index == usize::MIN) || (forwards && start_index == usize::MAX) {
    |                                                       --------    ^^^^^^^^^^^ expected `bool`, found `usize`
    |                                                       |
    |                                                       expected because this is `bool`

error[E0308]: mismatched types
   --> compiler/rustc_span/src/source_map.rs:995:82
    |
973 |     #[instrument(skip(self, sp))]
    |     ----------------------------- expected because this is `bool`
...
995 |         if (!forwards && end_index == usize::MIN) || (forwards && start_index == usize::MAX) {
    |                                                                                  ^^^^^^^^^^ expected `bool`, found `usize`

error[E0308]: mismatched types
    --> compiler/rustc_span/src/source_map.rs:1003:39
     |
 973 |     #[instrument(skip(self, sp))]
     |     ----------------------------- expected because this is `bool`
...
1003 |         if start_index > end_index || end_index > source_len - 1 {
     |                                       ^^^^^^^^^ expected `bool`, found `usize`

error[E0308]: mismatched types
    --> compiler/rustc_span/src/source_map.rs:1003:51
     |
 973 |     #[instrument(skip(self, sp))]
     |     ----------------------------- expected because this is `bool`
...
1003 |         if start_index > end_index || end_index > source_len - 1 {
     |                                                   ^^^^^^^^^^ expected `bool`, found `usize`

error[E0369]: cannot subtract `{integer}` from `bool`
    --> compiler/rustc_span/src/source_map.rs:1003:62
     |
 973 |     #[instrument(skip(self, sp))]
     |     ----------------------------- bool
...
1003 |         if start_index > end_index || end_index > source_len - 1 {
     |                                                              ^ - {integer}

[RUSTC-TIMING] rustc_data_structures test:false 6.343
   Compiling ppv-lite86 v0.2.21
[RUSTC-TIMING] ppv_lite86 test:false 0.495
   Compiling unic-langid v0.9.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants