Skip to content

Commit

Permalink
README: use rust-src version of compiler-builtins in a example
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Dec 16, 2017
1 parent bdb9739 commit f93aa4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -304,7 +304,6 @@ rand = {}

[dependencies.compiler_builtins]
features = ["mem"]
git = "https://github.com/rust-lang-nursery/compiler-builtins"
stage = 1

[dependencies.std]
Expand All @@ -321,7 +320,7 @@ stage = 2
- `std` is built as rlib *and* dylib. The dylib needs a panic library and an
allocator. If you do not specify the `panic-unwind` feature, you have to set
`panic = "abort"` in `Cargo.toml`.

- To build without the `jemalloc` feature include the following in `Xargo.toml`:

``` toml
Expand All @@ -330,7 +329,7 @@ stage = 2
```

What this flag means is that every program compiled with this libstd can only use the system allocator.
If your program tries to set its own allocator, compilation will fail because now two allocators are set
If your program tries to set its own allocator, compilation will fail because now two allocators are set
(one by libstd, one by your program).
For some further information on this issue,
see [rust-lang/rust#43637](https://github.com/rust-lang/rust/issues/43637#issuecomment-320463578).
Expand Down

0 comments on commit f93aa4a

Please sign in to comment.