Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion compiler/rustc_ast/src/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ use std::{slice, vec};
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};

use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
/// An owned smart pointer.

/// An owned smart pointer.
pub struct P<T: ?Sized> {
ptr: Box<T>,
}
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn slice_error_fail_rt(s: &str, begin: usize, end: usize) -> ! {
// 2. begin <= end
assert!(
begin <= end,
"begin <= end ({} <= {}) when slicing `{}`{}",
"begin should be <= end ({} is not <= {}) when slicing `{}`{}",
begin,
end,
s_trunc,
Expand Down
1 change: 1 addition & 0 deletions src/tools/rustfmt/tests/source/extern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ extern "Rust" { static ext: u32;

extern "C" {
fn syscall(number: libc::c_long /* comment 1 */, /* comm 2 */ ... /* sup? */) -> libc::c_long;
// im doing great! thanks for asking :).

fn foo (x: *const c_char , ... ) ->
libc::c_long;
Expand Down