diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-06 13:49:30 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-07 17:54:33 -0700 |
| commit | d3647fe81543f0a04a0d6aee15f4bb8c08774295 (patch) | |
| tree | 1d1b9e07a488f5e87c309510fdddbc0f02b90276 /src/test/run-make/rustdoc-extern-method | |
| parent | 10359de4051d56feeacd455946b93ec48e6511fc (diff) | |
| download | rust-d3647fe81543f0a04a0d6aee15f4bb8c08774295.tar.gz rust-d3647fe81543f0a04a0d6aee15f4bb8c08774295.zip | |
test: Move all run-make rustdoc tests to test/rustdoc
Diffstat (limited to 'src/test/run-make/rustdoc-extern-method')
| -rw-r--r-- | src/test/run-make/rustdoc-extern-method/Makefile | 7 | ||||
| -rw-r--r-- | src/test/run-make/rustdoc-extern-method/bar.rs | 26 | ||||
| -rw-r--r-- | src/test/run-make/rustdoc-extern-method/foo.rs | 17 |
3 files changed, 0 insertions, 50 deletions
diff --git a/src/test/run-make/rustdoc-extern-method/Makefile b/src/test/run-make/rustdoc-extern-method/Makefile deleted file mode 100644 index 55cbd2da6ae..00000000000 --- a/src/test/run-make/rustdoc-extern-method/Makefile +++ /dev/null @@ -1,7 +0,0 @@ --include ../tools.mk - -all: foo.rs bar.rs - $(HOST_RPATH_ENV) $(RUSTC) foo.rs - $(HOST_RPATH_ENV) $(RUSTDOC) -w html -o $(TMPDIR)/doc foo.rs - $(HOST_RPATH_ENV) $(RUSTDOC) -L $(TMPDIR) -w html -o $(TMPDIR)/doc bar.rs - $(HTMLDOCCK) $(TMPDIR)/doc bar.rs diff --git a/src/test/run-make/rustdoc-extern-method/bar.rs b/src/test/run-make/rustdoc-extern-method/bar.rs deleted file mode 100644 index 26a05f8490f..00000000000 --- a/src/test/run-make/rustdoc-extern-method/bar.rs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -#![feature(unboxed_closures)] - -extern crate foo; - -// @has bar/trait.Foo.html //pre "pub trait Foo" -// @has - '//*[@id="tymethod.foo"]//code' 'extern "rust-call" fn foo' -// @has - '//*[@id="tymethod.foo_"]//code' 'extern "rust-call" fn foo_' -pub use foo::Foo; - -// @has bar/trait.Bar.html //pre "pub trait Bar" -pub trait Bar { - // @has - '//*[@id="tymethod.bar"]//code' 'extern "rust-call" fn bar' - extern "rust-call" fn bar(&self, _: ()); - // @has - '//*[@id="method.bar_"]//code' 'extern "rust-call" fn bar_' - extern "rust-call" fn bar_(&self, _: ()) { } -} diff --git a/src/test/run-make/rustdoc-extern-method/foo.rs b/src/test/run-make/rustdoc-extern-method/foo.rs deleted file mode 100644 index 96a7a8378b7..00000000000 --- a/src/test/run-make/rustdoc-extern-method/foo.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2015 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -#![crate_type="lib"] -#![feature(unboxed_closures)] - -pub trait Foo { - extern "rust-call" fn foo(&self, _: ()) -> i32; - extern "rust-call" fn foo_(&self, _: ()) -> i32 { 0 } -} |
