1. 04 10月, 2020 30 次提交
  2. 03 10月, 2020 10 次提交
    • B
      Auto merge of #74160 - CAD97:weak-as-unsized-ptr, r=RalfJung · 738d4a7a
      bors 提交于
      Allow Weak::as_ptr and friends for unsized T
      
      Relaxes `impl<T> Weak<T>` to `impl<T: ?Sized> Weak<T>` for the methods `rc::Weak::as_ptr`, `into_raw`, and `from_raw`.
      
      Follow-up to #73845, which did most of the impl work to make these functions work for `T: ?Sized`.
      
      We still have to adjust the implementation of `Weak::from_raw` here, however, because I missed a use of `ptr.is_null()` previously. This check was necessary when `into`/`from_raw` were first implemented, as `into_raw` returned `ptr::null()` for dangling weak. However, we now just (wrapping) offset dangling weaks' pointers the same as nondangling weak, so the null check is no longer necessary (or even hit). (I can submit just 17a928f as a separate PR if desired.)
      
      As a nice side effect, moves the `fn is_dangling` definition closer to `Weak::new`, which creates the dangling weak.
      
      This technically stabilizes that "something like `align_of_val_raw`" is possible to do. However, I believe the part of the functionality required by these methods here -- specifically, getting the alignment of a pointee from a pointer where it may be dangling iff the pointee is `Sized` -- is uncontroversial enough to stabilize these methods without a way to implement them on stable Rust.
      
      r? `@RalfJung,` who reviewed #73845.
      
      ATTN: This changes (relaxes) the (input) generic bounds on stable fn!
      738d4a7a
    • M
      Check all Cargo targets on CI · bcab97c1
      Mark Rousskov 提交于
      bcab97c1
    • M
      Place all-targets checking behind a flag · f2961638
      Mark Rousskov 提交于
      This matches Cargo behavior and avoids the (somewhat expensive) double checking,
      as well as the unfortunate duplicate error messages (#76822,
      rust-lang/cargo#5128).
      f2961638
    • R
      grammar nit · e27ef130
      Ralf Jung 提交于
      e27ef130
    • B
      Auto merge of #77347 - jyn514:dox, r=Amanieu · 6f56fbdc
      bors 提交于
      Remove --cfg dox from rustdoc.rs
      
      This was added in https://github.com/rust-lang/rust/pull/53076 because
      several dependencies were using `cfg(dox)` instead of `cfg(rustdoc)` (now `cfg(doc)`).
      I ran `rg 'cfg\(dox\)'` on the source tree with no matches, so I think
      this is now safe to remove.
      
      r? `@Mark-Simulacrum`
      cc `@QuietMisdreavus` :)
      6f56fbdc
    • C
      Improve error messages · aa9b718c
      Camelid 提交于
      aa9b718c
    • J
      Macro-expand test to cover all possible lanes · c47caeaa
      Jubilee Young 提交于
      c47caeaa
    • B
      Auto merge of #77451 - Mark-Simulacrum:bump-version, r=pietroalbini · 8c54cf67
      bors 提交于
      Bump version to 1.49.0
      
      r? `@pietroalbini`
      8c54cf67
    • C
      Use old error when there's partial resolution · 21fb9dfa
      Camelid 提交于
      The new error was confusing when there was partial resolution (something
      like `std::io::nonexistent`); the old one is better for those cases.
      21fb9dfa
    • B
      Auto merge of #77470 - jonas-schievink:rollup-9a2hulp, r=jonas-schievink · 6ebad43c
      bors 提交于
      Rollup of 8 pull requests
      
      Successful merges:
      
       - #75377 (Fix Debug implementations of some of the HashMap and BTreeMap iterator types)
       - #76107 (Write manifest for MAJOR.MINOR channel to enable rustup convenience)
       - #76745 (Move Wrapping<T> ui tests into library)
       - #77182 (Add missing examples for Fd traits)
       - #77251 (Bypass const_item_mutation if const's type has Drop impl)
       - #77264 (Only use LOCAL_{STDOUT,STDERR} when set_{print/panic} is used. )
       - #77421 (Revert "resolve: Avoid "self-confirming" import resolutions in one more case")
       - #77452 (Permit ty::Bool in const generics for v0 mangling)
      
      Failed merges:
      
      r? `@ghost`
      6ebad43c