1. 28 1月, 2017 6 次提交
  2. 27 1月, 2017 4 次提交
    • A
      std: Compile libbacktrace with -fvisibility=hidden · 3d6f263b
      Alex Crichton 提交于
      We don't want these symbols exported from the standard library, this is
      just an internal implementation detail of the standard library
      currently.
      
      Closes #34984
      3d6f263b
    • A
      rustc: Don't export builtins/panic/alloc syms · a5561ce2
      Alex Crichton 提交于
      This hides symbols from various unstable and implementation-detail
      crates of the standard library. Although typically transitive exported
      `pub extern` functions are exported from cdylibs, these crates aren't
      necessary as they're all implementation details.
      
      Closes #34493
      a5561ce2
    • B
      rustc: Remove all "consider using an explicit lifetime parameter" suggestions · a2735c02
      Brian Anderson 提交于
      These give so many incorrect suggestions that having them is
      detrimental to the user experience. The compiler should not be
      suggesting changes to the code that are wrong - it is infuriating: not
      only is the compiler telling you that _you don't understand_ borrowing,
      _the compiler itself_ appears to not understand borrowing. It does not
      inspire confidence.
      a2735c02
    • E
      Point to immutable arg/fields when trying to use as &mut · e1280d81
      Esteban Küber 提交于
      Point to immutable borrow arguments and fields when trying to use them as
      mutable borrows. Add label to primary span on "cannot borrow as mutable"
      errors.
      
      Present the following output when trying to access an immutable borrow's
      field as mutable:
      
      ```
      error[E0389]: cannot borrow data mutably in a `&` reference
        --> $DIR/issue-38147-1.rs:27:9
         |
      26 | fn f(&self) {
         |      -----  use `&mut self` here to make mutable
      27 |     f.s.push('x');
         |     ^^^ assignment into an immutable reference
      ```
      
      And the following when trying to access an immutable struct field as mutable:
      
      ```
      error: cannot borrow immutable borrowed content `*self.s` as mutable
        --> $DIR/issue-38147-3.rs:17:9
         |
      12 |     s: &'a String
         |     ------------- use `&'a mut String` here to make mutable
      ...|
      16 |     fn f(&self) {
         |          -----  use `&mut self` here to make mutable
      17 |         self.s.push('x');
         |         ^^^^^^ cannot borrow as mutable
      ```
      e1280d81
  3. 26 1月, 2017 15 次提交
  4. 25 1月, 2017 14 次提交
  5. 24 1月, 2017 1 次提交