Commit Graph

25419 Commits

Author SHA1 Message Date
bors ab66f76254 auto merge of #11305 : pcwalton/rust/at-patterns, r=pcwalton
r? @nikomatsakis
2014-01-13 14:51:34 -08:00
Patrick Walton 119c6141f5 librustc: Remove `@` pointer patterns from the language 2014-01-13 14:45:21 -08:00
bors 480b0f4813 auto merge of #11518 : brson/rust/moreandroidxfails, r=alexcrichton 2014-01-13 13:21:39 -08:00
Brian Anderson 54e662acbd xfail another native test on android (#11419) 2014-01-13 13:15:06 -08:00
Patrick Walton ce358fca33 libsyntax: Make managed box `@` patterns obsolete 2014-01-13 13:11:01 -08:00
bors b8c60f906b auto merge of #11482 : fhahn/rust/issue-8005-better-error-msg-semi-last-stmt, r=alexcrichton
This is a patch for #8005, thanks @lfairy for the hint.

It seems like `block.expr` is None, if the last line of a function has a semi colon (= it ends with a statement).

@kmcallister does this error message cover the intended use cases? 
I'm not sure about the message, the wording and the span could probably be improved.
2014-01-13 11:06:41 -08:00
Florian Hahn c74c854adc Better error message for semicolon on the last line of a function
closes #8005
2014-01-13 19:45:34 +01:00
bors b97ace2f6b auto merge of #11513 : huonw/rust/generic-errs, r=alexcrichton
Unsuffixed literals like 1 and 1.1, and free type parameters sometimes
have to be printed in error messages, which ended up with \<V0>, \<VI0>
and \<VF0>. This change puts the words "generic" and "integer"/"float"
into the message so it's not a completely black box.
2014-01-13 09:21:41 -08:00
Huon Wilson e25d7069b5 rustc: make error messages containing generic more self-explanatory.
Unsuffixed literals like 1 and 1.1, and free type parameters sometimes
have to be printed in error messages, which ended up with <V0>, <VI0>
and <VF0>. This change puts the words "generic" and "integer"/"float"
into the message so it's not a completely black box.
2014-01-13 22:34:50 +11:00
bors caf316a31e auto merge of #11510 : wycats/rust/clone-treeset, r=huonw 2014-01-13 02:31:51 -08:00
Yehuda Katz 8f6ffdefc3 Add Clone to TreeSet 2014-01-13 02:21:19 -08:00
bors b93a4dac2e auto merge of #11506 : brson/rust/androidfixes, r=cmr 2014-01-12 19:36:37 -08:00
Brian Anderson 58097c1a73 xfail two tests that hang on Android (#11419) 2014-01-12 19:31:26 -08:00
bors cb9c102392 auto merge of #11442 : brson/rust/0.10-pre, r=alexcrichton 2014-01-12 17:51:33 -08:00
Brian Anderson 46905c04f5 Bump version to 0.10-pre 2014-01-12 17:45:22 -08:00
bors 6e352d7631 auto merge of #11504 : bjz/rust/std-num-cleanups, r=brson
The gamma and bessel functions are of little utility outside a small specialized subset of use cases, and so they don't really make sense for inclusion in the standard library. The only reason they were included in the first place was to mirror libm, which is not a very good justification. If people need them for their own projects then they can make their own bindings to libm (which isn't too hard).
2014-01-12 16:16:34 -08:00
Brendan Zabarauskas cd248e29b1 Clean up std::num::cmath and remove stale comments 2014-01-13 10:33:54 +11:00
Brendan Zabarauskas 1246f0b094 Remove RealExt
These functions are of little utility outside a small subset of use cases. If people need them for their own projects then they can use their own bindings for libm (which aren't hard to make).
2014-01-13 10:32:50 +11:00
bors 0091a15a43 auto merge of #11502 : jhasse/rust/crate_type, r=alexcrichton
This is unnecessary and also leads to a bug: When the user specifies

```
#[crate_type = "rlib"];
```

rustpkg still creates a dylib.

Also it's good not to duplicate functionality. `build_session_options` handles this just fine.
2014-01-12 12:31:49 -08:00
bors f42440bd73 auto merge of #11471 : ktt3ja/rust/issue-11380, r=alexcrichton
Dead code pass now explicitly checks for `#[allow(dead_code)]` and
`#[lang=".."]` attributes on items and marks them as live if they have
those attributes. The former is done so that if we want to suppress
warnings for a group of dead functions, we only have to annotate the
"root" of the call chain.

Close #11380 and #11440.
2014-01-12 11:16:32 -08:00
Kiet Tran deb3ca53a8 Mark allowed dead code and lang items as live
Dead code pass now explicitly checks for `#[allow(dead_code)]` and
`#[lang=".."]` attributes on items and marks them as live if they have
those attributes. The former is done so that if we want to suppress
warnings for a group of dead functions, we only have to annotate the
"root" of the call chain.
2014-01-12 13:54:36 -05:00
Jan Niklas Hasse e64b49d8ff Don't overwrite the options.output value from build_session_options 2014-01-12 19:16:25 +01:00
bors 1fda761e9c auto merge of #11495 : kud1ing/rust/backticks, r=huonw 2014-01-12 02:56:28 -08:00
kud1ing 871ffd1c05 more backticks 2014-01-12 10:35:10 +01:00
bors 74258eaefa auto merge of #11491 : wting/rust/wting_7959_document_inline_attributes, r=alexcrichton
Closes #7959.
2014-01-11 23:16:27 -08:00
bors 3e8a4a0e00 auto merge of #11488 : kballard/rust/librustpkg-docs, r=brson 2014-01-11 21:26:26 -08:00
William Ting 826f24bdf1 Add inline attributes documentation.
Closes #7959.
2014-01-11 22:53:45 -06:00
Kevin Ballard d76ce5f31e Add librustuv to doc/index.md 2014-01-11 19:16:25 -08:00
Kevin Ballard de6f213927 Restore missing line breaks in doc/index.html
a30d61b05a removed all of the trailing whitespace in doc/index.md.
Unfortunately, that trailing whitespace was actually markdown syntax for
line breaks.
2014-01-11 19:15:05 -08:00
Kevin Ballard 110e5dd1ac doc: build the docs for librustpkg 2014-01-11 19:13:59 -08:00
bors c3c94ad8cb auto merge of #11483 : kballard/rust/gitignore-doc-rustuv, r=alexcrichton 2014-01-11 17:37:08 -08:00
bors 54a85d4d67 auto merge of #11480 : SiegeLord/rust/float_base, r=cmr
This fixes the incorrect lexing of things like:

~~~rust
let b = 0o2f32;
let d = 0o4e6;
let f = 0o6e6f32;
~~~

and brings the float literal lexer in line with the description of the float literals in the manual.
2014-01-11 16:21:24 -08:00
bors 68ebe8141a auto merge of #11477 : adridu59/rust/bug-report, r=cmr
Mostly cleanups for doc and READMEs. Fixes the bug reporting link.
2014-01-11 15:01:32 -08:00
Kevin Ballard 50cf55f136 Add /doc/rustuv to .gitignore 2014-01-11 14:43:58 -08:00
bors db9ef28695 auto merge of #11338 : jhasse/rust/patch-rustpkgtarget, r=alexcrichton
#11243
2014-01-11 13:06:27 -08:00
Jan Niklas Hasse e330d4b8bc Use target libraries instead of host libraries. Fixes #11243 2014-01-11 20:44:39 +01:00
SiegeLord 5ea6d0201d Tighten up float literal lexing.
Specifically, dissallow setting the number base for every type of float
literal, not only those that contain the decimal point. This is in line with
the description in the manual.
2014-01-11 14:21:59 -05:00
Adrien Tétar 72794094a1 Trim src/ README, bring back version_info everywhere 2014-01-11 19:55:24 +01:00
Adrien Tétar a30d61b05a Various READMEs and docs cleanup
Noticeably closes #11428.
2014-01-11 19:41:31 +01:00
bors 91aec7c8a6 auto merge of #11470 : eminence/rust/rustpkg_help_test, r=alexcrichton
In general, you can run "rustpkg help <cmd>" to see some specific usage information for <cmd>.  However, this was handled in a very ad-hoc and buggy manner.  For example, running "rustpkg help prefer" would actually show you the usage information for the "uninstall" cmd.  Or "rustpkg help test" would show you the usage information for the "build" command.  Or "rustpkg help list" would just run the "list" command (and not show you anything usage information)

This commit attempts to fix this by making a new HelpCmd (and handling it explicitly)
2014-01-11 10:21:22 -08:00
Andrew Chin dc21ca9833 "rustpkg prefer" should print the help for '"prefer" not "uninstall" 2014-01-11 11:48:54 -05:00
bors 29e82c65b4 auto merge of #11472 : kud1ing/rust/iOS, r=alexcrichton
This fixes #11336

I guess the type sizes are correct for both OS X and iOS, but i am not certain.
In any case, i'd rather have any iOS build at all, so that we have something to improve upon.
2014-01-11 08:46:20 -08:00
bors 4bdda359c3 auto merge of #11252 : eddyb/rust/ty-cleanup, r=pcwalton 2014-01-11 07:31:40 -08:00
Eduard Burtescu 08ac616d37 Use the right type for self in methods and remove obsoleted items.
Fixes #7411, #10615.
2014-01-11 16:40:23 +02:00
Eduard Burtescu 7a305f9e83 Removed free_glue from tydesc (the code is still generated, but inlined in drop_glue). 2014-01-11 16:40:23 +02:00
Eduard Burtescu 5ad2a7825b Removed obsolete 'e' prefix on ty_evec and ty_estr. 2014-01-11 16:40:23 +02:00
bors 99df8a3f15 auto merge of #11463 : brson/rust/envcaps, r=huonw
Death to caps.
2014-01-11 06:11:22 -08:00
bors e19b1b129b auto merge of #11468 : klutzy/rust/workcache-cleanup, r=alexcrichton 2014-01-11 04:46:21 -08:00
bors 01794cc993 auto merge of #11461 : alexcrichton/rust/rustdoc-fixes, r=brson
See the commits.
2014-01-11 02:41:23 -08:00
Alex Crichton 60880af47d rustdoc: Don't show a fields header if there are none 2014-01-11 01:52:53 -08:00