Tshepang Lekhonkhobe
f4fb3ad9aa
doc: remove trailing shell prompts
...
because eyesore
2014-08-24 12:16:14 +02:00
Tshepang Lekhonkhobe
3e94401a64
doc: move misplaced comma
...
Also:
* Remove unseeming repetition.
* By now, the reader has already heard that Rust is safe by default, so
reduce the overlong sentence, making it easier to read.
2014-08-24 04:24:25 +02:00
Tshepang Lekhonkhobe
6d2fe2e885
doc: add missing word
2014-08-24 04:03:51 +02:00
wickerwaka
c0e003d5ad
extern crate foobar as foo;
...
Implements remaining part of RFC #47 .
Addresses issue #16461 .
Removed link_attrs from rust.md, they don't appear to be supported by
the parser.
Changed all the tests to use the new extern crate syntax
Change pretty printer to use 'as' syntax
2014-08-23 12:16:04 -07:00
Daniel Hofstetter
1777047a54
Guide: Make add_three_times_four() public
2014-08-23 15:06:29 +02:00
bors
b9326ca91c
auto merge of #16653 : steveklabnik/rust/module_wording, r=alexcrichton
...
@kimundi was a bit worried this was misleading.
2014-08-22 11:50:58 +00:00
bors
da796ededa
auto merge of #16635 : steveklabnik/rust/ordering_comment, r=huonw
...
This way people won't try to copy/paste it in.
This is provided as an alternate solution to #16003 . What do you think, @treeman?
2014-08-21 21:25:56 +00:00
bors
f92015f71b
auto merge of #16499 : cmr/rust/struct-undef-repr, r=pcwalton
...
r? @pcwalton
2014-08-21 17:30:57 +00:00
Corey Richardson
01d2efaffe
Fix FFI guide
2014-08-21 12:58:42 -04:00
Steve Klabnik
f6759924f4
fix module wording in guide
...
@kimundi was a bit worried this was misleading.
2014-08-21 12:14:59 -04:00
bors
6de570f817
auto merge of #16487 : steveklabnik/rust/guide_ownership, r=brson
...
Whew. This section was so important, I saved it for last.
/cc @wycats, @nikomatsakis
2014-08-21 09:55:54 +00:00
bors
20b3313c8c
auto merge of #16471 : EduardoBautista/rust/chapter-14-fixes, r=steveklabnik
...
Just some small fixes for the guide. The cargo stuff is probably because of an update.
2014-08-21 06:05:58 +00:00
bors
e052aa65db
auto merge of #16447 : steveklabnik/rust/guide_vectors_extra, r=brson
...
Can't believe I forgot this!
2014-08-21 04:20:57 +00:00
Corey Richardson
c630d96166
manual: fix link
2014-08-20 21:02:23 -04:00
bors
4dfdc697e9
auto merge of #16331 : steveklabnik/rust/guide_macros_and_unsafe, r=brson
...
The last two sections of the guide, and a small conclusion. I suck at conclusions.
I also realized I never covered strings, so I'm going to put that section up before we're actually 'done.'
2014-08-21 00:51:00 +00:00
Corey Richardson
54bd9e6323
docs: don't claim struct layout is specified, but mention repr
2014-08-20 19:11:25 -04:00
Steve Klabnik
139516685b
Guide: unsafe
2014-08-20 18:41:24 -04:00
Christoph Burgdorf
1f16437d47
fixes some syntax highlighting annotations
2014-08-20 23:23:07 +02:00
Steve Klabnik
d1e37399a2
Make note that Ordering is builtin.
...
This way people won't try to copy/paste it in.
2014-08-20 16:56:29 -04:00
Steve Klabnik
1681f43b91
Guide: macros
2014-08-20 14:42:27 -04:00
bors
43f040dac8
auto merge of #16408 : steveklabnik/rust/guide_iterators, r=brson
...
An introduction to iterators. I kinda like this, but I kinda don't. Hmmm.
2014-08-20 18:15:53 +00:00
bors
e11cb5bba7
auto merge of #16257 : steveklabnik/rust/guide_patterns, r=brson
...
Fixes #4417 .
2014-08-20 16:25:53 +00:00
bors
655600b01b
auto merge of #16621 : tshepang/rust/grammar, r=steveklabnik
2014-08-20 13:55:52 +00:00
bors
cb5967e002
auto merge of #16620 : tshepang/rust/tasks, r=steveklabnik
2014-08-20 12:10:58 +00:00
Tshepang Lekhonkhobe
17c630a8dd
doc: small tasks guide improvements
2014-08-20 01:34:41 +02:00
Tshepang Lekhonkhobe
1f1620eed7
doc: grammar fixes
2014-08-20 01:31:07 +02:00
Amy Unger
0493fb2cfc
Make variable mutable to allow mutable reference
2014-08-19 15:41:12 -05:00
Eduardo Bautista
48c0f596a7
Remove repeated section and make file path generic
2014-08-19 12:07:25 -07:00
Eduardo Bautista
6b26aaea3e
Use new Cargo starting version number
2014-08-19 12:07:17 -07:00
Eduardo Bautista
c9284cedeb
Use new Cargo file syntax
2014-08-19 12:07:10 -07:00
Eduardo Bautista
6d189220d1
input_num
is used is used instead of guess
further in the guide
2014-08-19 12:07:05 -07:00
Eduardo Bautista
7ebb392fa9
Cargo generates "Hello, world!" instead of "Hello world!"
2014-08-19 12:07:00 -07:00
Eduardo Bautista
63e99f999d
Cargo begins version number at 0.0.1 instead of 0.1.0
2014-08-19 12:06:49 -07:00
bors
ef0d49d78f
auto merge of #16585 : steveklabnik/rust/random_remarks, r=pcwalton
...
Fixes #15954 and #16354 .
2014-08-19 13:05:52 +00:00
bors
3570095e34
auto merge of #16583 : steveklabnik/rust/gh16569, r=pcwalton
...
Fixes #16569
2014-08-19 10:20:54 +00:00
bors
eaf810a219
auto merge of #16345 : EduardoBautista/rust/fix-error-message-in-guide, r=steveklabnik
...
Just some simple changes to the guide.
2014-08-19 03:11:12 +00:00
Steve Klabnik
c88feffde4
Make comment about small bias in %.
...
Fixes #16354 .
2014-08-18 17:46:18 -04:00
Steve Klabnik
f8a9211740
Explain modulo in the guide.
...
Fixes #15954
2014-08-18 15:38:47 -04:00
bors
98ec85f19e
auto merge of #16575 : pcwalton/rust/import-foo-as-bar, r=aturon
...
of `use bar as foo`.
Change all uses of `use foo = bar` to `use bar as foo`.
Implements RFC #47 .
Closes #16461 .
[breaking-change]
r? @aturon
2014-08-18 19:16:15 +00:00
Steve Klabnik
e7910322cc
Manual: add information about //!
...
Fixes #16569
2014-08-18 14:26:25 -04:00
Steve Klabnik
c47dfbb16a
Guide: ownership
2014-08-18 13:27:44 -04:00
bors
fcbf012ee6
auto merge of #16576 : steveklabnik/rust/static_analysis_gate, r=pcwalton
...
This has certain implications that are wrong.
Fixes #16299 .
2014-08-18 17:26:07 +00:00
Steve Klabnik
88e62a96ce
Remove 'static analysis'
...
This has certain implications that are wrong.
Fixes #16299 .
2014-08-18 13:10:25 -04:00
Patrick Walton
67deb2e65e
libsyntax: Remove the use foo = bar
syntax from the language in favor
...
of `use bar as foo`.
Change all uses of `use foo = bar` to `use bar as foo`.
Implements RFC #47 .
Closes #16461 .
[breaking-change]
2014-08-18 09:19:10 -07:00
Kasey Carrothers
61b9036bb8
Changed the sample command in the Rustdoc readme to use --output instead of the outdated --output-dir and
...
fixed markdown formatting in debuginfo.rs
2014-08-17 14:01:26 -07:00
bors
a12a4ddcfa
auto merge of #16537 : jakub-/rust/use-mod-manual, r=alexcrichton
2014-08-17 10:46:08 +00:00
Patrick Walton
7f928d150e
librustc: Forbid external crates, imports, and/or items from being
...
declared with the same name in the same scope.
This breaks several common patterns. First are unused imports:
use foo::bar;
use baz::bar;
Change this code to the following:
use baz::bar;
Second, this patch breaks globs that import names that are shadowed by
subsequent imports. For example:
use foo::*; // including `bar`
use baz::bar;
Change this code to remove the glob:
use foo::{boo, quux};
use baz::bar;
Or qualify all uses of `bar`:
use foo::{boo, quux};
use baz;
... baz::bar ...
Finally, this patch breaks code that, at top level, explicitly imports
`std` and doesn't disable the prelude.
extern crate std;
Because the prelude imports `std` implicitly, there is no need to
explicitly import it; just remove such directives.
The old behavior can be opted into via the `import_shadowing` feature
gate. Use of this feature gate is discouraged.
This implements RFC #116 .
Closes #16464 .
[breaking-change]
2014-08-16 19:32:25 -07:00
Jakub Wieczorek
7606f580a1
Add use a:
🅱️ :{c, mod}; to the manual
2014-08-16 22:42:38 +02:00
bors
406de8d5dd
auto merge of #16500 : jackheizer/rust/export-name, r=alexcrichton
2014-08-15 12:11:16 +00:00
bors
dbb0cee682
auto merge of #16474 : MatejLach/rust/cargorun_fix, r=steveklabnik
...
This fixes #16451 .
While moving things around, I also removed a bunch of unnecessary whitespace, however I can put it back in if that's undesired.
Thanks.
2014-08-14 23:01:17 +00:00