Felix S. Klock II
b8ec7e88fc
unit test for checked overflow during signed negation.
2015-04-17 15:32:30 +02:00
Manish Goregaokar
c98115cefb
Remove info for path (fixup #24452 )
2015-04-17 19:01:33 +05:30
Manish Goregaokar
1b6bd92790
Rollup merge of #24515 - steveklabnik:gh24070, r=Gankro
...
Fixes #24070
or rather, fixes it even though it's already been fixed: slices are before now. But the linking is nice anyway.
2015-04-17 19:01:32 +05:30
Manish Goregaokar
27dc069234
Rollup merge of #24513 - j1n3l0:patch-1, r=alexcrichton
2015-04-17 19:01:32 +05:30
Manish Goregaokar
2688cebe4a
Rollup merge of #24510 - fhartwig:broken-links, r=nikomatsakis
...
Fix broken links in various parts of the docs.
I also found a dead link [here](http://doc.rust-lang.org/nightly/alloc/boxed/ ) (the first link on the page), but the chapter of the book that it used to point at seems to be gone, and I'm not sure what should happen to that link.
2015-04-17 19:01:31 +05:30
Manish Goregaokar
6fcd852da7
Rollup merge of #24509 - steveklabnik:gh23962, r=nikomatsakis
...
FIxes #23962
2015-04-17 19:01:31 +05:30
Manish Goregaokar
1d26e5f277
Rollup merge of #24508 - steveklabnik:gh24228, r=alexcrichton
...
Fixes #24228
2015-04-17 19:01:31 +05:30
Manish Goregaokar
52db18559b
Rollup merge of #24507 - steveklabnik:gh24185, r=alexcrichton
...
Fixes #24185
2015-04-17 19:01:31 +05:30
Manish Goregaokar
7c3975aa13
Rollup merge of #24501 - frewsxcv:patch-14, r=steveklabnik
2015-04-17 19:01:30 +05:30
Manish Goregaokar
d30094321d
Rollup merge of #24499 - Munksgaard:methodcallee-debug, r=alexcrichton
...
This fixes #24497
2015-04-17 19:01:30 +05:30
Manish Goregaokar
32c70104d1
Rollup merge of #24498 - fhartwig:docs-fixes, r=steveklabnik
2015-04-17 19:01:30 +05:30
Manish Goregaokar
38588ecd8f
Rollup merge of #24496 - aramvisser:patch-1, r=alexcrichton
2015-04-17 19:01:29 +05:30
Manish Goregaokar
89bfacc2e9
Rollup merge of #24494 - mvdnes:deterministic-sidebar, r=alexcrichton
...
This ensures that later when generating HTML, the JSON will be sorted aswell.
We now have a more deterministic build of sidebar-items.js
Closes #24473
2015-04-17 19:01:29 +05:30
Manish Goregaokar
28bc94a20a
Rollup merge of #24493 - aethanyc:fix-stackoverflow-link, r=steveklabnik
...
The document does not display properly if the link id contains a space.
2015-04-17 19:01:29 +05:30
Manish Goregaokar
3b7f2ce8ee
Rollup merge of #24490 - lstat:doc-typo, r=alexcrichton
2015-04-17 19:01:28 +05:30
Manish Goregaokar
e81cb172e3
Rollup merge of #23782 - mvdnes:obsolete_note, r=alexcrichton
...
When emmitting a note, previously it was not known if the note was for an error or a
warning. If it was for a warning, then with `-Awarnings` it should not have been print.
The `emit_for` function allows someone to specify which level should determine its visibility.
An example:
```rust
extern crate \"std\" as std2;
fn main() {}
```
When compiling with `-Awarnings`, this would previously emit `note: use an identifier not in quotes instead` (and nothing else).
With this patch, it will be completely silent as expected.
2015-04-17 19:01:28 +05:30
Manish Goregaokar
bdef7f62f5
Rollup merge of #24491 - bluss:rangefull-debug, r=huonw
...
Fix Debug impl for RangeFull
The Debug impl was using quotes, which was inconsistent:
=> (.., 1.., 2..3, ..4)
(\"..\", 1.., 2..3, ..4)
Fix to use just ..
2015-04-17 19:01:28 +05:30
Manish Goregaokar
a1bb0a182c
Rollup merge of #24475 - arielb1:i24363-hacky-hack, r=pnkfelix
...
Fix #24363
2015-04-17 19:01:28 +05:30
Manish Goregaokar
9c4995f694
Rollup merge of #24454 - aochagavia:debug, r=alexcrichton
...
Implement `Debug`, `Display` and `Error` for `FatalError` and `ExplicitBug`
2015-04-17 18:32:26 +05:30
Manish Goregaokar
3118cd7dad
Rollup merge of #24452 - tbu-:pr_file_path, r=aturon
...
Fixes #22190 .
2015-04-17 18:32:25 +05:30
Manish Goregaokar
373463615a
Rollup merge of #24430 - laumann:trace-macros-flag, r=pnkfelix
...
This is the second attempt at turning the trace_macros macro into a compiler flag.
See #22619
2015-04-17 18:32:25 +05:30
Felix S. Klock II
5e7785cabc
Workaround deliberate overflowing negation in serialize::json.
2015-04-17 14:54:55 +02:00
Felix S. Klock II
e9f892acc4
side-step potentially panic'ing negate in fn abs
.
2015-04-17 14:54:15 +02:00
Felix S. Klock II
c34fa8b2c5
Add conditional overflow-checking to signed negate operator.
2015-04-17 14:45:14 +02:00
Felix S. Klock II
9a6d7fb9b0
factor out useful helper.
2015-04-17 14:45:14 +02:00
Michael Sproul
6d2b6d5a19
Enforce 80 char lines in extended errors.
2015-04-17 21:35:24 +10:00
Michael Sproul
c54f43a5d1
Update/add messages for E0{267,268,296,303}.
2015-04-17 21:35:24 +10:00
Michael Sproul
dd5eed4b81
Validate format of extended error descriptions.
2015-04-17 21:30:41 +10:00
bors
b7fb57529a
Auto merge of #24512 - steveklabnik:rollup, r=steveklabnik
...
- Successful merges: #23782 , #24455 , #24490 , #24493 , #24494 , #24496 , #24498 , #24499 , #24501 , #24502 , #24506 , #24507 , #24508 , #24509 , #24510
- Failed merges: #24488
2015-04-17 05:52:35 +00:00
Ryan Prichard
317eac3277
Call write_fmt directly to format an Arguments value.
...
It's just as convenient, but it's much faster. Using write! requires an
extra call to fmt::write and a extra dynamically dispatched call to
Arguments' Display format function.
2015-04-16 21:49:53 -07:00
bors
7fbedc58e3
Auto merge of #24422 - pnkfelix:typeck-highlevel-before-bodies, r=nikomatsakis
...
typeck: Do high-level structural/signature checks before function body checks.
This avoids various ICEs, e.g. premature calls to cat_expr that yield the dreaded "cat_expr Errd" ICE.
However, it also means that some early error feedback is now not provided. This may be for the best, because the error feedback were were providing in some of those cases were false positives -- it was spurious feedback and a distraction from the real problem.
So it is not 100% clear whether we actually want to put this change in or not. I think its a net win, but others might disagree.
(Kudos to @arielb1 for suggesting this modification.)
2015-04-17 03:50:30 +00:00
Florian Hartwig
a4be1ec140
Fix broken links in the docs
2015-04-16 23:50:16 -04:00
Steve Klabnik
525a1462b5
Descripe tuple indexing in TRPL
...
FIxes #23962
2015-04-16 23:50:16 -04:00
Steve Klabnik
dc4554a9b3
Make note of documentation tests and binaries
...
Fixes #24228
2015-04-16 23:50:16 -04:00
Steve Klabnik
a2ccc81f4b
remove example usage of from_str in error docs
...
Fixes #24185
2015-04-16 23:50:16 -04:00
Steve Klabnik
3ca83a79bf
Make note of possible XSS in Rustdoc
...
Fixes #24160
2015-04-16 23:50:12 -04:00
Steve Klabnik
d9515ad40f
Link up some stuff in the vectors chapter
...
Fixes #24070
or rather, fixes it even though it's already been fixed: slices are before now. But the linking is nice anyway.
2015-04-16 23:17:36 -04:00
Krzysztof Drewniak
f64510d72b
Suppress improper_ctypes warnings when compiling liballoc with external_features
2015-04-16 21:34:12 -05:00
Steve Klabnik
00a8d65ef3
document missing attributes in the reference
...
Fixes #24406
2015-04-16 22:23:37 -04:00
Corey Farwell
3908bae77b
Indicate None is code-like in doc comments
2015-04-16 22:23:37 -04:00
Philip Munksgaard
35a4100af0
Add Debug to MethodCallee
...
This fixes #24497
2015-04-16 22:23:37 -04:00
Florian Hartwig
16b60cf003
Fix some broken links in the book
2015-04-16 22:23:37 -04:00
Aram Visser
ff1dcba342
Fixed typo in hash_map::Entry documentation
2015-04-16 22:23:37 -04:00
Mathijs van de Nes
32956cb565
Use BTreeMap in build_sidebar_items
...
This ensures that later when generating HTML, the JSON will be sorted aswell.
We now have a deterministic build of sidebar-items.js
2015-04-16 22:23:37 -04:00
Ting-Yu Lin
e12671b4d7
Fix link id for stackoverflow
...
The document does not display properly if the link id contains a space.
2015-04-16 22:23:36 -04:00
Luke Gallagher
6d36714633
Fix some documentation typos
2015-04-16 22:23:36 -04:00
Chris Wong
0e4a77bbfe
rustc: Add long diagnostics for E0306 and E0307
2015-04-16 22:23:36 -04:00
Chris Wong
77e8ddfaf3
rustc: Add long diagnostics for E0170
2015-04-16 22:23:36 -04:00
Chris Wong
aaf92f04d1
rustc: Add long diagnostics for E0161
2015-04-16 22:23:36 -04:00
Chris Wong
c08facfcfd
rustc: Add long diagnostics for E0158
2015-04-16 22:23:36 -04:00