about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2024-10-10 09:27:13 +1100
committerGitHub <noreply@github.com>2024-10-10 09:27:13 +1100
commit05bd44797f04ad169f2b038e6f666fd91bc0c8a3 (patch)
treeb681686cad2eb74bf0b7d1e095d11667514274c0 /src/doc/rustc-dev-guide
parent2232116e10897d55c1822c38b07dfeb6702d8a70 (diff)
downloadrust-05bd44797f04ad169f2b038e6f666fd91bc0c8a3.tar.gz
rust-05bd44797f04ad169f2b038e6f666fd91bc0c8a3.zip
Rename `needs-profiler-support` to `needs-profiler-runtime` (#2095)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md2
-rw-r--r--src/doc/rustc-dev-guide/src/tests/compiletest.md2
-rw-r--r--src/doc/rustc-dev-guide/src/tests/directives.md5
3 files changed, 5 insertions, 4 deletions
diff --git a/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md b/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
index 2a4531d2182..2cd0b4b51cb 100644
--- a/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
+++ b/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
@@ -317,7 +317,7 @@ These tests compile and run a test program with coverage
 instrumentation, then use LLVM tools to convert the coverage data into a
 human-readable coverage report.
 
-> Tests in `coverage-run` mode have an implicit `// needs-profiler-support`
+> Tests in `coverage-run` mode have an implicit `//@ needs-profiler-runtime`
 > directive, so they will be skipped if the profiler runtime has not been
 > [enabled in `config.toml`](#recommended-configtoml-settings).
 
diff --git a/src/doc/rustc-dev-guide/src/tests/compiletest.md b/src/doc/rustc-dev-guide/src/tests/compiletest.md
index ebf803a9836..41cc141a21f 100644
--- a/src/doc/rustc-dev-guide/src/tests/compiletest.md
+++ b/src/doc/rustc-dev-guide/src/tests/compiletest.md
@@ -676,7 +676,7 @@ also registered as an additional prefix for FileCheck directives:
 ```rust,ignore
 //@ revisions: NORMAL COVERAGE
 //@[COVERAGE] compile-flags: -Cinstrument-coverage
-//@[COVERAGE] needs-profiler-support
+//@[COVERAGE] needs-profiler-runtime
 
 // COVERAGE:   @__llvm_coverage_mapping
 // NORMAL-NOT: @__llvm_coverage_mapping
diff --git a/src/doc/rustc-dev-guide/src/tests/directives.md b/src/doc/rustc-dev-guide/src/tests/directives.md
index ad12fd0bc84..66ba0d14bd5 100644
--- a/src/doc/rustc-dev-guide/src/tests/directives.md
+++ b/src/doc/rustc-dev-guide/src/tests/directives.md
@@ -153,8 +153,9 @@ settings:
 
 - `needs-asm-support` — ignores if it is running on a target that doesn't have
   stable support for `asm!`
-- `needs-profiler-support` — ignores if profiler support was not enabled for the
-  target (`profiler = true` in rustc's `config.toml`)
+- `needs-profiler-runtime` — ignores the test if the profiler runtime was not
+  enabled for the target
+  (`build.profiler = true` in rustc's `config.toml`)
 - `needs-sanitizer-support` — ignores if the sanitizer support was not enabled
   for the target (`sanitizers = true` in rustc's `config.toml`)
 - `needs-sanitizer-{address,hwaddress,leak,memory,thread}` — ignores if the