- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
          Register ~const preds for Deref adjustments in HIR typeck
          #132275
        
          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
Conversation
| Haven't looked at the code closely, but this could probably use a minicore test if possible. | 
7612b8d    to
    14a6865      
    Compare
  
    | I fixed up the existing minicore, moved it to an auxiliary dependency, so we can start adding real tests based off of that minicore that exercise its behavior. | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
14a6865    to
    d8ea700      
    Compare
  
    d8ea700    to
    025207d      
    Compare
  
    | ☔ The latest upstream changes (presumably #132301) made this pull request unmergeable. Please resolve the merge conflicts. | 
025207d    to
    490b1dd      
    Compare
  
    490b1dd    to
    8ed8f22      
    Compare
  
    | @rustbot ready | 
| @bors r+ rollup | 
…ee1-dead Register `~const` preds for `Deref` adjustments in HIR typeck This doesn't *do* anything yet, since `Deref` and `DerefMut` aren't constified, and we explicitly don't error on calling non-const trait methods in HIR yet -- presumably that will wait until std is re-constified. But I'm confident this logic is correct, and this (afaict?) is the only major hole left in enforcing `~const` in HIR typeck. r? fee1-dead
…kingjubilee Rollup of 15 pull requests Successful merges: - rust-lang#129329 (Implement `From<&mut {slice}>` for `Box/Rc/Arc<{slice}>`) - rust-lang#131377 (Add LowerExp and UpperExp implementations to NonZero) - rust-lang#132275 (Register `~const` preds for `Deref` adjustments in HIR typeck) - rust-lang#132393 (Docs: added brief colon explanation) - rust-lang#132437 (coverage: Regression test for inlining into an uninstrumented crate) - rust-lang#132499 (unicode_data.rs: show command for generating file) - rust-lang#132503 (better test for const HashMap; remove const_hash leftovers) - rust-lang#132520 (NFC add known bug nr to test) - rust-lang#132522 (make codegen help output more consistent) - rust-lang#132523 (Added regression test for generics index out of bounds) - rust-lang#132528 (Use `*_opt` typeck results fns to not ICE in fallback suggestion) - rust-lang#132537 (PassWrapper: adapt for llvm/llvm-project@5445edb5d) - rust-lang#132540 (Do not format generic consts) - rust-lang#132543 (add and update some crashtests) - rust-lang#132550 (compiler: Continue introducing rustc_abi to the compiler) r? `@ghost` `@rustbot` modify labels: rollup
| failed in #132551 (comment) @bors r- Uh can we get a  | 
Register `~const` preds for `Deref` adjustments in HIR typeck This doesn't *do* anything yet, since `Deref` and `DerefMut` aren't constified, and we explicitly don't error on calling non-const trait methods in HIR yet -- presumably that will wait until std is re-constified. But I'm confident this logic is correct, and this (afaict?) is the only major hole left in enforcing `~const` in HIR typeck. r? fee1-dead try-job: aarch64-apple
| ☀️ Try build successful - checks-actions | 
| cool, looks like i was just missing a  | 
b9bab18    to
    d860c8b      
    Compare
  
    | @bors rollup=maybe | 
| :( looks like there's still a conflict | 
| @bors r- | 
| ☔ The latest upstream changes (presumably #132581) made this pull request unmergeable. Please resolve the merge conflicts. | 
d860c8b    to
    e3bd6b2      
    Compare
  
    | re-rebased @bors r=fee1-dead | 
| ☀️ Test successful - checks-actions | 
| Finished benchmarking commit (432972c): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise. 
 Max RSS (memory usage)Results (secondary -2.6%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment. 
 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: 779.908s -> 777.534s (-0.30%) | 
This doesn't do anything yet, since
DerefandDerefMutaren't constified, and we explicitly don't error on calling non-const trait methods in HIR yet -- presumably that will wait until std is re-constified. But I'm confident this logic is correct, and this (afaict?) is the only major hole left in enforcing~constin HIR typeck.r? fee1-dead