Skip to content

Commit baaba07

Browse files
committed
---
yaml --- r: 62779 b: refs/heads/snap-stage3 c: accc527 h: refs/heads/master i: 62777: 558f420 62775: b2a526a v: v3
1 parent c947d5f commit baaba07

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8749cb59d8efd6634617cae0b586efcf03373c25
4+
refs/heads/snap-stage3: accc5272f8913af57e7ebfd6a13247ecde146006
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ define TEST_RUNNER
284284
# If NO_REBUILD is set then break the dependencies on extra so we can
285285
# test crates without rebuilding std and extra first
286286
ifeq ($(NO_REBUILD),)
287-
STDTESTDEP_$(1)_$(2)_$(3) = $$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_EXTRALIB_$(2))
287+
STDTESTDEP_$(1)_$(2)_$(3) = $$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_STDLIB_$(2))
288288
else
289289
STDTESTDEP_$(1)_$(2)_$(3) =
290290
endif

branches/snap-stage3/src/etc/vim/after/ftplugin/rust.vim

Lines changed: 0 additions & 5 deletions
This file was deleted.

branches/snap-stage3/src/librustc/middle/trans/base.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,16 +1694,13 @@ pub fn create_llargs_for_fn_args(cx: fn_ctxt,
16941694
let arg = &args[i];
16951695
let llarg = llvm::LLVMGetParam(cx.llfn, arg_n as c_uint);
16961696

1697-
// Mark `&mut T` as no-alias, as the borrowck pass ensures it's true
16981697
match arg.ty.node {
1699-
ast::ty_rptr(_, mt) => {
1700-
if mt.mutbl == ast::m_mutbl {
1701-
llvm::LLVMAddAttribute(llarg, lib::llvm::NoAliasAttribute as c_uint);
1702-
}
1703-
}
1698+
// `~` pointers never alias other parameters, because ownership was transferred
17041699
ast::ty_uniq(_) => {
17051700
llvm::LLVMAddAttribute(llarg, lib::llvm::NoAliasAttribute as c_uint);
17061701
}
1702+
// FIXME: #6785: `&mut` can only alias `&const` and `@mut`, we should check for
1703+
// those in the other parameters and then mark it as `noalias` if there aren't any
17071704
_ => {}
17081705
}
17091706

0 commit comments

Comments
 (0)