1. 01 1月, 2022 1 次提交
  2. 20 12月, 2021 9 次提交
    • B
      Auto merge of #92041 - Aaron1011:remove-speculative-evaluation, r=jackh726 · 60f3bd78
      bors 提交于
      Remove 'speculative evaluation' of predicates
      
      Performing 'speculative evaluation' introduces caching bugs that
      cannot be fixed without invasive changes to projection.
      
      Hopefully, we can win back most of the performance lost by
      re-adding 'cache completion'
      
      Fixes #90662
      60f3bd78
    • B
      Auto merge of #91900 - pitaj:fix-91714, r=jyn514 · 940a97a9
      bors 提交于
      rustdoc: make `--passes` and `--no-defaults` have no effect
      
      Fixes #91714
      
      One potential issue is that currently there is no stable way to achieve `--document-hidden-items`. This affects test `issue-15347`.
      
      I also had to modify the tests `issue-42875` and `no-compiler-export`. Regardless of combinations of `--document-hidden-items` and `--document-private-items`, I was unable to get these to pass without the modifications. I left behind a comment noting the change.
      940a97a9
    • B
      Auto merge of #91844 - nnethercote:rm-ObligationCauseData-2, r=Mark-Simulacrum · ed7a2068
      bors 提交于
      Eliminate `ObligationCauseData`
      
      This makes `Obligation` two words bigger, but avoids allocating a lot of the time.
      
      I previously tried this in #73983 and it didn't help much, but local timings look more promising now.
      
      r? `@ghost`
      ed7a2068
    • N
      Eliminate `ObligationCauseData`. · f09b1fac
      Nicholas Nethercote 提交于
      This makes `Obligation` two words bigger, but avoids allocating a lot of
      the time.
      
      I previously tried this in #73983 and it didn't help much, but local
      timings look more promising now.
      f09b1fac
    • B
      Auto merge of #92106 - matthiaskrgr:rollup-zw6t1mu, r=matthiaskrgr · e95e084a
      bors 提交于
      Rollup of 4 pull requests
      
      Successful merges:
      
       - #91791 (Fix an ICE when lowering a float with missing exponent magnitude)
       - #91878 (Remove `in_band_lifetimes` from `rustc_infer`)
       - #91895 (Remove `in_band_lifetimes` for `rustc_monomorphize`)
       - #92029 (Explicitly set no ELF flags for .rustc section)
      
      Failed merges:
      
      r? `@ghost`
      `@rustbot` modify labels: rollup
      e95e084a
    • M
      Rollup merge of #92029 - nikic:section-flags-fix, r=davidtwco · 9415c67a
      Matthias Krüger 提交于
      Explicitly set no ELF flags for .rustc section
      
      For a data section, the object crate will set the SHF_ALLOC by default, which is exactly what we don't want. Explicitly set sh_flags to zero to avoid this.
      
      I checked with `objdump -h` that this produces the right flags for ELF.
      
      Fixes #92013.
      9415c67a
    • M
      Rollup merge of #91895 - pitaj:91867-monomorphize, r=Aaron1011 · fba0d04d
      Matthias Krüger 提交于
      Remove `in_band_lifetimes` for `rustc_monomorphize`
      
      #91867
      fba0d04d
    • M
      Rollup merge of #91878 - LegionMammal978:less-inband-infer, r=Aaron1011 · d576f7d4
      Matthias Krüger 提交于
      Remove `in_band_lifetimes` from `rustc_infer`
      
      See #91867 for more information.
      
      This crate actually had a typo `'ctx` in one of its functions:
      ```diff
      -pub fn same_type_modulo_infer(a: Ty<'tcx>, b: Ty<'ctx>) -> bool {
      +pub fn same_type_modulo_infer<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
      ```
      Also, I wasn't entirely sure about the lifetimes in `suggest_new_region_bound`:
      ```diff
       pub fn suggest_new_region_bound(
      -    tcx: TyCtxt<'tcx>,
      +    tcx: TyCtxt<'_>,
           err: &mut DiagnosticBuilder<'_>,
           fn_returns: Vec<&rustc_hir::Ty<'_>>,
      ```
      Should all of those lifetimes really be distinct?
      d576f7d4
    • M
      Rollup merge of #91791 - terrarier2111:fix-float-ice, r=nagisa · c088e509
      Matthias Krüger 提交于
      Fix an ICE when lowering a float with missing exponent magnitude
      
      This fixes: https://github.com/rust-lang/rust/issues/91434
      c088e509
  3. 19 12月, 2021 27 次提交
  4. 18 12月, 2021 3 次提交
    • A
      Update example code for Vec::splice to change the length · 574bc677
      ajtribick 提交于
      574bc677
    • B
      Auto merge of #92064 - matthiaskrgr:rollup-tgj2pai, r=matthiaskrgr · d3848cb6
      bors 提交于
      Rollup of 7 pull requests
      
      Successful merges:
      
       - #91858 (pass -Wl,-z,origin to set DF_ORIGIN when using rpath)
       - #91923 (Remove `in_band_lifetimes` from `rustc_query_impl`)
       - #91925 (Remove `in_band_lifetimes` from `rustc_privacy`)
       - #91977 (Clean up search code and unify function returned values)
       - #92018 (Fix typo in "new region bound" suggestion)
       - #92022 (Eliminate duplicate codes of expected_found_bool)
       - #92032 (hir: Do not introduce dummy type names for `extern` blocks in def paths)
      
      Failed merges:
      
      r? `@ghost`
      `@rustbot` modify labels: rollup
      d3848cb6
    • M
      Rollup merge of #92050 - r00ster91:patch-5, r=camelid · 1ac1f24d
      Matthias Krüger 提交于
      Add a space and 2 grave accents
      
      I only noticed this because I have this implementation copy pasted in some places in my code and I really can't wait for this to be stabilized...
      1ac1f24d