Skip to content

Installation on OpenBSD fails #15279

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

Closed
andinus opened this issue Jul 14, 2023 · 1 comment
Closed

Installation on OpenBSD fails #15279

andinus opened this issue Jul 14, 2023 · 1 comment
Labels
C-bug Category: bug

Comments

@andinus
Copy link

andinus commented Jul 14, 2023

Seems to be caused by usage of is_some_and in ide-assists. Installing rust-analyzer from 2023-06-26 tag works fine, it's just this method usage (in 2 files) that causes this breakage.

   Compiling ide-assists v0.0.0 (/home/andinus/dev/other/rust-analyzer/crates/ide-assists)            
error[E0658]: use of unstable library feature 'is_some_and'                                           
    --> crates/ide-assists/src/handlers/extract_function.rs:1364:50               
     |                              
1364 |     let insert_comma = parent_match_arm.as_ref().is_some_and(|it| it.comma_token().is_none()); 
     |                                                  ^^^^^^^^^^^                                   
     |                        
     = note: see issue #93050 <https://github.com/rust-lang/rust/issues/93050> for more information   
                                                   
For more information about this error, try `rustc --explain E0658`.                                                                                                                                         
error: could not compile `ide-assists` due to previous error                    
warning: build failed, waiting for other jobs to finish...                                            
error: failed to compile `rust-analyzer v0.0.0 (/home/andinus/dev/other/rust-analyzer/crates/rust-analyzer)`, intermediate artifacts can be found at `/home/andinus/dev/other/rust-analyzer/target`         
Error: install server                                                                                 
                                                                                                      
Caused by:                                                                                            
    command exited with non-zero code `cargo install --path crates/rust-analyzer --locked --force --features force-always-assert`: 101   

rustc version: rustc 1.68.0 (2c8cc3432 2023-03-06) (built from a source tarball)

@andinus andinus added the C-bug Category: bug label Jul 14, 2023
@lnicola
Copy link
Member

lnicola commented Jul 14, 2023

We don't support building with old compilers, that function was added in 1.70.

bors added a commit that referenced this issue Jul 16, 2023
minor: Bump rust-version to 1.70 and use the workspace one in xtask

CC #15279
@Veykril Veykril closed this as completed Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants