Skip to content

Commit 149ca62

Browse files
committed
---
yaml --- r: 275954 b: refs/heads/master c: 48aabbd h: refs/heads/master
1 parent 664f5ae commit 149ca62

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 2b1e35ec129b53bc440b59ede8bfaccb88a3cbf4
2+
refs/heads/master: 48aabbd9e3a451439070325c56fd84def324bdbd
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/librustdoc/html/format.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ impl fmt::Display for AbiSpace {
766766
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
767767
match self.0 {
768768
Abi::Rust => Ok(()),
769+
Abi::C => write!(f, "extern "),
769770
abi => write!(f, "extern "{}" ", abi.name()),
770771
}
771772
}

trunk/src/test/rustdoc/extern-impl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ impl Foo {
1818
pub fn rust0() {}
1919
// @has - '//code' 'fn rust1()'
2020
pub extern "Rust" fn rust1() {}
21-
// @has - '//code' 'extern "C" fn c0()'
21+
// @has - '//code' 'extern fn c0()'
2222
pub extern fn c0() {}
23-
// @has - '//code' 'extern "C" fn c1()'
23+
// @has - '//code' 'extern fn c1()'
2424
pub extern "C" fn c1() {}
2525
// @has - '//code' 'extern "system" fn system0()'
2626
pub extern "system" fn system0() {}
@@ -31,7 +31,7 @@ pub trait Bar {}
3131

3232
// @has - '//code' 'impl Bar for fn()'
3333
impl Bar for fn() {}
34-
// @has - '//code' 'impl Bar for extern "C" fn()'
34+
// @has - '//code' 'impl Bar for extern fn()'
3535
impl Bar for extern fn() {}
3636
// @has - '//code' 'impl Bar for extern "system" fn()'
3737
impl Bar for extern "system" fn() {}

trunk/src/test/rustdoc/ffi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
extern crate rustdoc_ffi as lib;
1515

16-
// @has ffi/fn.foreigner.html //pre 'pub unsafe extern "C" fn foreigner(cold_as_ice: u32)'
16+
// @has ffi/fn.foreigner.html //pre 'pub unsafe extern fn foreigner(cold_as_ice: u32)'
1717
pub use lib::foreigner;
1818

1919
extern "C" {
20-
// @has ffi/fn.another.html //pre 'pub unsafe extern "C" fn another(cold_as_ice: u32)'
20+
// @has ffi/fn.another.html //pre 'pub unsafe extern fn another(cold_as_ice: u32)'
2121
pub fn another(cold_as_ice: u32);
2222
}

trunk/src/test/rustdoc/issue-22038.rs

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

1111
extern {
1212
// @has issue_22038/fn.foo1.html \
13-
// '//*[@class="rust fn"]' 'pub unsafe extern "C" fn foo1()'
13+
// '//*[@class="rust fn"]' 'pub unsafe extern fn foo1()'
1414
pub fn foo1();
1515
}
1616

@@ -21,7 +21,7 @@ extern "system" {
2121
}
2222

2323
// @has issue_22038/fn.bar.html \
24-
// '//*[@class="rust fn"]' 'pub extern "C" fn bar()'
24+
// '//*[@class="rust fn"]' 'pub extern fn bar()'
2525
pub extern fn bar() {}
2626

2727
// @has issue_22038/fn.baz.html \

trunk/src/test/rustdoc/variadic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// except according to those terms.
1010

1111
extern "C" {
12-
// @has variadic/fn.foo.html //pre 'pub unsafe extern "C" fn foo(x: i32, ...)'
12+
// @has variadic/fn.foo.html //pre 'pub unsafe extern fn foo(x: i32, ...)'
1313
pub fn foo(x: i32, ...);
1414
}

0 commit comments

Comments
 (0)