- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Use let chains in the new solver #143066
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
          
     Merged
      
      
    
                
     Merged
            
            Use let chains in the new solver #143066
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    
              
                    compiler-errors
  
              
              commented
              
                  
                    Jun 26, 2025 
                  
              
              
            
            
              
                    compiler-errors
  
              
              commented
              
                  
                    Jun 26, 2025 
                  
              
              
            
            
        
          
                compiler/rustc_next_trait_solver/src/solve/normalizes_to/mod.rs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      5833e55    to
    ed388de      
    Compare
  
    
    
  compiler-errors 
      added a commit
        to compiler-errors/rust
      that referenced
      this pull request
    
      Jun 27, 2025 
    
    
      
  
    
      
    
  
…, r=compiler-errors Fix some fixmes that were waiting for let chains Was inspired by looking at rust-lang#143066 and spotting two fixmes that were missed, so... r? `@compiler-errors` 😅 Yay, let chains!
              
                    lcnr
  
              
              reviewed
              
                  
                    Jun 27, 2025 
                  
              
              
            
            
        
          
                compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs
          
            Show resolved
            Hide resolved
        
      
              
                    lcnr
  
              
              reviewed
              
                  
                    Jun 27, 2025 
                  
              
              
            
            
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with or without converting the relevant functions to if <let-chain> { value } else { value } instead of an explicit early return
ed388de    to
    66ea349      
    Compare
  
    | @bors r+ rollup | 
    
  GuillaumeGomez 
      added a commit
        to GuillaumeGomez/rust
      that referenced
      this pull request
    
      Jun 29, 2025 
    
    
      
  
    
      
    
  
…r=lcnr Use let chains in the new solver Self-explanatory Let chains are stable as of today r? lcnr
    
  bors 
      added a commit
      that referenced
      this pull request
    
      Jun 29, 2025 
    
    
      
  
    
      
    
  
Rollup of 7 pull requests Successful merges: - #142429 (`tests/ui`: A New Order [13/N]) - #143066 (Use let chains in the new solver) - #143156 (inherit `#[align]` from trait method prototypes) - #143176 (fix typos and improve clarity in documentation) - #143187 (Add my work email to mailmap) - #143194 (fix bitcast of single-element SIMD vectors) - #143199 (Re-disable `tests/run-make/short-ice` on Windows MSVC again) r? `@ghost` `@rustbot` modify labels: rollup
    
  matthiaskrgr 
      added a commit
        to matthiaskrgr/rust
      that referenced
      this pull request
    
      Jun 30, 2025 
    
    
      
  
    
      
    
  
…r=lcnr Use let chains in the new solver Self-explanatory Let chains are stable as of today r? lcnr
    
  bors 
      added a commit
      that referenced
      this pull request
    
      Jun 30, 2025 
    
    
      
  
    
      
    
  
Rollup of 7 pull requests Successful merges: - #142429 (`tests/ui`: A New Order [13/N]) - #143066 (Use let chains in the new solver) - #143156 (inherit `#[align]` from trait method prototypes) - #143176 (fix typos and improve clarity in documentation) - #143187 (Add my work email to mailmap) - #143199 (Re-disable `tests/run-make/short-ice` on Windows MSVC again) - #143219 (Show auto trait and blanket impls for `!`) r? `@ghost` `@rustbot` modify labels: rollup
    
  bors 
      added a commit
      that referenced
      this pull request
    
      Jun 30, 2025 
    
    
      
  
    
      
    
  
Rollup of 14 pull requests Successful merges: - #142429 (`tests/ui`: A New Order [13/N]) - #142514 (Miri: handling of SNaN inputs in `f*::pow` operations) - #143066 (Use let chains in the new solver) - #143090 (Workaround for memory unsafety in third party DLLs) - #143118 (`tests/ui`: A New Order [15/N]) - #143159 (Do not freshen `ReError`) - #143168 (`tests/ui`: A New Order [16/N]) - #143176 (fix typos and improve clarity in documentation) - #143187 (Add my work email to mailmap) - #143190 (Use the `new` method for `BasicBlockData` and `Statement`) - #143195 (`tests/ui`: A New Order [17/N]) - #143196 (Port #[link_section] to the new attribute parsing infrastructure) - #143199 (Re-disable `tests/run-make/short-ice` on Windows MSVC again) - #143219 (Show auto trait and blanket impls for `!`) r? `@ghost` `@rustbot` modify labels: rollup
    
  rust-timer 
      added a commit
      that referenced
      this pull request
    
      Jun 30, 2025 
    
    
      
  
    
      
    
  
Rollup merge of #143066 - compiler-errors:let-chain-solver, r=lcnr Use let chains in the new solver Self-explanatory Let chains are stable as of today r? lcnr
    
  github-actions bot
      pushed a commit
        to rust-lang/miri
      that referenced
      this pull request
    
      Jul 1, 2025 
    
    
      
  
    
      
    
  
Rollup of 14 pull requests Successful merges: - rust-lang/rust#142429 (`tests/ui`: A New Order [13/N]) - rust-lang/rust#142514 (Miri: handling of SNaN inputs in `f*::pow` operations) - rust-lang/rust#143066 (Use let chains in the new solver) - rust-lang/rust#143090 (Workaround for memory unsafety in third party DLLs) - rust-lang/rust#143118 (`tests/ui`: A New Order [15/N]) - rust-lang/rust#143159 (Do not freshen `ReError`) - rust-lang/rust#143168 (`tests/ui`: A New Order [16/N]) - rust-lang/rust#143176 (fix typos and improve clarity in documentation) - rust-lang/rust#143187 (Add my work email to mailmap) - rust-lang/rust#143190 (Use the `new` method for `BasicBlockData` and `Statement`) - rust-lang/rust#143195 (`tests/ui`: A New Order [17/N]) - rust-lang/rust#143196 (Port #[link_section] to the new attribute parsing infrastructure) - rust-lang/rust#143199 (Re-disable `tests/run-make/short-ice` on Windows MSVC again) - rust-lang/rust#143219 (Show auto trait and blanket impls for `!`) r? `@ghost` `@rustbot` modify labels: rollup
    
  Kobzol 
      pushed a commit
        to Kobzol/stdarch
      that referenced
      this pull request
    
      Jul 2, 2025 
    
    
      
  
    
      
    
  
Rollup of 14 pull requests Successful merges: - rust-lang/rust#142429 (`tests/ui`: A New Order [13/N]) - rust-lang/rust#142514 (Miri: handling of SNaN inputs in `f*::pow` operations) - rust-lang/rust#143066 (Use let chains in the new solver) - rust-lang/rust#143090 (Workaround for memory unsafety in third party DLLs) - rust-lang/rust#143118 (`tests/ui`: A New Order [15/N]) - rust-lang/rust#143159 (Do not freshen `ReError`) - rust-lang/rust#143168 (`tests/ui`: A New Order [16/N]) - rust-lang/rust#143176 (fix typos and improve clarity in documentation) - rust-lang/rust#143187 (Add my work email to mailmap) - rust-lang/rust#143190 (Use the `new` method for `BasicBlockData` and `Statement`) - rust-lang/rust#143195 (`tests/ui`: A New Order [17/N]) - rust-lang/rust#143196 (Port #[link_section] to the new attribute parsing infrastructure) - rust-lang/rust#143199 (Re-disable `tests/run-make/short-ice` on Windows MSVC again) - rust-lang/rust#143219 (Show auto trait and blanket impls for `!`) r? `@ghost` `@rustbot` modify labels: rollup
    
  github-actions bot
      pushed a commit
        to rust-lang/rustc-dev-guide
      that referenced
      this pull request
    
      Jul 3, 2025 
    
    
      
  
    
      
    
  
Rollup of 14 pull requests Successful merges: - rust-lang/rust#142429 (`tests/ui`: A New Order [13/N]) - rust-lang/rust#142514 (Miri: handling of SNaN inputs in `f*::pow` operations) - rust-lang/rust#143066 (Use let chains in the new solver) - rust-lang/rust#143090 (Workaround for memory unsafety in third party DLLs) - rust-lang/rust#143118 (`tests/ui`: A New Order [15/N]) - rust-lang/rust#143159 (Do not freshen `ReError`) - rust-lang/rust#143168 (`tests/ui`: A New Order [16/N]) - rust-lang/rust#143176 (fix typos and improve clarity in documentation) - rust-lang/rust#143187 (Add my work email to mailmap) - rust-lang/rust#143190 (Use the `new` method for `BasicBlockData` and `Statement`) - rust-lang/rust#143195 (`tests/ui`: A New Order [17/N]) - rust-lang/rust#143196 (Port #[link_section] to the new attribute parsing infrastructure) - rust-lang/rust#143199 (Re-disable `tests/run-make/short-ice` on Windows MSVC again) - rust-lang/rust#143219 (Show auto trait and blanket impls for `!`) r? `@ghost` `@rustbot` modify labels: rollup
    
  github-actions bot
      pushed a commit
        to model-checking/verify-rust-std
      that referenced
      this pull request
    
      Jul 4, 2025 
    
    
      
  
    
      
    
  
Rollup of 14 pull requests Successful merges: - rust-lang#142429 (`tests/ui`: A New Order [13/N]) - rust-lang#142514 (Miri: handling of SNaN inputs in `f*::pow` operations) - rust-lang#143066 (Use let chains in the new solver) - rust-lang#143090 (Workaround for memory unsafety in third party DLLs) - rust-lang#143118 (`tests/ui`: A New Order [15/N]) - rust-lang#143159 (Do not freshen `ReError`) - rust-lang#143168 (`tests/ui`: A New Order [16/N]) - rust-lang#143176 (fix typos and improve clarity in documentation) - rust-lang#143187 (Add my work email to mailmap) - rust-lang#143190 (Use the `new` method for `BasicBlockData` and `Statement`) - rust-lang#143195 (`tests/ui`: A New Order [17/N]) - rust-lang#143196 (Port #[link_section] to the new attribute parsing infrastructure) - rust-lang#143199 (Re-disable `tests/run-make/short-ice` on Windows MSVC again) - rust-lang#143219 (Show auto trait and blanket impls for `!`) r? `@ghost` `@rustbot` modify labels: rollup
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      Labels
      
    S-waiting-on-bors
  Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 
  
    T-compiler
  Relevant to the compiler team, which will review and decide on the PR/issue. 
  
    WG-trait-system-refactor
  The Rustc Trait System Refactor Initiative (-Znext-solver) 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Self-explanatory
Let chains are stable as of today
r? lcnr