diff options
| author | Nick Hamann <nick@wabbo.org> | 2015-05-09 14:50:28 -0500 |
|---|---|---|
| committer | Nick Hamann <nick@wabbo.org> | 2015-05-09 14:50:28 -0500 |
| commit | a1898f890d907fadd45a1a927c8cd76dfb4ecdea (patch) | |
| tree | e4f7c7db03199ba317efa49c0841e2db919c1f17 /src/libcore/panicking.rs | |
| parent | dc630d01e3eae8ba05db98383119bc2ddbbb01c1 (diff) | |
| download | rust-a1898f890d907fadd45a1a927c8cd76dfb4ecdea.tar.gz rust-a1898f890d907fadd45a1a927c8cd76dfb4ecdea.zip | |
Convert #[lang="..."] to #[lang = "..."]
In my opinion this looks nicer, but also it matches the whitespace generally used for stability markers more closely.
Diffstat (limited to 'src/libcore/panicking.rs')
| -rw-r--r-- | src/libcore/panicking.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/panicking.rs b/src/libcore/panicking.rs index 0b8a52329dc..635150c0886 100644 --- a/src/libcore/panicking.rs +++ b/src/libcore/panicking.rs @@ -33,7 +33,7 @@ use fmt; #[cold] #[inline(never)] // this is the slow path, always -#[lang="panic"] +#[lang = "panic"] pub fn panic(expr_file_line: &(&'static str, &'static str, u32)) -> ! { // Use Arguments::new_v1 instead of format_args!("{}", expr) to potentially // reduce size overhead. The format_args! macro uses str's Display trait to @@ -46,7 +46,7 @@ pub fn panic(expr_file_line: &(&'static str, &'static str, u32)) -> ! { } #[cold] #[inline(never)] -#[lang="panic_bounds_check"] +#[lang = "panic_bounds_check"] fn panic_bounds_check(file_line: &(&'static str, u32), index: usize, len: usize) -> ! { panic_fmt(format_args!("index out of bounds: the len is {} but the index is {}", |
