Skip to content

Commit

Permalink
Auto merge of rust-lang#32621 - steveklabnik:rollup, r=steveklabnik
Browse files Browse the repository at this point in the history
Rollup of 7 pull requests

- Successful merges: rust-lang#32580, rust-lang#32591, rust-lang#32603, rust-lang#32605, rust-lang#32606, rust-lang#32607, rust-lang#32608
- Failed merges:
  • Loading branch information
bors committed Mar 30, 2016
2 parents 102a5be + 2ba8606 commit bfacabc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion COMPILER_TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn test_foo() {
}
```

Note that not all headers have meaning when customized too a revision.
Note that not all headers have meaning when customized to a revision.
For example, the `ignore-test` header (and all "ignore" headers)
currently only apply to the test as a whole, not to particular
revisions. The only headers that are intended to really work when
Expand Down
4 changes: 2 additions & 2 deletions src/doc/book/no-stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
// for a bare-bones hello world. These are normally
// provided by libstd.
#[lang = "eh_personality"] extern fn eh_personality() {}
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop {} }
# #[lang = "eh_unwind_resume"] extern fn rust_eh_unwind_resume() {}
# #[no_mangle] pub extern fn rust_eh_register_frames () {}
# #[no_mangle] pub extern fn rust_eh_unregister_frames () {}
Expand All @@ -65,7 +65,7 @@ pub extern fn main(argc: i32, argv: *const *const u8) -> i32 {
}

#[lang = "eh_personality"] extern fn eh_personality() {}
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop {} }
# #[lang = "eh_unwind_resume"] extern fn rust_eh_unwind_resume() {}
# #[no_mangle] pub extern fn rust_eh_register_frames () {}
# #[no_mangle] pub extern fn rust_eh_unregister_frames () {}
Expand Down
4 changes: 2 additions & 2 deletions src/doc/book/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ You can iterate the vector multiple times by taking a reference to the vector wh
For example, the following code does not compile.

```rust,ignore
let mut v = vec![1, 2, 3, 4, 5];
let v = vec![1, 2, 3, 4, 5];
for i in v {
println!("Take ownership of the vector and its element {}", i);
Expand All @@ -134,7 +134,7 @@ for i in v {
Whereas the following works perfectly,

```rust
let mut v = vec![1, 2, 3, 4, 5];
let v = vec![1, 2, 3, 4, 5];

for i in &v {
println!("This is a reference to {}", i);
Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ use vec::{self, Vec};
///
/// // We can iterate over the items in the heap, although they are returned in
/// // a random order.
/// for x in heap.iter() {
/// for x in &heap {
/// println!("{}", x);
/// }
///
Expand Down
20 changes: 10 additions & 10 deletions src/libcore/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
//!
//! - Impl the `As*` traits for reference-to-reference conversions
//! - Impl the `Into` trait when you want to consume the value in the conversion
//! - The `From` trait is the most flexible, useful for values _and_ references conversions
//! - The `From` trait is the most flexible, useful for value _and_ reference conversions
//!
//! As a library writer, you should prefer implementing `From<T>` rather than
//! `Into<U>`, as `From` provides greater flexibility and offer the equivalent `Into`
//! As a library author, you should prefer implementing `From<T>` rather than
//! `Into<U>`, as `From` provides greater flexibility and offers an equivalent `Into`
//! implementation for free, thanks to a blanket implementation in the standard library.
//!
//! **Note: these traits must not fail**. If the conversion can fail, you must use a dedicated
//! method which return an `Option<T>` or a `Result<T, E>`.
//! method which returns an `Option<T>` or a `Result<T, E>`.
//!
//! # Generic impl
//!
Expand All @@ -49,7 +49,7 @@ use marker::Sized;
/// [book]: ../../book/borrow-and-asref.html
///
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
/// return an `Option<T>` or a `Result<T, E>`.
/// returns an `Option<T>` or a `Result<T, E>`.
///
/// # Examples
///
Expand Down Expand Up @@ -82,7 +82,7 @@ pub trait AsRef<T: ?Sized> {
/// A cheap, mutable reference-to-mutable reference conversion.
///
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
/// return an `Option<T>` or a `Result<T, E>`.
/// returns an `Option<T>` or a `Result<T, E>`.
///
/// # Generic Impls
///
Expand All @@ -99,10 +99,10 @@ pub trait AsMut<T: ?Sized> {
/// A conversion that consumes `self`, which may or may not be expensive.
///
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
/// return an `Option<T>` or a `Result<T, E>`.
/// returns an `Option<T>` or a `Result<T, E>`.
///
/// Library writer should not implement directly this trait, but should prefer the implementation
/// of the `From` trait, which offer greater flexibility and provide the equivalent `Into`
/// Library authors should not directly implement this trait, but should prefer implementing
/// the `From` trait, which offers greater flexibility and provides an equivalent `Into`
/// implementation for free, thanks to a blanket implementation in the standard library.
///
/// # Examples
Expand Down Expand Up @@ -134,7 +134,7 @@ pub trait Into<T>: Sized {
/// Construct `Self` via a conversion.
///
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
/// return an `Option<T>` or a `Result<T, E>`.
/// returns an `Option<T>` or a `Result<T, E>`.
///
/// # Examples
///
Expand Down
16 changes: 8 additions & 8 deletions src/libstd/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ impl Error for JoinPathsError {
fn description(&self) -> &str { self.inner.description() }
}

/// Returns the path to the current user's home directory if known.
/// Returns the path of the current user's home directory if known.
///
/// # Unix
///
Expand Down Expand Up @@ -450,7 +450,7 @@ pub fn home_dir() -> Option<PathBuf> {
os_imp::home_dir()
}

/// Returns the path to a temporary directory.
/// Returns the path of a temporary directory.
///
/// On Unix, returns the value of the 'TMPDIR' environment variable if it is
/// set, otherwise for non-Android it returns '/tmp'. If Android, since there
Expand All @@ -459,7 +459,7 @@ pub fn home_dir() -> Option<PathBuf> {
///
/// On Windows, returns the value of, in order, the 'TMP', 'TEMP',
/// 'USERPROFILE' environment variable if any are set and not the empty
/// string. Otherwise, tmpdir returns the path to the Windows directory. This
/// string. Otherwise, tmpdir returns the path of the Windows directory. This
/// behavior is identical to that of [GetTempPath][msdn], which this function
/// uses internally.
///
Expand All @@ -482,14 +482,14 @@ pub fn temp_dir() -> PathBuf {
os_imp::temp_dir()
}

/// Returns the full filesystem path to the current running executable.
/// Returns the full filesystem path of the current running executable.
///
/// The path returned is not necessarily a "real path" to the executable as
/// The path returned is not necessarily a "real path" of the executable as
/// there may be intermediate symlinks.
///
/// # Errors
///
/// Acquiring the path to the current executable is a platform-specific operation
/// Acquiring the path of the current executable is a platform-specific operation
/// that can fail for a good number of reasons. Some errors can include, but not
/// be limited to, filesystem operations failing or general syscall failures.
///
Expand Down Expand Up @@ -526,7 +526,7 @@ pub struct ArgsOs { inner: os_imp::Args }
/// Returns the arguments which this program was started with (normally passed
/// via the command line).
///
/// The first element is traditionally the path to the executable, but it can be
/// The first element is traditionally the path of the executable, but it can be
/// set to arbitrary text, and may not even exist. This means this property should
/// not be relied upon for security purposes.
///
Expand Down Expand Up @@ -554,7 +554,7 @@ pub fn args() -> Args {
/// Returns the arguments which this program was started with (normally passed
/// via the command line).
///
/// The first element is traditionally the path to the executable, but it can be
/// The first element is traditionally the path of the executable, but it can be
/// set to arbitrary text, and it may not even exist, so this property should
/// not be relied upon for security purposes.
///
Expand Down

0 comments on commit bfacabc

Please sign in to comment.