Commit Graph

45731 Commits

Author SHA1 Message Date
Manish Goregaokar
98475320f2 Rollup merge of #26693 - rutsky:patch-1, r=Manishearth
r? @steveklabnik
2015-07-16 10:48:28 +05:30
Manish Goregaokar
feb06b12e7 Rollup merge of #27061 - tamird:patch-1, r=alexcrichton
It was removed in bba934f19a.

Fixes #27059.
2015-07-16 10:48:10 +05:30
William Throwe
3a4904f06f Add regression test for atomics being Send + Sync
Thanks to Tamir Duberstein for the implementation suggestion.
2015-07-16 00:46:04 -04:00
Tamir Duberstein
e1073dd501 Remove reference to gdb-pretty-struct-and-enums.rs
It was removed in bba934f19a.

Fixes #27059.
2015-07-15 23:51:51 -04:00
Vincent Bernat
cfa8e48b21 doc: add rel=prev/next for links to adjacent sections
This help people using keyboard navigation or with disabilities to
easily browse through pagination. For example, in Vimium, a reader can
do `[[` or `]]` to browse through the pages.
2015-07-15 23:32:58 +02:00
Alisdair Owens
98f287240f Add specializations of read_to_end for Stdin, TcpStream and File,
allowing them to read into a buffer containing uninitialized data,
rather than pay the cost of zeroing.
2015-07-15 21:30:18 +01:00
Nick Hamann
560bb0af6d Better detection of duplicate associated items.
Expands E0201 to be used for any duplicate associated items, not just duplicate
methods/functions. It also correctly detects when two different kinds of items
(like a constant and a method) have the same name.

Fixes #23969.
2015-07-15 13:32:29 -05:00
Alexis Beingessner
e8a03285b7 Ratchet up travis to build stage1 and our own LLVM.
Tidy is still run first for failing fast on the easy stuff.

To accomplish this we have travis actually persist ccache across builds. This
has LLVM built within 6 minutes, and all of stage1 built within 18.
Caching should work on fresh PRs (cache acquired from the master branch).
Because all we persist is ccache, there is minimal danger of persisting corrupt
build state.

I had to mangle `configure` a bit to make --enable-ccache work when custom
compilers are provide via CC and CXX.
2015-07-15 10:48:50 -07:00
Simonas Kazlauskas
22502154e6 Implement lint deprecation/removal…
and deprecate/remove unsigned_negation lint.

This is useful to avoid causing breaking changes in case #![deny(unknown_lints)]
is used and lint is removed.
2015-07-15 20:16:58 +03:00
William Throwe
fd1b0305a3 Make AtomicPtr Send
This appears to have just been an oversight, and it is annoying to not
be able to use an Arc<AtomicPtr>.
2015-07-15 08:09:04 -04:00
Nick Hamann
5ec1deae3b Change int/uint => isize/usize in compiler docs. 2015-07-14 21:27:06 -05:00
Alexis Beingessner
c5a1b87c6f properly remove moved text 2015-07-14 17:59:28 -07:00
Nick Cameron
441b1c6103 Some more default implementations for the compiler driver callbacks. 2015-07-15 11:38:24 +12:00
Niko Matsakis
de6b3c282e Transition to the new object lifetime defaults, replacing the old
defaults completely.
2015-07-14 19:36:15 -04:00
Alexis Beingessner
700895fdd7 split out vec-zsts correctly 2015-07-14 14:41:53 -07:00
Brian Anderson
2881bbad59 Address more feedback 2015-07-14 14:41:50 -07:00
Simonas Kazlauskas
0c9e3dc75c Fix negate_unsigned feature gate check
This commit fixes the negate_unsigned feature gate to appropriately
account for infered variables.

This is technically a [breaking-change].
2015-07-14 21:48:43 +03:00
Alexis Beingessner
7aee8448ea fix all the doc tests 2015-07-14 11:07:00 -07:00
Steven Allen
833e88db52 Don't mention packed attribute in reference.md 2015-07-14 14:04:21 -04:00
Guillaume Gomez
60133aa6dd Remove macro, import function and enum 2015-07-14 19:53:09 +02:00
Brian Anderson
a266ab0563 Mention that removal of #[packed] was a breaking change in 1.2 2015-07-14 10:32:23 -07:00
Brian Anderson
6d5ae6b20d Address more feedback 2015-07-14 10:27:33 -07:00
Alexis Beingessner
58f6f2d57a nits and realigning 2015-07-14 09:56:10 -07:00
Ulrik Sverdrup
86d954ba2b core: Revive SipHash's tests
These tests were bitrotting, include them in the crate and bring them up
to date and compiling.. and they pass.
2015-07-14 18:41:04 +02:00
Ariel Ben-Yehuda
a878f35d3b don't ICE when FRU is used on an enum variant
Fixes #26948.
2015-07-14 18:58:18 +03:00
Guillaume Gomez
31262c206e Arguments are now passed directly to the function instead of the enum variants 2015-07-14 16:32:43 +02:00
Corey Farwell
7954096bc8 Add regression test for #21140
Closes #21140
2015-07-14 22:57:55 +09:00
Guillaume Gomez
c5f7c19cf2 End of error code spanning centralization 2015-07-14 15:37:52 +02:00
bors
e4e93196e1 Auto merge of #27024 - bluss:io-drain, r=alexcrichton
Use Vec::drain in BufWriter

I happened past a comment that asked for functionality that we now have.
2015-07-14 11:13:21 +00:00
Nick Cameron
49d3a93c52 save-analysis: fix def_ids for method calls
We were sometime emitting the decl as a def.
2015-07-14 22:10:40 +12:00
Ulrik Sverdrup
7b51c1c573 Use Vec::drain in BufWriter
I happened past a comment that asked for functionality that we now have.
2015-07-14 11:43:24 +02:00
Nick Cameron
94f13ac376 save-analysis: handle a few more kinds of paths 2015-07-14 20:56:25 +12:00
bors
5708b1a18a Auto merge of #27016 - alexcrichton:inline-asm-docs, r=steveklabnik
Hot off the press, we've now got some nice documentation to link to in LLVM
officially!
2015-07-14 07:51:04 +00:00
Alexis Beingessner
dba548d363 fix via mdinger 2015-07-14 00:26:08 -07:00
Alexis Beingessner
04578f6611 update build to make tarpl 2015-07-13 23:31:52 -07:00
bors
137a699cc3 Auto merge of #27015 - frankmcsherry:patch-1, r=steveklabnik
Grammatical update (and passive -> active, but I'm not sure if "Rust" is often used as a subject in the book; feel free to revert that part for style, but keep the subject-verb agreement)

r? @steveklabnik
2015-07-14 06:19:08 +00:00
Alexis Beingessner
e2b5f4fac4 move everything into the Rust tree 2015-07-13 23:16:33 -07:00
Alexis Beingessner
a54e64b3c4 move everything to tarpl 2015-07-13 23:14:57 -07:00
Alexis Beingessner
c7919f2d98 remove chaff 2015-07-13 23:13:56 -07:00
Alexis Beingessner
667afb8226 remove salsh 2015-07-13 22:37:03 -07:00
Alexis Beingessner
d96a518316 several fixups 2015-07-13 22:36:09 -07:00
Alexis Beingessner
d4268f9447 shard out and clean up unwinding 2015-07-13 22:09:44 -07:00
Alexis Beingessner
bdc62e009c fix definition 2015-07-13 21:37:19 -07:00
bors
c8cddde207 Auto merge of #27002 - IvanUkhov:docblock-pre-code, r=Gankro
The current nonzero side padding of `code` tags is good for legibility in paragraphs and lists; however, it introduces an awkward indentation to `pre` tags. Specifically, when a `pre` tag contains preformatted text with multiple lines, the fist line gets pushed slightly to the right, running the vertical alignment. An example can be seen [here](http://doc.rust-lang.org/std/fmt/#syntax). I propose setting the padding to zero for `code`s contained in `pre`s.


Regards,
Ivan
2015-07-14 04:00:26 +00:00
Nick Cameron
41b056823c save-analysis: tweak constructors 2015-07-14 14:21:54 +12:00
Nick Cameron
e6e6368454 save-analysis: make generated_code pub 2015-07-14 13:40:02 +12:00
Brian Anderson
3a180d15f8 Address feedback 2015-07-13 18:38:00 -07:00
Brian Anderson
4089ba873e Fix local path 2015-07-13 17:56:47 -07:00
Brian Anderson
68781e25c5 std: Refining crate docs
Yet another attempt to make the prose on the std crate page
clearer and more informative.

This does a lot of things: tightens up the opening, adds useful links
(including a link to the search bar), offers guidance on how to use
the docs, and expands the prelude docs as a useful newbie entrypoint.
2015-07-13 17:56:47 -07:00
Alexis Beingessner
d66c67be78 clarify atomics 2015-07-13 17:49:58 -07:00