1. 24 4月, 2021 1 次提交
  2. 23 4月, 2021 15 次提交
    • B
      Auto merge of #84445 - jyn514:hidden, r=<try> · 9a352326
      bors 提交于
      rustdoc: Hide `#text` in doc-tests
      
      Since `#![attr]` and `#[attr]` are the only valid syntax that start with `#`, we can just special case those two tokens.
      
      Fixes https://github.com/rust-lang/rust/issues/83284.
      9a352326
    • B
      Auto merge of #83425 - durin42:llvm-update, r=nagisa · 236580bc
      bors 提交于
      RustWrapper: work around unification of diagnostic handlers
      
      This lets me build against llvm/main as of March 23rd, 2021. I'm not
      entirely sure this is _correct_, but it appears to be functionally
      identical to what was done in LLVM: existing callsites of
      setInlineAsmDiagnosticHandler were moved to SetDiagnosticHandler() on
      the context object, which we already set up in both places that we
      called setInlineAsmDiagnosticHandler().
      236580bc
    • B
      Auto merge of #82585 - TrolledWoods:master, r=dtolnay · cb81dc53
      bors 提交于
      Added CharIndices::offset function
      
      The CharIndices iterator has a field internally called front_offset, that I think would be very useful to have access to.
      
      You can already do something like ``char_indices.next().map(|(offset, _)| offset)``, but that is wordy, in addition to not handling the case where the iterator has ended, where you'd want the offset to be equal to the length.
      
      I'm very new to the open source world and the rust repository, so I'm sorry if I missed a step or did something weird.
      cb81dc53
    • B
      Auto merge of #78681 - m-ou-se:binary-heap-retain, r=Amanieu · f4a8cf0a
      bors 提交于
      Improve rebuilding behaviour of BinaryHeap::retain.
      
      This changes `BinaryHeap::retain` such that it doesn't always fully rebuild the heap, but only rebuilds the parts for which that's necessary.
      
      This makes use of the fact that retain gives out `&T`s and not `&mut T`s.
      
      Retaining every element or removing only elements at the end results in no rebuilding at all. Retaining most elements results in only reordering the elements that got moved (those after the first removed element), using the same logic as was already used for `append`.
      
      cc `@KodrAus` `@sfackler` - We briefly discussed this possibility in the meeting last week while we talked about stabilization of this function (#71503).
      f4a8cf0a
    • J
      rustdoc: Hide `#text` in doc-tests · af6c3201
      Joshua Nelson 提交于
      Since `#![attr]` and `#[attr]` are the only valid syntax that start with `#`, we can just special case those two tokens.
      af6c3201
    • B
      Auto merge of #84420 - workingjubilee:microvec, r=Mark-Simulacrum · 7f4afdf0
      bors 提交于
      Use arrayvec 0.7, drop smallvec 0.6
      
      With the arrival of min const generics, many alt-vec libraries have
      updated to use it in some way and arrayvec is no exception. Use the
      latest with minor refactoring.
      
      Also, rustc_workspace_hack is the only user of smallvec 0.6 in the
      entire tree, so drop it.
      7f4afdf0
    • A
      RustWrapper: work around unification of diagnostic handlers · fc2a74c6
      Augie Fackler 提交于
      This lets me build against llvm/main as of March 23rd, 2021. I'm not
      entirely sure this is _correct_, but it appears to be functionally
      identical to what was done in LLVM: existing callsites of
      setInlineAsmDiagnosticHandler were moved to SetDiagnosticHandler() on
      the context object, which we already set up in both places that we
      called setInlineAsmDiagnosticHandler().
      fc2a74c6
    • B
      Auto merge of #84440 - Dylan-DPC:rollup-0xjb8oi, r=Dylan-DPC · 5f1aeb52
      bors 提交于
      Rollup of 7 pull requests
      
      Successful merges:
      
       - #84343 (Remove `ScopeTree::closure_tree`)
       - #84376 (Uses flex to fix formatting of h1 at any width)
       - #84377 (Followup to #83944)
       - #84396 (Update LLVM submodule)
       - #84402 (Move `sys_common::rwlock::StaticRWLock` etc. to `sys::unix::rwlock`)
       - #84404 (Check for intrinsics before coercing to a function pointer)
       - #84413 (Remove `sys::args::Args::inner_debug` and use `Debug` instead)
      
      Failed merges:
      
      r? `@ghost`
      `@rustbot` modify labels: rollup
      5f1aeb52
    • D
      Rollup merge of #84413 - CDirkx:args_inner_debug, r=m-ou-se · d1f5fc60
      Dylan DPC 提交于
      Remove `sys::args::Args::inner_debug` and use `Debug` instead
      
      This removes the method `sys::args::Args::inner_debug` on all platforms and implements `Debug` for `Args` instead.
      
      I believe this creates a more natural API for the different platforms under `sys`: export a type `Args: Debug + Iterator + ...` vs. `Args: Iterator + ...` and with a method `inner_debug`.
      d1f5fc60
    • D
      Rollup merge of #84404 - tmiasko:intrinsics-in-coercion-lub, r=Mark-Simulacrum · f180c1e0
      Dylan DPC 提交于
      Check for intrinsics before coercing to a function pointer
      
      Return an error if coercing function items / non-capturing closures
      to a common function pointer type would require reifying an intrinsic.
      
      Turns ICE reported in #84297 into a proper error.
      f180c1e0
    • D
      Rollup merge of #84402 - CDirkx:rwlock, r=dtolnay · aac5125d
      Dylan DPC 提交于
      Move `sys_common::rwlock::StaticRWLock` etc. to `sys::unix::rwlock`
      
      This moves `sys_common::rwlock::StaticRwLock`, `RWLockReadGuard` and `RWLockWriteGuard` to `sys::unix::rwlock`. They are already `#[cfg(unix)]` and don't need to be in `sys_common`.
      aac5125d
    • D
      Rollup merge of #84396 - Amanieu:fix_compiler_builtins_llvm, r=cuviper · 54af84b7
      Dylan DPC 提交于
      Update LLVM submodule
      
      Fixes #83467
      54af84b7
    • D
      Rollup merge of #84377 - jackh726:binder-refactor-fix, r=nikomatsakis · 9b432e02
      Dylan DPC 提交于
      Followup to #83944
      
      Some cleanups requested by ``@nikomatsakis``
      
      r? ``@nikomatsakis``
      9b432e02
    • D
      Rollup merge of #84376 - torhovland:issue-84534, r=GuillaumeGomez · 7b6fd616
      Dylan DPC 提交于
      Uses flex to fix formatting of h1 at any width
      
      Fixes #84354.
      7b6fd616
    • D
      Rollup merge of #84343 - camsteffen:closure-tree, r=varkor · 2f438e31
      Dylan DPC 提交于
      Remove `ScopeTree::closure_tree`
      
      Seems to be dead code since #50649.
      2f438e31
  3. 22 4月, 2021 24 次提交