Skip to content

Commit

Permalink
Mark doc examples w/ extern blocks as ignore.
Browse files Browse the repository at this point in the history
Fixes #48218.
  • Loading branch information
frewsxcv committed Feb 18, 2018
1 parent 1ad094d commit 872c782
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libstd/ffi/c_str.rs
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 872c782

Please sign in to comment.