Skip to content

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 1, 2024
1 parent b0204c2 commit a2d796b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/doc/unstable-book/src/language-features/intrinsics.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ some features that only exist on some backends. Backends can simply not implemen
intrinsics without causing any code miscompilations or failures to compile.

```rust
#![feature(rustc_attrs)]
#![feature(rustc_attrs, effects)]
#![allow(internal_features)]

#[rustc_intrinsic]
fn some_intrinsic_name() -> u32 {
42
}
const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {}
```

## Intrinsics lowered to MIR instructions
Expand Down

0 comments on commit a2d796b

Please sign in to comment.