summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authormejrs <unknown>2022-12-17 22:51:42 +0100
committerTshepang Mbambo <tshepang@gmail.com>2022-12-18 00:41:27 +0200
commit709032402ffa7cd3927f8ff3f37b4927af90e343 (patch)
treec63b2bdb76df5c4c79e064044aaadc679dcdbc64 /src/doc/rustc-dev-guide
parent50a38761cc90a9625a5831ba8a3fbdb131d5d7ed (diff)
downloadrust-709032402ffa7cd3927f8ff3f37b4927af90e343.tar.gz
rust-709032402ffa7cd3927f8ff3f37b4927af90e343.zip
Apply feedback
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/compiler-debugging.md6
-rw-r--r--src/doc/rustc-dev-guide/src/diagnostics.md2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/rustc-dev-guide/src/compiler-debugging.md b/src/doc/rustc-dev-guide/src/compiler-debugging.md
index 4d04b352b1b..eac9aeb6d7f 100644
--- a/src/doc/rustc-dev-guide/src/compiler-debugging.md
+++ b/src/doc/rustc-dev-guide/src/compiler-debugging.md
@@ -128,7 +128,7 @@ fn main() {
 }
 ```
 
-```bash
+```
 $ rustc +stage1 error.rs
 error[E0277]: cannot add `()` to `{integer}`
  --> error.rs:2:7
@@ -143,7 +143,7 @@ error: aborting due to previous error
 
 Now, where does the error above come from?
 
-```bash
+```
 $ RUST_BACKTRACE=1 rustc +stage1 error.rs -Z treat-err-as-bug
 error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied
  --> error.rs:2:7
@@ -190,7 +190,7 @@ Cool, now I have a backtrace for the error!
 `-Z track-diagnostics` can help figure out where errors are emitted. It uses `#[track_caller]`
 for this and prints its location alongside the error:
 
-```bash
+```
 $ RUST_BACKTRACE=1 rustc +stage1 error.rs -Z track-diagnostics
 error[E0277]: cannot add `()` to `{integer}`
  --> src\error.rs:2:7
diff --git a/src/doc/rustc-dev-guide/src/diagnostics.md b/src/doc/rustc-dev-guide/src/diagnostics.md
index 59cda3e674e..b50b7bd1824 100644
--- a/src/doc/rustc-dev-guide/src/diagnostics.md
+++ b/src/doc/rustc-dev-guide/src/diagnostics.md
@@ -287,7 +287,7 @@ There are three main ways to find where a given error is emitted:
   - The _construction_ of the error is far away from where it is _emitted_,
     a problem similar to the one we faced with the `grep` approach.
     In some cases, we buffer multiple errors in order to emit them in order.
-- Invoking `rustc` with the nightly-only flag `-Z track-diagnostics` will print error creation
+- Invoking `rustc` with `-Z track-diagnostics` will print error creation
   locations alongside the error.
 
 The regular development practices apply: judicious use of `debug!()` statements