Skip to content

Commit 72ccdee

Browse files
committed
Marked doctests travis doesn't like as no_run
1 parent 21afcc4 commit 72ccdee

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/builder.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use llvm_sys::{LLVMOpcode, LLVMIntPredicate, LLVMTypeKind, LLVMRealPredicate, LL
55

66
use basic_block::BasicBlock;
77
use values::{AggregateValue, AsValueRef, BasicValue, BasicValueEnum, PhiValue, FunctionValue, FloatValue, IntValue, PointerValue, VectorValue, InstructionValue};
8-
use types::{AsTypeRef, AnyType, BasicType, PointerType, IntType, FloatType};
8+
use types::{AsTypeRef, BasicType, PointerType, IntType, FloatType};
99

1010
use std::ffi::CString;
1111

@@ -505,23 +505,23 @@ impl Builder {
505505
/// # Example
506506
/// A logical left shift is an operation in which an integer value's bits are shifted left by N number of positions.
507507
///
508-
/// ```rust
508+
/// ```rust,no_run
509509
/// assert_eq!(0b0000_0001 << 0, 0b0000_0001);
510510
/// assert_eq!(0b0000_0001 << 1, 0b0000_0010);
511511
/// assert_eq!(0b0000_0011 << 2, 0b0000_1100);
512512
/// ```
513513
///
514514
/// In Rust, a function that could do this for 8bit values looks like:
515515
///
516-
/// ```rust
516+
/// ```rust,no_run
517517
/// fn left_shift(value: u8, n: u8) -> u8 {
518518
/// value << n
519519
/// }
520520
/// ```
521521
///
522522
/// And in Inkwell, the corresponding function would look roughly like:
523523
///
524-
/// ```rust
524+
/// ```rust,no_run
525525
/// use inkwell::context::Context;
526526
///
527527
/// // Setup
@@ -560,7 +560,7 @@ impl Builder {
560560
/// It may either be logical and have its leftmost N bit(s) filled with zeros or sign extended and filled with ones
561561
/// if the leftmost bit was one.
562562
///
563-
/// ```rust
563+
/// ```rust,no_run
564564
/// // Logical Right Shift
565565
/// assert_eq!(0b1100_0000 >> 2, 0b0011_0000);
566566
/// assert_eq!(0b0000_0010 >> 1, 0b0000_0001);
@@ -574,7 +574,7 @@ impl Builder {
574574
///
575575
/// In Rust, functions that could do this for 8bit values look like:
576576
///
577-
/// ```rust
577+
/// ```rust,no_run
578578
/// fn logical_right_shift(value: u8, n: u8) -> u8 {
579579
/// value >> n
580580
/// }
@@ -588,7 +588,7 @@ impl Builder {
588588
///
589589
/// In Inkwell, the corresponding functions would look roughly like:
590590
///
591-
/// ```rust
591+
/// ```rust,no_run
592592
/// use inkwell::context::Context;
593593
///
594594
/// // Setup

src/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use data_layout::DataLayout;
1717
use execution_engine::ExecutionEngine;
1818
use memory_buffer::MemoryBuffer;
1919
use types::{AsTypeRef, BasicType, FunctionType, BasicTypeEnum};
20-
use values::{AsValueRef, BasicValue, FunctionValue, PointerValue, MetadataValue, BasicMetadataValueEnum};
20+
use values::{AsValueRef, BasicValue, FunctionValue, PointerValue, MetadataValue};
2121

2222
// REVIEW: Maybe this should go into it's own module?
2323
#[derive(Debug, PartialEq, Eq)]

0 commit comments

Comments
 (0)