Steve Klabnik
07fb31a099
Rollup merge of #21471 - michaelwoerister:associated-types, r=alexcrichton
...
This should fix issue #20797 (but I don't want to close it automatically).
As the actual fix is very small this would be a perfect candidate for a rollup.
2015-01-22 18:09:59 -05:00
Steve Klabnik
1644978616
Rollup merge of #21450 - alfie:book2, r=steveklabnik
...
Compiling won't produce an executable just yet because (as stated in the next
paragraph) there are errors. By removing this sentance, the reader won't get
confused when they expect a successful compile i.e. if they don't read ahead one
paragraph, they are going to be checking their code and wondering why it's not
compiling.
2015-01-22 18:09:58 -05:00
Steve Klabnik
5f71c22d87
Rollup merge of #21373 - angst7:pointer_doc_1, r=steveklabnik
...
Updated incorrect error messages, and removed explicit return statements from example code.
2015-01-22 18:09:58 -05:00
Steve Klabnik
3364d41282
Rollup merge of #21325 - nagisa:thread-panicking, r=steveklabnik
...
Previous wording wasn’t clear about its actual behaviour. It could be
interpreted as answering either:
* Can current thread panic?
* Is current thread unwinding because of panic?
r? @steveklabnik
2015-01-22 18:09:58 -05:00
Steve Klabnik
4db64bd824
Rollup merge of #21217 - Gankro:docadoca, r=steveklabnik
...
Not sure on what *exactly* should be said here, but I think this is the most important bit. This PR also establishes conventions for describing performance minimally.
I suggest to describe preformance for individual methods we use a `# Performance` heading. Not sure if we should have
```
# Performance: O(1)
details details
```
or
```
# Performance:
O(1)
details details
```
Since I think most methods don't need discussion, the former seems more resonable. But it's kind of weird to have info "in" the heading.
r? @steveklabnik
2015-01-22 18:09:58 -05:00
Steve Klabnik
c76ce8c36c
Rollup merge of #21091 - steveklabnik:add_attribute_docs, r=huonw
...
Fixes #6444
I need some help with the macro docs here, as I couldn't figure it out. @kmcallister @eddyb or someone else?
2015-01-22 18:09:57 -05:00
Steve Klabnik
d1c7ae476b
Rollup merge of #21056 - steveklabnik:return_strings, r=sfackler
...
When we moved over to the book, we lost this.
2015-01-22 18:09:57 -05:00
Steve Klabnik
4a6af11c34
Document remaining attributes and macros
...
Fixes #6444
2015-01-22 18:05:15 -05:00
Steve Klabnik
5a3bdedd77
Beef up docs for Box<T>
2015-01-22 17:30:23 -05:00
Brian Anderson
d3c0bb416e
Put #[staged_api] behind the 'staged_api' gate
2015-01-22 13:47:56 -08:00
Brian Anderson
2b879a08b5
Make test harness use unstable APIs without allow(unstable)
2015-01-22 13:47:53 -08:00
Niko Matsakis
984dc03df6
Do not cache ambiguous results unless there is at least some inference by-product within.
...
Fixes #19499 .
2015-01-22 15:37:03 -05:00
Niko Matsakis
69bc112e72
Do not propagate the region requirements on the projected type to the input types it is being projected from.
...
Fixes #21520 .
2015-01-22 15:23:27 -05:00
Daniel Grunwald
db013f9f45
Fix some grammar inconsistencies for the '..' range notation.
...
Grammar changes:
* allow 'for _ in 1..i {}' (fixes #20241 )
* allow 'for _ in 1.. {}' as infinite loop
* prevent use of range notation in contexts where only operators of high
precedence are expected (fixes #20811 )
Parser code cleanup:
* remove RESTRICTION_NO_DOTS
* make AS_PREC const and follow naming convention
* make min_prec inclusive
2015-01-22 19:55:15 +01:00
Sean Patrick Santos
918dd3488f
Attempt fix for assertion on Windows, and add extra output for debugging.
2015-01-22 11:54:45 -07:00
John Kåre Alsaker
4cfb70026c
Better inline assembly errors
2015-01-22 19:43:39 +01:00
blackbeam
fd029209ec
Add test for has_test_signature
for explicit return
2015-01-22 21:38:00 +03:00
Steve Klabnik
cef82952b2
Return the String guide to its former glory.
...
When we moved over to the book, we lost this.
2015-01-22 13:33:44 -05:00
Sean T Allen
42cbd7a9bd
Reference correct fn during lifetime ellision
2015-01-22 13:17:23 -05:00
bors
8160fc4786
Auto merge of #21078 - js-ojus:master, r=steveklabnik
...
* Include an illustration of a function that accepts two closures.
2015-01-22 16:50:17 +00:00
bors
b7930d93d9
Auto merge of #21187 - oli-obk:feature/hint_struct_field_access, r=alexcrichton
...
rebase and fix of #19267
2015-01-22 12:09:02 +00:00
blackbeam
3dbac7882e
libsyntax: fix for has_test_signature
2015-01-22 12:29:49 +03:00
P1start
87db16cecd
core::marker: s/task/thread/
2015-01-22 22:22:16 +13:00
P1start
be138ed2bd
Add #[rustc_on_unimplemented]
annotations to more traits
2015-01-22 22:22:04 +13:00
Ahmed Charles
cb020db55a
Remove remaining stats and boxplot code.
2015-01-22 00:58:50 -08:00
Ahmed Charles
989fbfde39
Make fmt_metrics() part of the impl.
2015-01-22 00:56:10 -08:00
Ahmed Charles
8a6a129aec
Remove save() and load().
2015-01-22 00:56:10 -08:00
Ahmed Charles
27b3e14d7f
Cleanup write_run_finish().
2015-01-22 00:56:10 -08:00
Richo Healey
48aa068286
powerpc: Fix liblibc
...
When I wrote this code, my janky shim to verify the constants didn't
work as intended.
This fixes everything I've run into since merge, which is hopefully
everything.
2015-01-21 22:46:16 -08:00
bors
5d2056a7e3
Auto merge of #21473 - alexcrichton:rollup, r=alexcrichton
2015-01-22 06:12:46 +00:00
Alex Crichton
90af72378d
Make diagnostic ordering deterministic
2015-01-21 20:25:19 -08:00
KernelJ
a2936a3a69
Make compiletest set an environment variable so that on Windows 32-bit test executables containing certain substrings (e.g. 'install', 'setup', 'update', 'patch') are not blocked by UAC's Installer Detection Technology.
2015-01-22 03:42:16 +00:00
Brian Anderson
41278c5441
Remove 'since' from unstable attributes
2015-01-21 19:25:55 -08:00
Brian Anderson
0768892abe
Minor fixes
2015-01-21 16:16:22 -08:00
Brian Anderson
18d144ac02
Implement unused features check
2015-01-21 16:16:22 -08:00
Brian Anderson
e62c37eb8d
Fix up some tests for feature staging
2015-01-21 16:16:22 -08:00
Brian Anderson
11f4d62a06
Add a lint for library features
...
Does a sanity check of the version numbers.
2015-01-21 16:16:21 -08:00
Brian Anderson
7b73ec4698
Tie stability attributes to feature gates
2015-01-21 16:16:21 -08:00
Brian Anderson
94ca8a3610
Add 'feature' and 'since' to stability attributes
2015-01-21 16:16:18 -08:00
Steven Allen
1479de8688
Add test cases for ExactSizeIterator impls
...
ByRef is not tested included because it is a trivial pass through.
2015-01-21 19:10:41 -05:00
Steve Klabnik
22d2387db2
add doc examples for connect/concat
2015-01-21 17:56:33 -05:00
Alex Crichton
91cec5b57e
Revert "Use assume to inform the optimiser about refcount invariants"
...
This reverts commit a729a40494
.
2015-01-21 13:55:14 -08:00
Alex Crichton
e6f85c2f78
Revert "Add assumptions that the pointer is non-null"
...
This reverts commit 9bbfd681c9
.
2015-01-21 13:55:11 -08:00
Alex Crichton
ee253c918d
Revert "Add more explanation for why the assumes are there"
...
This reverts commit a7525bc4c8
.
2015-01-21 13:55:04 -08:00
Alex Crichton
ecbee2e568
More test fixes and rebase conflicts
2015-01-21 12:49:02 -08:00
Steve Klabnik
23da54d894
Move rustdoc.md into the book
...
Fixes #21430
2015-01-21 14:59:25 -05:00
Alex Crichton
df1cddf20a
rollup merge of #20179 : eddyb/blind-items
...
Conflicts:
src/librustc/diagnostics.rs
src/librustdoc/clean/mod.rs
src/librustdoc/html/format.rs
src/libsyntax/parse/parser.rs
2015-01-21 11:56:00 -08:00
Steve Klabnik
bbbdd1086c
Improve RwLock::new's docs
...
Fixes #21440 "
2015-01-21 14:54:52 -05:00
Alex Crichton
886c6f3534
rollup merge of #21258 : aturon/stab-3-index
...
Conflicts:
src/libcore/ops.rs
src/librustc_typeck/astconv.rs
src/libstd/io/mem.rs
src/libsyntax/parse/lexer/mod.rs
2015-01-21 11:53:49 -08:00
Alex Crichton
036d8c4189
rollup merge of #21252 : nikomatsakis/assoc-type-ice-hunt-take-2
...
Project region bounds out of the trait when deciding whether a projection type outlives a given regions.
Fixes #20890 .
Fixes #21150 .
2015-01-21 11:51:10 -08:00