1. 12 10月, 2018 2 次提交
  2. 10 10月, 2018 5 次提交
    • B
      Auto merge of #54831 - davidtwco:issue-52663-struct-field-suggestion, r=nikomatsakis · 71d3a715
      bors 提交于
      NLL is missing struct field suggestion
      
      Part of #52663.
      
      This commit adds suggestions to change the definitions of fields in
      struct definitions from immutable references to mutable references.
      
      r? @nikomatsakis
      cc @pnkfelix
      71d3a715
    • B
      Auto merge of #54764 - tromey:test-rust-lldb, r=alexcrichton · 4623d488
      bors 提交于
      Run debuginfo tests against rust-enabled lldb, when possible
      
      If the rust-enabled lldb was built, then use it when running the
      debuginfo tests.  Updating the lldb submodule was necessary as this
      needed a way to differentiate the rust-enabled lldb, so I added a line
      to the --version output.
      
      This adds compiletest commands to differentiate between the
      rust-enabled and non-rust-enabled lldb, as is already done for gdb.  A
      new "rust-lldb" header directive is also added, but not used in this
      patch; I plan to use it in #54004.
      
      This updates all the tests.
      4623d488
    • B
      Auto merge of #54734 - pawroman:fix_range_borrowing_suggestion, r=varkor · eae47a40
      bors 提交于
      Fix range literals borrowing suggestions
      
      Fixes #54505. The compiler issued incorrect range borrowing suggestions (missing `()` around borrows of range literals). This was not correct syntax (see the issue for an example).
      
      With changes in this PR, this is fixed for all types of `Range` literals.
      
      Thanks again to @varkor and @estebank for their invaluable help and guidance.
      
      r? @varkor
      eae47a40
    • B
      Auto merge of #54613 - matthiaskrgr:string_from_inline_53681, r=nagisa · 96cafc53
      bors 提交于
      liballoc: mark str.to_owned() and String::from(&str) as #[inline].
      
      Fixes #53681
      96cafc53
    • B
      Auto merge of #54762 - RalfJung:miri-validate, r=oli-obk · 0e07c428
      bors 提交于
      Prepare miri engine for enforcing validity invariant during execution
      
      In particular, make recursive checking of references optional, and add a `const_mode` parameter that says whether `usize` is allowed to contain a pointer. Also refactor validation a bit to be type-driven at the "leafs" (primitive types), and separately validate scalar layout to catch `NonNull` violations (which it did not properly validate before).
      
      Fixes https://github.com/rust-lang/rust/issues/53826
      Also fixes https://github.com/rust-lang/rust/issues/54751
      
      r? @oli-obk
      0e07c428
  3. 09 10月, 2018 31 次提交
  4. 08 10月, 2018 2 次提交