Commit Graph

37144 Commits

Author SHA1 Message Date
Adolfo Ochagavía
b23289e961 Remove old obsolete syntax tests 2015-01-14 22:17:04 +01:00
Adolfo Ochagavía
21a2df6362 Remove old obsolete syntax errors 2015-01-14 22:17:03 +01:00
Nick Cameron
6f9e1a0042 Fix interaction of --no-analysis and --emit dep-info
Closes #21130
2015-01-15 09:30:34 +13:00
Nick Cameron
98d471120a Syntax extensions on trait and impl items.
Allows modifiers to be used on methods, associated types, etc.
2015-01-15 08:58:44 +13:00
Brian Anderson
9b10e9ac32 mk: The beta channel produces things called 'beta' 2015-01-14 10:32:42 -08:00
York Xiang
bf899e997e fix wrong link 2015-01-15 01:11:28 +08:00
Simonas Kazlauskas
31261fd629 Disallow a form of invalid asm! macro
Fixes #21045
2015-01-14 17:03:03 +02:00
Toni Cárdenas
428da78de1 TRPL: Anti-example failing for the wrong reason.
Really small correction.

This anti-example in the Closures section is supposed to fail because of a borrow, but it was failing at the type inference because of insufficient type information.

This makes it fail for the expected reason.
2015-01-14 15:24:41 +01:00
nathan dotz
fb55628873 Add examples for DList methods. 2015-01-14 09:17:12 -05:00
Huon Wilson
4ebde950f5 Document, tweak and refactor some trans code. 2015-01-15 00:23:43 +11:00
bors
896cb36eca auto merge of #21082 : brson/rust/finally, r=alexcrichton
No in-tree users. Ugly interface. Closes #14332.

I just happened to notice that this module still lives and has no users. Assuming we don't want it.

r? @aturon cc @alexcrichton
2015-01-14 12:19:58 +00:00
bors
d52398ef8c auto merge of #21076 : sfackler/rust/bufferedreader-undef, r=Gankro
It's passed to the underlying reader, so uninitialized memory == sad
times.

We might want to shrink the default buffer size as well. 64k is pretty
huge. Java uses 8k by default, and Go uses 4k for reference.

r? @alexcrichton
2015-01-14 09:52:08 +00:00
Nick Cameron
32690b586d Tweek save-analysis treatment of impls 2015-01-14 22:24:09 +13:00
Kevin Yap
5a16ceb291 Improve Rust Documentation & Reference on mobile
- Tables that are too wide for the screen scroll horizontally.
- Inline code that would force the page to become wider than the width
  of the screen is broken in the middle of the word.
2015-01-13 22:39:52 -08:00
Earl St Sauver
2a320f21d0 Fix playpen links to not all be the same
Fixes #20732, that all links in some modules point to the same code
examples was reported. The ID's generated for documents in
librustdoc are not all unique, which means the code rendered as
text is not being properly selected.

This change removes the unique id generation and instead changes the
frontend code to grab the correct code sample by it's relative
position in the dom.
2015-01-13 22:25:11 -08:00
Erick Tryzelaar
e14d053a50 syntax: factor out print_expr arms to reduce non-optimized stack usage 2015-01-13 21:16:56 -08:00
Erick Tryzelaar
caf4a90c66 syntax: Rewrite pp advance_left to use a constant stack size 2015-01-13 21:14:56 -08:00
Erick Tryzelaar
92b48556e0 syntax: Don't import the pp.rs enum variants into the namespace 2015-01-13 21:12:39 -08:00
bors
3614e1de6c auto merge of #21061 : japaric/rust/range, r=nick29581 2015-01-14 04:42:01 +00:00
Richo Healey
78278d0c76 Bump to ensure llvm is rebuilt 2015-01-13 19:03:31 -08:00
Richo Healey
4ab2c47ce6 Clean up conditions for clobbers 2015-01-13 19:01:37 -08:00
Richo Healey
c51379386c Generalise pointer width tests using pointer_width 2015-01-13 18:59:45 -08:00
Steve Klabnik
40219249cf Re-direct to the right place.
Why redirect Tutorial -> Guide -> Book when you can just Tutorial -> Book?

Suggested here: http://www.reddit.com/r/rust/comments/2schav/is_it_possible_to_automatically_redirect/
2015-01-13 21:11:47 -05:00
bors
170c4399e6 auto merge of #21018 : tomjakubowski/rust/rustdoc-where-xcrate, r=alexcrichton
Various fixes for `rustdoc`, including showing where clauses
finally on re-exported items.
2015-01-14 00:41:55 +00:00
Huon Wilson
06ad8bb872 Implement suggestions for traits to import.
For a call like `foo.bar()` where the method `bar` can't be resolved,
the compiler will search for traits that have methods with name `bar` to
give a more informative error, providing a list of possibilities.

Closes #7643.
2015-01-14 11:08:20 +11:00
Brian Anderson
f0fe4bb114 Address feedback 2015-01-13 15:44:33 -08:00
Florian Hahn
6cfbcca41e Update grammar/verify.rs to work with recent master 2015-01-14 00:20:53 +01:00
Björn Steinbrink
56671cb357 Prefer GEP instructions over weird pointer casting
There are two places left where we used to only know the byte
size of/offset into an array and had to cast to i8 and back to get the
right addresses. But by now, we always know the sizes in terms of the
number of elements in the array. In fact we have to add an extra Mul
instruction so we can use the weird cast-to-u8 code. So we should really
just embrace our new knowledge and use simple GEPs to do the address
calculations.

Additionally, the pointer calculations in bind_subslice_pat don't handle
zero-sized types correctly, producing slices that point outside the
array that is being matched against. Using GEP fixes that as well.

Fixes #3729
2015-01-13 23:47:38 +01:00
Florian Hahn
d397a3e654 Handle question marks in model lexer, closes #15879 2015-01-13 23:31:53 +01:00
bors
c366e433c1 auto merge of #20957 : Ms2ger/rust/closures, r=alexcrichton
Returning the vectors directly makes the code a lot cleaner.
2015-01-13 21:29:00 +00:00
Rohit Joshi
806c13589a Updating email address for Rohit Joshi
When I submitted a PR #20326, mistakenly was committed using my work email. Correct the email address.
2015-01-13 16:28:44 -05:00
Steve Klabnik
ad0ce88c6c Provide example of generic inverse()
Fixes #17224
2015-01-13 15:42:38 -05:00
bors
4fd1e6235d auto merge of #20367 : retep998/rust/master, r=alexcrichton
Also adjusted some of the FFI definitions because apparently they don't use the long pointer prefix.
Gives a free performance boost because `SRWLock` is several times faster than `CriticalRegion` on every Windows system tested.
Fixes #19962
2015-01-13 19:11:47 +00:00
Chase Southwood
07f723f19b Remove unneeded box import in examples 2015-01-13 12:56:10 -06:00
Simonas Kazlauskas
1217007c83 Use if-let in std::result documentation
This takes an opportunity to show yet-another-way of dealing with
Results and matching.
2015-01-13 20:25:13 +02:00
Simonas Kazlauskas
064c21efd2 Fix a typo in std::result documentation 2015-01-13 20:24:48 +02:00
Seth Faxon
9af8a646a9 Make the Rust Book more mobile friendly 2015-01-13 09:41:26 -08:00
Steve Klabnik
599232503a Add notes about 32 vs 64 bit Windows 2015-01-13 10:43:52 -05:00
bors
e94a9f033e auto merge of #20997 : nikomatsakis/rust/assoc-types-enum-field-access, r=nick29581
Various fixes to enum field access. Builds on PR #20955.

r? @nick29581
2015-01-13 14:21:39 +00:00
Niko Matsakis
d3cecbf6f6 Support UFCS style calls to a method defined in Trait where Self
is bound to a trait object. Fixes #20676.
2015-01-13 09:17:07 -05:00
Greg Chapple
4b14f67df3 Replace usage of deriving with derive in docs 2015-01-13 13:57:09 +00:00
Felix S. Klock II
f0d7871ab7 graphviz-flowgraph tests: use new --xpretty flowgraph,unlabelled option.
This makes the tests much easier to maintain; the particular details
of the labels attached to exiting scopes is not worth the effort
required to keep it up to date as things change in the compiler
internals.
2015-01-13 13:46:29 +01:00
bors
6ba9acd8ab auto merge of #20963 : nick29581/rust/ast_map, r=eddyb 2015-01-13 11:56:31 +00:00
Travis Watkins
9f5fc563d3 Fix test failures 2015-01-13 05:43:30 -06:00
Ms2ger
756466bfd0 Rewrite each_attr to return a vector. 2015-01-13 10:41:56 +01:00
Ms2ger
27db3f0585 Return the Vec from csearch::get_item_attrs.
Using a closure unnecessarily obfuscates the code.
2015-01-13 10:28:06 +01:00
Ms2ger
56f3554f52 Return the Vec from decoder::get_item_attrs.
Using a closure unnecessarily obfuscates the code.
2015-01-13 10:28:06 +01:00
bors
f1241f14dc auto merge of #20960 : erickt/rust/fix-associated-types-debuginfo, r=michaelwoerister
Closes #20797
2015-01-13 09:06:35 +00:00
Brian Anderson
e46620af45 std: Deprecate finally module
No in-tree users. Ugly interface. Closes #14332.
2015-01-13 00:59:30 -08:00
Travis Watkins
2cc81ac531 Return passed value from black_box
By returning the passed value black_box can be used on data being
passed to a function being benchmarked. This ensures the compiler
does not optimize the function for the input which could result in
the entire function being optimized away.
2015-01-13 01:29:01 -06:00