Skip to content

Commit 2165464

Browse files
authored
Merge pull request #2297 from rust-lang/tshepang-patch-1
use correct code block markers
2 parents eabec32 + 86aa634 commit 2165464

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: src/rustc-driver/remarks-on-perma-unstable-features.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Remarks on perma unstable features
32

43
## `rustc_private`
@@ -18,15 +17,15 @@ When using the `rustc_private` feature with official Rust toolchains distributed
1817

1918
Install both components using rustup:
2019

21-
```bash
20+
```text
2221
rustup component add rustc-dev llvm-tools
2322
```
2423

2524
#### Common Error
2625

2726
Without the `llvm-tools` component, you'll encounter linking errors like:
2827

29-
```
28+
```text
3029
error: linking with `cc` failed: exit status: 1
3130
|
3231
= note: rust-lld: error: unable to find library -lLLVM-{version}
@@ -45,7 +44,7 @@ For custom-built toolchains or environments not using rustup, additional configu
4544

4645
1. **Check LLVM installation**: Verify LLVM is installed and accessible
4746
2. **Configure library paths**: You may need to set environment variables:
48-
```bash
47+
```text
4948
export LD_LIBRARY_PATH=/path/to/llvm/lib:$LD_LIBRARY_PATH
5049
```
5150
3. **Check version compatibility**: Ensure your LLVM version is compatible with your Rust toolchain

0 commit comments

Comments
 (0)