Skip to content

Commit 04d7aaf

Browse files
committed
---
yaml --- r: 276028 b: refs/heads/auto c: 48aabbd h: refs/heads/master
1 parent 80a8ac2 commit 04d7aaf

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
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 2b1e35ec129b53bc440b59ede8bfaccb88a3cbf4
11+
refs/heads/auto: 48aabbd9e3a451439070325c56fd84def324bdbd
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/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
}

branches/auto/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() {}

branches/auto/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
}

branches/auto/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 \

branches/auto/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)