about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-02-27 21:09:45 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-03-07 17:55:08 +0000
commitd975bd3a67e4f18c02f57d8d66a9d32daa295a47 (patch)
treec6b830817863cc5afa18dd7afad27c9881e72e69 /src
parent03eb45452305f2d52348279d0caa5fc1f12c438d (diff)
downloadrust-d975bd3a67e4f18c02f57d8d66a9d32daa295a47.tar.gz
rust-d975bd3a67e4f18c02f57d8d66a9d32daa295a47.zip
Remove highlighting of spans on `-Zteach`
`-Zteach` is perma-unstable, barely used, the highlighting logic buggy and the flag being passed around is tech-debt. We should likely remove `-Zteach` in its entirely.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/core.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
index f95ae380fa8..719f1f978fe 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -160,7 +160,6 @@ pub(crate) fn new_dcx(
                 HumanEmitter::new(stderr_destination(color_config), fallback_bundle)
                     .sm(source_map.map(|sm| sm as _))
                     .short_message(short)
-                    .teach(unstable_opts.teach)
                     .diagnostic_width(diagnostic_width)
                     .track_diagnostics(unstable_opts.track_diagnostics)
                     .theme(if let HumanReadableErrorType::Unicode = kind {