1. 27 11月, 2017 2 次提交
    • B
      Auto merge of #46106 - est31:master, r=nikomatsakis · 827cb0d6
      bors 提交于
      Add a MIR-borrowck-only output mode
      
      Removes the `-Z borrowck-mir` flag in favour of a `-Z borrowck=mode` flag where mode can be `mir`, `ast`, or `compare`.
      
      * The `ast` mode represents the current default, passing `-Z borrowck=ast` is equivalent to not passing it at all.
      * The `compare` mode outputs both the output of the MIR borrow checker and the AST borrow checker, each error with `(Ast)` and `(Mir)` appended. This mode has the same behaviour as `-Z borrowck-mir` had before this commit.
      * The `mir` mode only outputs the results of the MIR borrow checker, while suppressing the errors of the ast borrow checker
      
      The PR also updates the tests to use the new flags.
      
      closes  #46097
      827cb0d6
    • B
      Auto merge of #46253 - eddyb:return-aliasing, r=nagisa · 71b21ed0
      bors 提交于
      rustc_trans: don't apply noalias on returned references.
      
      In #45225 frozen returned `&T` were accidentally maked `noalias`, unlike `&mut T`.
      Return value `noalias` is only sound for functions that return dynamic allocations, e.g. `Box`, and using it on anything else can lead to miscompilation, as LLVM assumes certain usage patterns.
      Fixes #46239.
      71b21ed0
  2. 26 11月, 2017 25 次提交
  3. 25 11月, 2017 13 次提交