Skip to content

Commit c539609

Browse files
committed
---
yaml --- r: 55286 b: refs/heads/master c: e2c7a4d h: refs/heads/master v: v3
1 parent 8443a94 commit c539609

File tree

9 files changed

+79
-1090
lines changed

9 files changed

+79
-1090
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: a7f0bfbda65d6ac2494d2270a96f45570dfb552e
2+
refs/heads/master: e2c7a4def2730e33babf26ff834abe32a1de9a04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a

trunk/doc/rust.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3251,28 +3251,6 @@ of runtime logging modules follows.
32513251
* `::rt::backtrace` Log a backtrace on task failure
32523252
* `::rt::callback` Unused
32533253

3254-
#### Logging Expressions
3255-
3256-
Rust provides several macros to log information. Here's a simple Rust program
3257-
that demonstrates all four of them:
3258-
3259-
```rust
3260-
fn main() {
3261-
error!("This is an error log")
3262-
warn!("This is a warn log")
3263-
info!("this is an info log")
3264-
debug!("This is a debug log")
3265-
}
3266-
```
3267-
3268-
These four log levels correspond to levels 1-4, as controlled by `RUST_LOG`:
3269-
3270-
```bash
3271-
$ RUST_LOG=rust=3 ./rust
3272-
rust: ~"\"This is an error log\""
3273-
rust: ~"\"This is a warn log\""
3274-
rust: ~"\"this is an info log\""
3275-
```
32763254

32773255
# Appendix: Rationales and design tradeoffs
32783256

trunk/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ custom destructors.
988988

989989
# Boxes
990990

991-
Many modern languages represent values as as pointers to heap memory by
991+
Many modern languages represent values as pointers to heap memory by
992992
default. In contrast, Rust, like C and C++, represents such types directly.
993993
Another way to say this is that aggregate data in Rust are *unboxed*. This
994994
means that if you `let x = Point { x: 1f, y: 1f };`, you are creating a struct

trunk/mk/install.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ install-host: $(CSREQ$(ISTAGE)_T_$(CFG_BUILD_TRIPLE)_H_$(CFG_BUILD_TRIPLE))
119119
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBSYNTAX_GLOB_$(CFG_BUILD_TRIPLE)))
120120
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTI_GLOB_$(CFG_BUILD_TRIPLE)))
121121
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUST_GLOB_$(CFG_BUILD_TRIPLE)))
122-
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTPKG_GLOB_$(CFG_BUILD_TRIPLE)))
123-
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTDOC_GLOB_$(CFG_BUILD_TRIPLE)))
124122
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME_$(CFG_BUILD_TRIPLE)))
125123
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUSTLLVM_$(CFG_BUILD_TRIPLE)))
126124
$(Q)$(call INSTALL,$(S)/man, \

0 commit comments

Comments
 (0)