Commit graph

4004 commits

Author SHA1 Message Date
KillTheMule
2a0bd6db85 Typos 2016-10-06 11:53:53 +02:00
KillTheMule
a542302393 Another shot at clarity 2016-10-06 11:52:30 +02:00
KillTheMule
7f02eb387d Distinguish lifetimes and their annotations
Also, emphasize differently.
2016-10-06 11:15:47 +02:00
KillTheMule
2130637301 Book: Be very explicit of lifetimes being descriptive
... no prescriptive. Pointed out in https://users.rust-lang.org/t/what-if-i-get-lifetimes-wrong/7535/4, which was a revelation to me and made me think this should be more clear in the book.
2016-10-06 10:47:55 +02:00
Philip Davis
bcac486117 Avoid introducing run twice
As it stands, getting-started and guessing-game both introduce `run` as
a new command. The second should probably make it clear that the reader
has seen it before :)
2016-10-02 15:33:41 -07:00
Steve Klabnik
af1df9880f Rollup merge of #36860 - wesleywiser:patch-2, r=Manishearth
Add `Send` and `Sync` traits to the reference

Fixes #36859
2016-09-30 13:44:48 -04:00
Steve Klabnik
431c037b94 Rollup merge of #36711 - pcn:patch-1, r=steveklabnik
Suggesting a change to a comment that puzzled me

While reading this, the comment made it difficult for me to simply absorb the concept.  It interrupted my reading flow, and I think this expresses the same meaning, but reads a bit better.  It's trivial, but makes it easier for me to move on to the next line.
2016-09-30 13:44:46 -04:00
Wesley Wiser
a5244dd66c Add Send and Sync traits to the reference
Fixes #36859
2016-09-30 09:56:58 -04:00
Jonathan Turner
83c54dc971 Rollup merge of #35286 - dns2utf8:doc_never_expression, r=nikomatsakis
Add docs for "!" Never type (rfc 1216)

Pull Request: https://github.com/rust-lang/rfcs/pull/1216
Tracking Issue: #35121
2016-09-28 20:21:50 -07:00
Jonathan Turner
f7f1903b89 Rollup merge of #36769 - nathanmusoke:master, r=apasel422
doc: Fix minor typo in book/variable-bindings.md

r? @steveklabnik
2016-09-28 10:33:57 -07:00
Paulo Matos
cb3b03c2a9 Improve documention troubleshooting missing linker. Fix #32208. 2016-09-27 16:45:36 -04:00
Nathan Musoke
73e5a98e71 doc: Fix minor typo in book/variable-bindings.md 2016-09-27 23:20:50 +13:00
Peter N
c30eb31f9b Use "through" 2016-09-26 22:38:45 -04:00
Jonathan Turner
e3ffde855a Rollup merge of #36563 - vanjacosic:patch-1, r=steveklabnik
Docs: Update to "Getting Started" section

I came across #34523 and wanted to suggest a solution. See commit for details.

It seemed like a good place to start contributing, let me know if I did anything wrong 😇
2016-09-26 17:29:47 -07:00
Vanja Cosic
0bd7ef0996 Remove whitespace from line endings 2016-09-26 20:55:59 +02:00
bors
49dd95b078 Auto merge of #36564 - vanjacosic:patch-2, r=GuillaumeGomez
Docs: Update to "Ownership" section

Found #34865 while looking for easy docs wins I could contribute with.
2016-09-25 08:08:18 -07:00
Peter N
0a72b4dc9f Suggesting a change to a comment that puzzled me
While reading this, the comment made it difficult for me to simply absorb the concept.  It interrupted my reading flow, and I think this expresses the same meaning, but reads a bit better.
2016-09-25 00:17:31 -04:00
Vanja Cosic
b67a8439f9 Updated "Ownership". Trying to fix #34865
- Reword
- Add link
2016-09-18 14:43:14 +02:00
Vanja Cosic
172d321f9f Updated "Getting started". Trying to fix #34523
- Updated paragraphs and wording for clarity.
- Renamed `helloworld.rs` to `myprogram.rs` to make it clearer that it's an unrelated example.
2016-09-18 14:16:42 +02:00
Eitan Adler
a6d804ede8 Browsers do not consistently handle non-integer values for font-size. 2016-09-17 22:51:13 -07:00
Corey Farwell
5cab9525ae Don't ignore a doc code-block we can compile. 2016-09-14 22:49:36 -04:00
Guillaume Gomez
4476b7b43b Rollup merge of #36374 - dangcheng:patch-1, r=steveklabnik
book: fix mistake (File::open -> File::create)
2016-09-14 17:15:37 +02:00
Guillaume Gomez
f658548c93 Rollup merge of #36380 - kylog:fix-typo, r=steveklabnik
book: fix a typo
2016-09-13 10:25:49 +02:00
dangcheng
5b59c14143 change error message 2016-09-12 12:02:35 +08:00
Kylo Ginsberg
38009bfa91 book: fix a typo 2016-09-10 07:58:30 -07:00
Guillaume Gomez
8bfc561752 Rollup merge of #36326 - JDemler:master, r=steveklabnik
Fixed typo in nomicon
2016-09-10 15:57:51 +02:00
dangcheng
b693a2e0ad fix mistake (File::open -> File::create) 2016-09-10 16:30:59 +08:00
bors
f508ddc547 Auto merge of #36332 - llogiq:static_consts_feature, r=nikomatsakis
add static_in_const feature gate

also updates tests and deletes the spurious .bk files I inadvertently added last time.

r? @nikomatsakis
2016-09-09 21:35:30 -07:00
Vadim Petrochenkov
aadbcffb7c Issue deprecation warnings for safe accesses to extern statics 2016-09-09 01:07:01 +03:00
Andre Bogus
df611a62bb added feature description to reference 2016-09-08 07:34:41 +02:00
Jakob Demler
f6aab5b9e5 Fixed typo in nomicon 2016-09-07 22:15:32 +02:00
Andrew Paseltiner
e4784fc313
Remove mention of unsafe_no_drop_flag from Reference and Nomicon 2016-09-04 22:57:27 -04:00
Manish Goregaokar
eac0ebe35a Rollup merge of #36225 - johnthagen:fix-nightly-docs, r=steveklabnik
Update nightly docs supported Windows versions to match Getting Started page

https://doc.rust-lang.org/book/getting-started.html#tier-1 shows that Windows 7+ is officially supported (implying, for example Windows 10), but the nightly page only listed 7, 8, and Server 2008 R2).
2016-09-04 21:01:00 +08:00
Jonathan Turner
dfe0f88de8 Rollup merge of #35754 - QuietMisdreavus:must-use-reference, r=Manishearth
Add `must_use` to the Reference

I'm a bit uncertain about the exact phrasing, but having it mentioned at all is probably better than before.
2016-09-02 15:28:50 -07:00
johnthagen
eb1c7161dd Update supported Windows versions to match Getting Started page. 2016-09-02 15:32:13 -04:00
bors
933f471710 Auto merge of #34494 - CensoredUsername:allow_sysV64_abi, r=nagisa
Allow specification of the system V AMD64 ABI constraint.

This can be specified using `extern "sysV64" fn` on all platforms.

This ABI is used as the C ABI on unix platforms, but can only be specified there using extern "C". It was impossible to specify on other platforms. Meanwhile the win64 ABI, which was the extern "C" ABI on the windows platform could be specified on other platforms using extern "win64".

This pull request adds the the "sysV64" ABI constraint which exposes this calling convention on platforms where it is not the C ABI.
2016-09-01 11:56:51 -07:00
CensoredUsername
eef4434bf8 Add the sysv64 calling convention to the list of known calling conventions and add the feature(abi_sysv64) to the list of known features 2016-08-30 16:03:06 +02:00
CensoredUsername
30c4173cb8 Change ABI string from sysV64 to sysv64 2016-08-30 16:01:40 +02:00
CensoredUsername
516519ee9a Allow specification of the system V AMD64 ABI constraint.
This can be specified using `extern sysV64 fn` on all platforms
2016-08-30 16:01:40 +02:00
Guillaume Gomez
8d808a2df6 Rollup merge of #35962 - regexident:compiler-plugin-docs, r=steveklabnik
Updated code sample in chapter on syntax extensions.

The affected API apparently had changed with commit d59accfb06.

---

Further more I had to add

```toml
[lib]
name = "roman_numerals"
crate-type = ["dylib"]
```

to `Cargo.toml` as I otherwise got this compiler error (despite `#![crate_type="dylib"]`):

    [E0457]: plugin `roman_numerals` only found in rlib format, but must be available in dylib format

Might be worth adding a note about that?
2016-08-30 10:39:06 +02:00
Steve Klabnik
00d4a43d84 Remove style guide.
We originally imported this into the repository with the intent of
fixing it up. Instead, nothing happened.

Its appearance on rust-lang.org makes it seem semi-official, but it's
not. The rustfmt strike team will end up producing something like this
anyway, and leaving it around does nothing but mislead people.
2016-08-25 15:22:12 -04:00
Jonathan Turner
411a85e271 Rollup merge of #35948 - tshepang:missing-comma, r=steveklabnik
reference: add trailing commas
2016-08-24 10:35:29 -07:00
Vincent Esche
bf22a7a71a Updated code sample in chapter on syntax extensions.
The affected API apparently had changed with commit d59accfb06.
2016-08-24 15:43:28 +02:00
Guillaume Gomez
e3e439019f Rollup merge of #35913 - frewsxcv:panic, r=steveklabnik
Mark panicking tests as `should_panic` instead of `no_run`.

None
2016-08-23 22:48:02 +02:00
Tshepang Lekhonkhobe
ab4c492d68 reference: add trailing commas 2016-08-23 22:25:40 +02:00
Corey Farwell
66a2578064 Mark panicking tests as should_panic instead of no_run. 2016-08-22 20:39:20 -04:00
Panashe M. Fundira
3da5f9327a
Correct failing book test 2016-08-22 12:10:02 -04:00
Panashe M. Fundira
a5a5c1074e
Add reference to Self in traits chapter (book) 2016-08-21 23:45:26 -04:00
Stefan Schindler
d9bd4d5981 Add docs for "!" empty Never type (rfc 1216) 2016-08-20 22:13:40 +02:00
Jonathan Turner
ad17e0c277 Rollup merge of #35794 - cantino:fix-typo, r=apasel422
Fix minor typo

Minor typo in the book.
2016-08-20 07:09:35 -07:00