Skip to content

Commit

Permalink
Rollup merge of rust-lang#48325 - frewsxcv:frewxcv-ignore, r=stevekla…
Browse files Browse the repository at this point in the history
…bnik

Mark doc examples w/ `extern` blocks as `ignore`.

Fixes rust-lang#48218.
  • Loading branch information
GuillaumeGomez authored Feb 21, 2018
2 parents cb618ea + 872c782 commit 27c6ff5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libstd/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ use sys;
///
/// # Examples
///
/// ```no_run
/// ```ignore (extern-declaration)
/// # fn main() {
/// use std::ffi::CString;
/// use std::os::raw::c_char;
Expand Down Expand Up @@ -150,7 +150,7 @@ pub struct CString {
///
/// Inspecting a foreign C string:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CStr;
/// use std::os::raw::c_char;
///
Expand All @@ -164,7 +164,7 @@ pub struct CString {
///
/// Passing a Rust-originating C string:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::{CString, CStr};
/// use std::os::raw::c_char;
///
Expand All @@ -180,7 +180,7 @@ pub struct CString {
///
/// Converting a foreign C string into a Rust [`String`]:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CStr;
/// use std::os::raw::c_char;
///
Expand Down Expand Up @@ -307,7 +307,7 @@ impl CString {
///
/// # Examples
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CString;
/// use std::os::raw::c_char;
///
Expand Down Expand Up @@ -389,7 +389,7 @@ impl CString {
/// Create a `CString`, pass ownership to an `extern` function (via raw pointer), then retake
/// ownership with `from_raw`:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CString;
/// use std::os::raw::c_char;
///
Expand Down Expand Up @@ -882,7 +882,7 @@ impl CStr {
///
/// # Examples
///
/// ```no_run
/// ```ignore (extern-declaration)
/// # fn main() {
/// use std::ffi::CStr;
/// use std::os::raw::c_char;
Expand Down

0 comments on commit 27c6ff5

Please sign in to comment.