Skip to content

Commit 0d5cfb4

Browse files
authored
Rollup merge of #73538 - tshepang:fix-example, r=nikomatsakis
make commented examples use valid syntax, and be more consistent
2 parents 4a245ae + b23baa7 commit 0d5cfb4

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

config.toml.example

+28-10
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,24 @@
118118
# nightlies are already produced for. The current platform must be able to run
119119
# binaries of this build triple and the nightly will be used to bootstrap the
120120
# first compiler.
121-
#build = "x86_64-unknown-linux-gnu" # defaults to your host platform
121+
#
122+
# Defaults to host platform
123+
#build = "x86_64-unknown-linux-gnu"
122124

123125
# In addition to the build triple, other triples to produce full compiler
124126
# toolchains for. Each of these triples will be bootstrapped from the build
125127
# triple and then will continue to bootstrap themselves. This platform must
126128
# currently be able to run all of the triples provided here.
127-
#host = ["x86_64-unknown-linux-gnu"] # defaults to just the build triple
129+
#
130+
# Defaults to just the build triple
131+
#host = ["x86_64-unknown-linux-gnu"]
128132

129133
# In addition to all host triples, other triples to produce the standard library
130134
# for. Each host triple will be used to produce a copy of the standard library
131135
# for each target triple.
132-
#target = ["x86_64-unknown-linux-gnu"] # defaults to just the build triple
136+
#
137+
# Defaults to just the build triple
138+
#target = ["x86_64-unknown-linux-gnu"]
133139

134140
# Use this directory to store build artifacts.
135141
# You can use "$ROOT" to indicate the root of the git repository.
@@ -174,7 +180,7 @@
174180
# Python interpreter to use for various tasks throughout the build, notably
175181
# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
176182
#
177-
# Defaults to the Python interpreter used to execute x.py.
183+
# Defaults to the Python interpreter used to execute x.py
178184
#python = "python"
179185

180186
# Force Cargo to check that Cargo.lock describes the precise dependency
@@ -313,11 +319,15 @@
313319

314320
# Whether or not debug assertions are enabled for the compiler and standard
315321
# library.
316-
#debug-assertions = debug
322+
#
323+
# Defaults to rust.debug value
324+
#debug-assertions = false
317325

318326
# Whether or not debug assertions are enabled for the standard library.
319327
# Overrides the `debug-assertions` option, if defined.
320-
#debug-assertions-std = debug-assertions
328+
#
329+
# Defaults to rust.debug-assertions value
330+
#debug-assertions-std = false
321331

322332
# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
323333
# `0` - no debug info
@@ -326,16 +336,24 @@
326336
# Can be overridden for specific subsets of Rust code (rustc, std or tools).
327337
# Debuginfo for tests run with compiletest is not controlled by this option
328338
# and needs to be enabled separately with `debuginfo-level-tests`.
329-
#debuginfo-level = if debug { 2 } else { 0 }
339+
#
340+
# Defaults to 2 if debug is true
341+
#debuginfo-level = 0
330342

331343
# Debuginfo level for the compiler.
332-
#debuginfo-level-rustc = debuginfo-level
344+
#
345+
# Defaults to rust.debuginfo-level value
346+
#debuginfo-level-rustc = 0
333347

334348
# Debuginfo level for the standard library.
335-
#debuginfo-level-std = debuginfo-level
349+
#
350+
# Defaults to rust.debuginfo-level value
351+
#debuginfo-level-std = 0
336352

337353
# Debuginfo level for the tools.
338-
#debuginfo-level-tools = debuginfo-level
354+
#
355+
# Defaults to rust.debuginfo-level value
356+
#debuginfo-level-tools = 0
339357

340358
# Debuginfo level for the test suites run with compiletest.
341359
# FIXME(#61117): Some tests fail when this option is enabled.

0 commit comments

Comments
 (0)