Skip to content

Commit 4e53ed2

Browse files
committed
---
yaml --- r: 193789 b: refs/heads/beta c: 60a4a2d h: refs/heads/master i: 193787: 735ce33 v: v3
1 parent dd6c913 commit 4e53ed2

File tree

20 files changed

+161
-129
lines changed

20 files changed

+161
-129
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: f59af75bd851b1a80cd2fab5cddd2875dcaf710e
34+
refs/heads/beta: 60a4a2db8837be91bdae051bd51ab181077e5dc6
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,11 +823,11 @@ then
823823
LLVM_VERSION=$($LLVM_CONFIG --version)
824824

825825
case $LLVM_VERSION in
826-
(3.[5-6]*)
826+
(3.[2-6]*)
827827
msg "found ok version of LLVM: $LLVM_VERSION"
828828
;;
829829
(*)
830-
err "bad LLVM version: $LLVM_VERSION, need >=3.5"
830+
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
831831
;;
832832
esac
833833
fi

branches/beta/mk/main.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ LLVM_VERSION_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --version)
290290
LLVM_BINDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --bindir)
291291
LLVM_INCDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --includedir)
292292
LLVM_LIBDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --libdir)
293-
LLVM_LIBDIR_RUSTFLAGS_$(1)=-L "$$(LLVM_LIBDIR_$(1))"
294293
LLVM_LIBS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --libs $$(LLVM_COMPONENTS))
295294
LLVM_LDFLAGS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --ldflags)
296295
# On FreeBSD, it may search wrong headers (that are for pre-installed LLVM),

branches/beta/mk/target.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8484
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) \
8585
$$(RUST_LIB_FLAGS_ST$(1)) \
8686
-L "$$(RT_OUTPUT_DIR_$(2))" \
87-
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
87+
-L "$$(LLVM_LIBDIR_$(2))" \
8888
$$(LLVM_STDCPP_RUSTFLAGS_$(2)) \
8989
$$(RUSTFLAGS_$(4)) \
9090
--out-dir $$(@D) \

branches/beta/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ $(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): \
372372
$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(3)) \
373373
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) -o $$@ $$< --test \
374374
-L "$$(RT_OUTPUT_DIR_$(2))" \
375-
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
375+
-L "$$(LLVM_LIBDIR_$(2))" \
376376
$$(RUSTFLAGS_$(4))
377377

378378
endef

branches/beta/src/doc/trpl/closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ is that a moving closure always takes ownership of all variables that
6868
it uses. Ordinary closures, in contrast, just create a reference into
6969
the enclosing stack frame. Moving closures are most useful with Rust's
7070
concurrency features, and so we'll just leave it at this for
71-
now. We'll talk about them more in the "Concurrency" chapter of the book.
71+
now. We'll talk about them more in the "Threads" section of the guide.
7272

7373
## Accepting closures as arguments
7474

branches/beta/src/doc/trpl/concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ fn main() {
339339
});
340340
}
341341
342-
rx.recv().ok().expect("Could not receive answer");
342+
rx.recv().ok().expect("Could not recieve answer");
343343
}
344344
```
345345

branches/beta/src/doc/trpl/method-syntax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ impl CircleBuilder {
187187
}
188188
189189
fn coordinate(&mut self, coordinate: f64) -> &mut CircleBuilder {
190-
self.coordinate = coordinate;
191-
self
190+
self.coordinate = coordinate;
191+
self
192192
}
193193
194194
fn radius(&mut self, radius: f64) -> &mut CircleBuilder {
195-
self.radius = radius;
196-
self
195+
self.radius = radius;
196+
self
197197
}
198198
199199
fn finalize(&self) -> Circle {

branches/beta/src/librustc/session/search_paths.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use std::slice;
1212
use std::path::{Path, PathBuf};
13-
use session::early_error;
1413

1514
#[derive(Clone, Debug)]
1615
pub struct SearchPaths {
@@ -51,9 +50,6 @@ impl SearchPaths {
5150
} else {
5251
(PathKind::All, path)
5352
};
54-
if path.is_empty() {
55-
early_error("empty search path given via `-L`");
56-
}
5753
self.paths.push((kind, PathBuf::new(path)));
5854
}
5955

branches/beta/src/librustc_lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ impl NonCamelCaseTypes {
811811
if i == 0 {
812812
c.to_uppercase().collect::<String>()
813813
} else {
814-
c.to_lowercase().collect()
814+
c.to_string()
815815
}
816816
)).collect::<Vec<_>>().concat()
817817
}

branches/beta/src/librustc_trans/trans/tvec.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ pub fn write_content<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
293293
}
294294
SaveIn(lldest) => {
295295
match ty::eval_repeat_count(bcx.tcx(), &**count_expr) {
296-
0 => expr::trans_into(bcx, &**element, Ignore),
296+
0 => bcx,
297297
1 => expr::trans_into(bcx, &**element, SaveIn(lldest)),
298298
count => {
299299
let elem = unpack_datum!(bcx, expr::trans(bcx, &**element));
@@ -410,12 +410,8 @@ pub fn iter_vec_loop<'blk, 'tcx, F>(bcx: Block<'blk, 'tcx>,
410410
F: FnOnce(Block<'blk, 'tcx>, ValueRef, Ty<'tcx>) -> Block<'blk, 'tcx>,
411411
{
412412
let _icx = push_ctxt("tvec::iter_vec_loop");
413-
414-
if bcx.unreachable.get() {
415-
return bcx;
416-
}
417-
418413
let fcx = bcx.fcx;
414+
419415
let loop_bcx = fcx.new_temp_block("expr_repeat");
420416
let next_bcx = fcx.new_temp_block("expr_repeat: next");
421417

branches/beta/src/libstd/fs/mod.rs

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl File {
124124
/// This function will return an error if `path` does not already exist.
125125
/// Other errors may also be returned according to `OpenOptions::open`.
126126
#[stable(feature = "rust1", since = "1.0.0")]
127-
pub fn open<P: AsPath + ?Sized>(path: &P) -> io::Result<File> {
127+
pub fn open<P: AsPath>(path: P) -> io::Result<File> {
128128
OpenOptions::new().read(true).open(path)
129129
}
130130

@@ -135,7 +135,7 @@ impl File {
135135
///
136136
/// See the `OpenOptions::open` function for more details.
137137
#[stable(feature = "rust1", since = "1.0.0")]
138-
pub fn create<P: AsPath + ?Sized>(path: &P) -> io::Result<File> {
138+
pub fn create<P: AsPath>(path: P) -> io::Result<File> {
139139
OpenOptions::new().write(true).create(true).truncate(true).open(path)
140140
}
141141

@@ -297,7 +297,7 @@ impl OpenOptions {
297297
/// permissions for
298298
/// * Filesystem-level errors (full disk, etc)
299299
#[stable(feature = "rust1", since = "1.0.0")]
300-
pub fn open<P: AsPath + ?Sized>(&self, path: &P) -> io::Result<File> {
300+
pub fn open<P: AsPath>(&self, path: P) -> io::Result<File> {
301301
let path = path.as_path();
302302
let inner = try!(fs_imp::File::open(path, &self.0));
303303
Ok(File { path: path.to_path_buf(), inner: inner })
@@ -410,7 +410,7 @@ impl DirEntry {
410410
/// user lacks permissions to remove the file, or if some other filesystem-level
411411
/// error occurs.
412412
#[stable(feature = "rust1", since = "1.0.0")]
413-
pub fn remove_file<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
413+
pub fn remove_file<P: AsPath>(path: P) -> io::Result<()> {
414414
fs_imp::unlink(path.as_path())
415415
}
416416

@@ -438,7 +438,7 @@ pub fn remove_file<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
438438
/// permissions to perform a `metadata` call on the given `path` or if there
439439
/// is no entry in the filesystem at the provided path.
440440
#[stable(feature = "rust1", since = "1.0.0")]
441-
pub fn metadata<P: AsPath + ?Sized>(path: &P) -> io::Result<Metadata> {
441+
pub fn metadata<P: AsPath>(path: P) -> io::Result<Metadata> {
442442
fs_imp::stat(path.as_path()).map(Metadata)
443443
}
444444

@@ -459,8 +459,7 @@ pub fn metadata<P: AsPath + ?Sized>(path: &P) -> io::Result<Metadata> {
459459
/// reside on separate filesystems, or if some other intermittent I/O error
460460
/// occurs.
461461
#[stable(feature = "rust1", since = "1.0.0")]
462-
pub fn rename<P: AsPath + ?Sized, Q: AsPath + ?Sized>(from: &P, to: &Q)
463-
-> io::Result<()> {
462+
pub fn rename<P: AsPath, Q: AsPath>(from: P, to: Q) -> io::Result<()> {
464463
fs_imp::rename(from.as_path(), to.as_path())
465464
}
466465

@@ -490,9 +489,9 @@ pub fn rename<P: AsPath + ?Sized, Q: AsPath + ?Sized>(from: &P, to: &Q)
490489
/// * The current process does not have the permission rights to access
491490
/// `from` or write `to`
492491
#[stable(feature = "rust1", since = "1.0.0")]
493-
pub fn copy<P: AsPath + ?Sized, Q: AsPath + ?Sized>(from: &P, to: &Q)
494-
-> io::Result<u64> {
492+
pub fn copy<P: AsPath, Q: AsPath>(from: P, to: Q) -> io::Result<u64> {
495493
let from = from.as_path();
494+
let to = to.as_path();
496495
if !from.is_file() {
497496
return Err(Error::new(ErrorKind::MismatchedFileTypeForOperation,
498497
"the source path is not an existing file",
@@ -513,17 +512,15 @@ pub fn copy<P: AsPath + ?Sized, Q: AsPath + ?Sized>(from: &P, to: &Q)
513512
/// The `dst` path will be a link pointing to the `src` path. Note that systems
514513
/// often require these two paths to both be located on the same filesystem.
515514
#[stable(feature = "rust1", since = "1.0.0")]
516-
pub fn hard_link<P: AsPath + ?Sized, Q: AsPath + ?Sized>(src: &P, dst: &Q)
517-
-> io::Result<()> {
515+
pub fn hard_link<P: AsPath, Q: AsPath>(src: P, dst: Q) -> io::Result<()> {
518516
fs_imp::link(src.as_path(), dst.as_path())
519517
}
520518

521519
/// Creates a new soft link on the filesystem.
522520
///
523521
/// The `dst` path will be a soft link pointing to the `src` path.
524522
#[stable(feature = "rust1", since = "1.0.0")]
525-
pub fn soft_link<P: AsPath + ?Sized, Q: AsPath + ?Sized>(src: &P, dst: &Q)
526-
-> io::Result<()> {
523+
pub fn soft_link<P: AsPath, Q: AsPath>(src: P, dst: Q) -> io::Result<()> {
527524
fs_imp::symlink(src.as_path(), dst.as_path())
528525
}
529526

@@ -535,7 +532,7 @@ pub fn soft_link<P: AsPath + ?Sized, Q: AsPath + ?Sized>(src: &P, dst: &Q)
535532
/// reading a file that does not exist or reading a file that is not a soft
536533
/// link.
537534
#[stable(feature = "rust1", since = "1.0.0")]
538-
pub fn read_link<P: AsPath + ?Sized>(path: &P) -> io::Result<PathBuf> {
535+
pub fn read_link<P: AsPath>(path: P) -> io::Result<PathBuf> {
539536
fs_imp::readlink(path.as_path())
540537
}
541538

@@ -554,7 +551,7 @@ pub fn read_link<P: AsPath + ?Sized>(path: &P) -> io::Result<PathBuf> {
554551
/// This function will return an error if the user lacks permissions to make a
555552
/// new directory at the provided `path`, or if the directory already exists.
556553
#[stable(feature = "rust1", since = "1.0.0")]
557-
pub fn create_dir<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
554+
pub fn create_dir<P: AsPath>(path: P) -> io::Result<()> {
558555
fs_imp::mkdir(path.as_path())
559556
}
560557

@@ -568,7 +565,7 @@ pub fn create_dir<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
568565
/// error conditions for when a directory is being created (after it is
569566
/// determined to not exist) are outlined by `fs::create_dir`.
570567
#[stable(feature = "rust1", since = "1.0.0")]
571-
pub fn create_dir_all<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
568+
pub fn create_dir_all<P: AsPath>(path: P) -> io::Result<()> {
572569
let path = path.as_path();
573570
if path.is_dir() { return Ok(()) }
574571
if let Some(p) = path.parent() { try!(create_dir_all(p)) }
@@ -590,7 +587,7 @@ pub fn create_dir_all<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
590587
/// This function will return an error if the user lacks permissions to remove
591588
/// the directory at the provided `path`, or if the directory isn't empty.
592589
#[stable(feature = "rust1", since = "1.0.0")]
593-
pub fn remove_dir<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
590+
pub fn remove_dir<P: AsPath>(path: P) -> io::Result<()> {
594591
fs_imp::rmdir(path.as_path())
595592
}
596593

@@ -604,7 +601,7 @@ pub fn remove_dir<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
604601
///
605602
/// See `file::remove_file` and `fs::remove_dir`
606603
#[stable(feature = "rust1", since = "1.0.0")]
607-
pub fn remove_dir_all<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
604+
pub fn remove_dir_all<P: AsPath>(path: P) -> io::Result<()> {
608605
let path = path.as_path();
609606
for child in try!(read_dir(path)) {
610607
let child = try!(child).path();
@@ -657,7 +654,7 @@ pub fn remove_dir_all<P: AsPath + ?Sized>(path: &P) -> io::Result<()> {
657654
/// the process lacks permissions to view the contents or if the `path` points
658655
/// at a non-directory file
659656
#[stable(feature = "rust1", since = "1.0.0")]
660-
pub fn read_dir<P: AsPath + ?Sized>(path: &P) -> io::Result<ReadDir> {
657+
pub fn read_dir<P: AsPath>(path: P) -> io::Result<ReadDir> {
661658
fs_imp::readdir(path.as_path()).map(ReadDir)
662659
}
663660

@@ -673,7 +670,7 @@ pub fn read_dir<P: AsPath + ?Sized>(path: &P) -> io::Result<ReadDir> {
673670
reason = "the precise semantics and defaults for a recursive walk \
674671
may change and this may end up accounting for files such \
675672
as symlinks differently")]
676-
pub fn walk_dir<P: AsPath + ?Sized>(path: &P) -> io::Result<WalkDir> {
673+
pub fn walk_dir<P: AsPath>(path: P) -> io::Result<WalkDir> {
677674
let start = try!(read_dir(path));
678675
Ok(WalkDir { cur: Some(start), stack: Vec::new() })
679676
}
@@ -759,8 +756,8 @@ impl PathExt for Path {
759756
reason = "the argument type of u64 is not quite appropriate for \
760757
this function and may change if the standard library \
761758
gains a type to represent a moment in time")]
762-
pub fn set_file_times<P: AsPath + ?Sized>(path: &P, accessed: u64,
763-
modified: u64) -> io::Result<()> {
759+
pub fn set_file_times<P: AsPath>(path: P, accessed: u64,
760+
modified: u64) -> io::Result<()> {
764761
fs_imp::utimes(path.as_path(), accessed, modified)
765762
}
766763

@@ -788,8 +785,7 @@ pub fn set_file_times<P: AsPath + ?Sized>(path: &P, accessed: u64,
788785
reason = "a more granual ability to set specific permissions may \
789786
be exposed on the Permissions structure itself and this \
790787
method may not always exist")]
791-
pub fn set_permissions<P: AsPath + ?Sized>(path: &P, perm: Permissions)
792-
-> io::Result<()> {
788+
pub fn set_permissions<P: AsPath>(path: P, perm: Permissions) -> io::Result<()> {
793789
fs_imp::set_perm(path.as_path(), perm.0)
794790
}
795791

0 commit comments

Comments
 (0)