1. 06 1月, 2018 1 次提交
    • E
      Let libpanic_abort call into libc's abort() on CloudABI. · 91611fc3
      Ed Schouten 提交于
      Ideally, we should make use of CloudABI's internal proc_raise(SIGABRT)
      system call. POSIX abort() requires things like flushing of stdios,
      which may not be what we want under panic conditions. Invoking the raw
      CloudABI system call would have prevented that.
      
      Unfortunately, we have to make use of the "cloudabi" crate to invoke raw
      CloudABI system calls. This is undesired, as discussed in the pull
      request (#47190).
      91611fc3
  2. 05 1月, 2018 1 次提交
    • E
      Make libpanic_unwind build on CloudABI. · 9a8f0a8c
      Ed Schouten 提交于
      CloudABI uses LLVM's libunwind for stack unwinding. There was a small
      bug that went by unnoticed, namely that it was not built with -fno-rtti.
      This caused it to (indirectly) depend on the entire C++ runtime.
      
      Now that that issue has been resolved, it is also perfectly fine to make
      use of this library for programming languages other than C++.
      9a8f0a8c
  3. 04 1月, 2018 7 次提交
    • B
      Auto merge of #47147 - projektir:to_ptr_cast, r=eddyb · 4cd918c4
      bors 提交于
      Force appropriate extension when converting from int to ptr #43291
      
      Fixes #43291.
      
      Looking for feedback if I've missed something and/or need to add more tests.
      
      @EddyB @retep998 @nagisa @oli-obk
      4cd918c4
    • B
      Auto merge of #47124 - estebank:loan-paths, r=nikomatsakis · 78f24d86
      bors 提交于
      Reword reason for move note
      
      On move errors, when encountering an enum variant, be more ambiguous and do not refer to the type on the cause note, to avoid referring to `(maybe as std::prelude::v1::Some).0`, and instead refer to `the value`.
      
      Sidesteps part of the problem with #41962:
      
      ```
      error[E0382]: use of partially moved value: `maybe`
       --> file.rs:5:30
        |
      5 |         if let Some(thing) = maybe {
        |                     -----    ^^^^^ value used here after move
        |                     |
        |                     value moved here
        = note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
      
      error[E0382]: use of moved value: `(maybe as std::prelude::v1::Some).0`
       --> file.rs:5:21
        |
      5 |         if let Some(thing) = maybe {
        |                     ^^^^^ value moved here in previous iteration of loop
        = note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
      
      error: aborting due to 2 previous errors
      ```
      
      Previous discussion: #44360
      
      r? @arielb1
      78f24d86
    • B
      Auto merge of #47132 - cramertj:impl-trait-camel-case, r=nikomatsakis · 608aae90
      bors 提交于
      Limit style lint to non-synthetic generic params
      
      Fix https://github.com/rust-lang/rust/issues/46959
      
      r? @nikomatsakis
      608aae90
    • E
      Tweak to mir borrow in a loop diagnostic · a4d46b3d
      Esteban Küber 提交于
      a4d46b3d
    • E
      Add mir test, review comments · e027f5a9
      Esteban Küber 提交于
      e027f5a9
    • B
      Auto merge of #46984 - arielb1:pre-statement-effect, r=nikomatsakis · 0a3761e6
      bors 提交于
      NLL fixes
      
      First, introduce pre-statement effects to dataflow to fix #46875. Edge dataflow effects might make that redundant, but I'm not sure of the best way to integrate them with liveness etc., and if this is a hack, this is one of the cleanest hacks I've seen.
      
      And I want a small fix to avoid the torrent of bug reports.
      
      Second, fix linking of projections to fix #46974
      
      r? @pnkfelix
      0a3761e6
    • B
      Auto merge of #47127 - EdSchouten:cloudabi-tests, r=kennytm · d96cc6e2
      bors 提交于
      First cut at getting some part of the test suite working for CloudABI
      
      I am currently working on creating a Docker container for automated CI for CloudABI. Here are some of the trivial changes that need to land to make tests pass.
      d96cc6e2
  4. 03 1月, 2018 23 次提交
  5. 02 1月, 2018 8 次提交