Commit Graph

23276 Commits

Author SHA1 Message Date
reedlepee
930ded404a Removed the unnecesary comments 2013-10-23 01:10:50 +05:30
reedlepee
92662a9f91 Removed unnecessary comments and white spaces as suggested 2013-10-23 01:10:50 +05:30
reedlepee
ad465441ba Removed Unnecessary comments and white spaces #4386 2013-10-23 01:10:50 +05:30
reedlepee
0ada7c7ffe Making fields in std and extra : private #4386 2013-10-23 01:10:50 +05:30
reedlepee
dadb6f0cd9 Don't Make str field private 2013-10-23 01:10:49 +05:30
bors
fd2c0128a7 auto merge of #10006 : alexcrichton/rust/another-massive-rename, r=brson
Drop the `2` suffix on all of them, updating all code in the process of doing so. This is a completely automated change, and it's dependent on the snapshots going through.
2013-10-22 09:24:48 -07:00
bors
cd8c7cf612 auto merge of #10002 : catamorphism/rust/bug-report-docs, r=alexcrichton
r? @alexcrichton And also reference the bug report HOWTO in CONTRIBUTING.md
2013-10-22 08:11:52 -07:00
Alex Crichton
3ed18bdd42 Remove old logging from the tutorial 2013-10-22 08:10:34 -07:00
Alex Crichton
7aa32f7d8e Remove the now-duplicate logging macros 2013-10-22 08:09:56 -07:00
Alex Crichton
daf5f5a4d1 Drop the '2' suffix from logging macros
Who doesn't like a massive renaming?
2013-10-22 08:09:56 -07:00
bors
15a6bdebab auto merge of #10009 : LeoTestard/rust/asm-feature-gated, r=huonw
Suite of #9991
2013-10-22 04:46:22 -07:00
Léo Testard
c4bcf7714b Activate checking code for ASM feature gate. Fix tests 2013-10-22 13:41:25 +02:00
bors
c6337f2099 auto merge of #10003 : alexcrichton/rust/issue-fixes, r=brson
Commits have all the fun details.
2013-10-22 01:31:24 -07:00
bors
886a4ddcec auto merge of #9992 : astrieanna/rust/rm_rusti, r=alexcrichton
It seems like rusti has been removed, except for one reference in one Makefile. This reference breaks building rust on my computer because the "all-target" rule has rusti as a target.

~~~~
make: *** No rule to make target `x86_64-unknown-linux-gnu/stage2/bin/rusti', needed by `all-target-x86_64-unknown-linux-gnu-host-x86_64-unknown-linux-gnu'.  Stop.
~~~~

Removing this line fixes things for me.
2013-10-21 21:41:25 -07:00
bors
f6fccdea8a auto merge of #9982 : danluu/rust/local_delc_xfail, r=brson
This patch is trivial, but it comes with a question. Does Mozilla need to own the copyright on code submitted to Rust?

The reason I ask is that, since the last time I submitted anything to a Mozilla project, I started working at Google, and they (by default) own the copyright on code that I write (even in my spare time). There's a process to assign copyright to another entity, and it should be a formality for something like this, but I'd still have to go through it if that's a requirement for Rust.

Anyway, I'm submitting this incredibly trivial thing because, if I have to go through that process for the first time, I'd like it to be for something that's trivial, so I can see how much of a hassle it is (if any) without having invested much time up front.

I didn't see anything about copyright in the Mozilla contributor's agreement, but I could have easily missed something somewhere else.
2013-10-21 19:26:19 -07:00
bors
8a60caa107 auto merge of #9960 : adridu59/rust/patch-doc-limited, r=alexcrichton
This is #9868 but doesn't move css files to a separate subfolder, which was causing errors on the Rust buildbot.

@alexcrichton
2013-10-21 18:06:34 -07:00
bors
7e4404b6fb auto merge of #9937 : brson/rust/log_str, r=alexcrichton 2013-10-21 15:46:23 -07:00
bors
6dd6623b71 auto merge of #9936 : madjar/rust/master, r=alexcrichton
This should close #9468.

I removed the test stating that nested comments should not be implemented.

I had a little chicken-and-egg problem because a comment of the std contains "/*", and adding support for nested comment creates a backward incompatibility in that case, so I had to use a dirty hack to get stage1 and stage2 to compile. This part should be revert when this commit lands in a snapshot.

This is my first non-typo contribution, so I'm open to any comment.
2013-10-21 14:21:54 -07:00
bors
ece5028a8b auto merge of #10000 : cmr/rust/snapshot, r=alexcrichton 2013-10-21 13:11:37 -07:00
Georges Dubus
1dc3d0bf86 Add support for nested comments
Fixes #9468.
2013-10-21 21:58:34 +02:00
Tim Chevalier
5afd760834 syntax: Add the Bug Report HOWTO URL to the ICE message
And also reference the bug report HOWTO in CONTRIBUTING.md
2013-10-21 12:11:24 -07:00
bors
d65dbe230d auto merge of #9997 : thestinger/rust/float, r=thestinger 2013-10-21 12:01:34 -07:00
Brian Anderson
3675e42334 std: Move sys::log_str to repr::repr_to_str. Further work on #2240. 2013-10-21 11:59:23 -07:00
Alex Crichton
41f6e97a44 rustdoc: Render default methods for impls as well
This does not work for cross-crate implementations of traits. Cross-crate
implementations are a separate issue that should be addressed separately.
Basically when an implementation of an external trait is detected, the trait
would have to be loaded at that time (or possibly sooner...). Rustdoc currently
doesn't have the proper infrastructure for adding this.

Closes #9985
cc #9999
2013-10-21 11:43:14 -07:00
Corey Richardson
1122d6ab4a Register snapshots 2013-10-21 14:43:11 -04:00
Daniel Micay
462a28d003 fix the new floating point intrinsics 2013-10-21 14:26:07 -04:00
bors
cf7b9eb51f auto merge of #9736 : catamorphism/rust/rustpkg-issue-8520, r=cmr
r? @cmr As per #8520, find crates in the current working directory even
if it's not a workspace.

Closes #8520
2013-10-21 10:51:29 -07:00
Alex Crichton
bf6bb01a22 rustdoc: Don't overflow long type/module names
Closes #9862
2013-10-21 10:48:57 -07:00
Tim Chevalier
5412794192 rustpkg: Search for crates in the current directory
As per #8520, find crates in the current working directory even
if it's not a workspace.

Closes #8520
2013-10-21 10:43:42 -07:00
Alex Crichton
a25bbcc27f Propagate reachability through reexported impls
When re-exporting a trait/structure/enum, then we need to propagate the
reachability of the type through the methods that are defined on it.

Closes #9906
Closes #9968
2013-10-21 10:37:36 -07:00
Leah Hanson
9ced953b12 Remove rusti reference from pp.mk 2013-10-21 10:57:20 -05:00
bors
ebb9b46191 auto merge of #9986 : thestinger/rust/float, r=cmr
copysign, ring, nearbyint, round
2013-10-21 08:56:28 -07:00
Dan Luu
3503d0bcd1 Make fn pub for windows compatibility 2013-10-21 07:45:16 -05:00
bors
6e6981c3eb auto merge of #9991 : LeoTestard/rust/asm-feature-gate, r=huonw
Fixes #9882
Note that the actual checking code is inside a if false in order to compile libstd properly.
libstd uses asm! in rt. If we put ```#[feature(asm)]``` in libstd, it fails to build at stage0 beacause the
asm feature is not known yet by the snapshot compiler.
We must wait that this PR arrives into the snapshot in order to actually activate the checking code.
2013-10-21 05:21:27 -07:00
Léo Testard
c5346fea38 Add a feature flag for ASM 2013-10-21 14:04:29 +02:00
bors
04ac697f52 auto merge of #9979 : alexcrichton/rust/print-no-alloc, r=huonw
Instead use format_args! to pass around a struct to pass along into std::fmt
2013-10-21 02:26:24 -07:00
Daniel Micay
4533432612 expose new floating point intrinsics
copysign, ring, nearbyint, round
2013-10-21 04:17:03 -04:00
bors
cd59a7c464 auto merge of #9976 : thestinger/rust/typo, r=thestinger 2013-10-20 21:11:19 -07:00
Adrien Tétar
22465e9561 doc: fix links to comply with the new rustdoc
Closes #9911.
2013-10-21 04:13:22 +02:00
Adrien Tétar
694b624305 rustdoc: nitpicks & cleanup 2013-10-21 04:13:09 +02:00
Adrien Tétar
3995495c4a doc: expand tutorial/manual CSS
Cleanup, edit, add some Bootstrap v3.0.0 elements.
2013-10-21 04:12:58 +02:00
Adrien Tétar
8d97db48d4 doc: tidy and cleanup CSS deps, add tutorial PDF generation 2013-10-21 04:12:12 +02:00
Dan Luu
47fc24bd8f Use updated local declaration syntax. 2013-10-20 17:54:53 -05:00
Alex Crichton
df6225b8c3 Don't allocate a string when calling println
Instead use format_args! to pass around a struct to pass along into std::fmt
2013-10-20 15:42:24 -07:00
Daniel Micay
93b95dd394 fix typo 2013-10-20 15:12:13 -04:00
bors
69860b79b8 auto merge of #9812 : HNO3/rust/windows-utf8, r=alexcrichton
This fixes #9418 and #9618, and potential problems related to directory walking.
2013-10-20 10:31:17 -07:00
bors
424c171da5 auto merge of #9973 : huonw/rust/7580, r=luqmana
Fixed by the privacy changes that allowed the `mod std {}` at the top
level of `std` to be non-`pub`.
2013-10-20 02:26:17 -07:00
Huon Wilson
ab045fa797 testsuite: test for fixed issue. Closes #7580.
Fixed by the privacy changes that allowed the `mod std {}` at the top
level of `std` to be non-`pub`.
2013-10-20 20:19:29 +11:00
LEE Wondong
3e53c929a2 Fix unicode errors on Windows in path_is_dir, path_exists, getcwd and rust_localtime.
This make these functions use wchar_t version of APIs, instead of char version.
2013-10-20 15:02:03 +09:00
bors
69e46f3aa9 auto merge of #9956 : sfackler/rust/more-more-visibility, r=alexcrichton 2013-10-19 14:01:10 -07:00