Skip to content

Commit 11e8b8b

Browse files
committed
---
yaml --- r: 41851 b: refs/heads/master c: 49e466f h: refs/heads/master i: 41849: 974c166 41847: 2a65939 v: v3
1 parent 5d150d2 commit 11e8b8b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c3c90d2e4c4a1df80fe350099017124694e767d2
2+
refs/heads/master: 49e466f1e1b908e4e97d772d2676e91fe3486113
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/doc/rust.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -594,16 +594,16 @@ and may optionally begin with any number of `attributes` that apply to the conta
594594
Atributes on the anonymous crate module define important metadata that influences
595595
the behavior of the compiler.
596596

597-
~~~~~~~~{.xfail-test}
597+
~~~~~~~~
598598
// Linkage attributes
599-
#[ link(name = "projx"
599+
#[ link(name = "projx",
600600
vers = "2.5",
601601
uuid = "9cccc5d5-aceb-4af5-8285-811211826b82") ];
602602
603603
// Additional metadata attributes
604-
#[ desc = "Project X",
605-
license = "BSD" ];
606-
author = "Jane Doe" ];
604+
#[ desc = "Project X" ];
605+
#[ license = "BSD" ];
606+
#[ author = "Jane Doe" ];
607607
608608
// Specify the output type
609609
#[ crate_type = "lib" ];
@@ -2472,7 +2472,7 @@ disabled dynamically at run-time on a per-task and per-item basis. See
24722472
Each `log` expression must be provided with a *level* argument in
24732473
addition to the value to log. The logging level is a `u32` value, where
24742474
lower levels indicate more-urgent levels of logging. By default, the lowest
2475-
four logging levels (`1_u32 ... 4_u32`) are predefined as the constants
2475+
four logging levels (`0_u32 ... 3_u32`) are predefined as the constants
24762476
`error`, `warn`, `info` and `debug` in the `core` library.
24772477

24782478
Additionally, the macros `error!`, `warn!`, `info!` and `debug!` are defined
@@ -3242,10 +3242,10 @@ level will be output to the console.
32423242
The path to a module consists of the crate name, any parent modules,
32433243
then the module itself, all separated by double colons (`::`). The
32443244
optional log level can be appended to the module path with an equals
3245-
sign (`=`) followed by the log level, from 1 to 4, inclusive. Level 1
3246-
is the error level, 2 is warning, 3 info, and 4 debug. Any logs
3245+
sign (`=`) followed by the log level, from 0 to 3, inclusive. Level 0
3246+
is the error level, 1 is warning, 2 info, and 3 debug. Any logs
32473247
less than or equal to the specified level will be output. If not
3248-
specified then log level 4 is assumed.
3248+
specified then log level 3 is assumed.
32493249

32503250
As an example, to see all the logs generated by the compiler, you would set
32513251
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `link`

0 commit comments

Comments
 (0)