Skip to content

Remove ret_style #4382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 148 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
5e94407
Fix Option::unwrap_err.
erickt Dec 21, 2012
beec519
Switch chain calls to use Option::chain method
erickt Dec 21, 2012
d6faf23
std: modernize net_url
erickt Dec 21, 2012
dbd3611
bump 0.5 => 0.6, redirect some URLs in docs.
graydon Dec 21, 2012
a45e41f
update after/syntax/rust.vim for removal of <-
thestinger Dec 22, 2012
5c6e928
tests: Add test case. Closes #3250
catamorphism Dec 22, 2012
65839fa
Emit a type error for integer literals where the expected type is char
catamorphism Dec 22, 2012
10e8e3e
Remove xfail-fast from trait-composition-trivial
catamorphism Dec 22, 2012
2452ee1
update mandelbrot to pipes, a few other updates
tedhorst Dec 20, 2012
0100b02
Fix example.
ejholmes Dec 23, 2012
4752081
Merge pull request #4271 from ejholmes/ffi-crypto
catamorphism Dec 23, 2012
889e560
Fix example.
ejholmes Dec 23, 2012
688c5b9
Add Eric Holmes to AUTHORS
catamorphism Dec 23, 2012
84671e5
Add Martin DeMello to AUTHORS
catamorphism Dec 23, 2012
50bb838
Merge pull request #4272 from ejholmes/crates-minimal-example
catamorphism Dec 23, 2012
79a68ef
Merge pull request #4251 from erickt/url
catamorphism Dec 23, 2012
0e35391
Merge pull request #4250 from thestinger/vim
catamorphism Dec 23, 2012
b1b0c29
Merge pull request #4249 from graydon/0.6-bump
catamorphism Dec 23, 2012
8ec13a9
Merge pull request #4239 from tedhorst/mandpipe
catamorphism Dec 23, 2012
197a1f9
Merge pull request #4243 from erickt/incoming
catamorphism Dec 23, 2012
cd6960e
Add Jens Nockert to AUTHORS
catamorphism Dec 23, 2012
6d8621a
core: Mark some functions as pure
cpeterso Dec 23, 2012
ffaa477
std: Mark some functions as pure
cpeterso Dec 23, 2012
feff3a9
Convert core::io to use explicit self (for issue #4118 and issue #2004)
Dec 24, 2012
2bb2536
Merge pull request #4281 from Dretch/io-explicit-self
catamorphism Dec 24, 2012
66dc489
Merge pull request #4278 from cpeterso/incoming-pure-functions
catamorphism Dec 24, 2012
46122bf
Fix wayward search and replace; unbreak build
catamorphism Dec 24, 2012
7ce0d30
Update shootout-mandelbrot to work with the new io::Writer
catamorphism Dec 24, 2012
cf768ce
Unfortunately, we can't embed cross-crate tests in the tutorial...
catamorphism Dec 24, 2012
499a587
Assign correct types to struct-like enum variant constructors
catamorphism Dec 20, 2012
3cc0fbc
doc: mention struct-like enum variants /cc #4217
catamorphism Dec 20, 2012
2cf2d6a
add Drop trait to vim syntax highlighting
thestinger Dec 25, 2012
56227c4
Merge pull request #4286 from thestinger/vim
catamorphism Dec 25, 2012
efb8711
Merge branch 'master' of github.com:mozilla/rust into incoming
erickt Dec 27, 2012
6b65939
libcore: Add symlink(2) to libc. rs=trivial
pcwalton Dec 23, 2012
57c5999
librustc: Terminate name searches at the nearest module scope for pat…
pcwalton Dec 23, 2012
a51661e
Add support for byteswap intrinsics
auroranockert Dec 27, 2012
0873553
Merge pull request #4298 from JensNockert/byteswap
catamorphism Dec 27, 2012
c880d0a
Add an xfailed test case and a CONTRIBUTING.md file
catamorphism Dec 27, 2012
84ce55e
librustc: Fix some unresolved imports in the test runner. rs=bustage
pcwalton Dec 27, 2012
e26ca35
librustc: Fix the test runner, the condition system, and core test. r…
pcwalton Dec 28, 2012
fa5ee93
libstd: Fix a bunch of resolve errors in tests. rs=fire
pcwalton Dec 28, 2012
5ec3aba
Improve documentation for each.
steveklabnik Dec 28, 2012
5b2b13b
test: option variants get imported by default
erickt Dec 28, 2012
2d7b96a
Fix compiling compiletest. rs=fire
erickt Dec 28, 2012
7af1080
Merge pull request #4308 from steveklabnik/patch-1
catamorphism Dec 28, 2012
fd095f8
Add Steve Klabnik to AUTHORS
catamorphism Dec 28, 2012
13879d8
libstd: Fix tests. rs=bustage
pcwalton Dec 28, 2012
a75c0b3
Merge pull request #4268 from catamorphism/issue-3477
catamorphism Dec 28, 2012
cef1539
Long lines
catamorphism Dec 28, 2012
c7d48ea
MIT + Apache 2 dual license
Dec 22, 2012
11a9918
Wrap lines
brson Dec 28, 2012
dda12f8
Replace much of the REPL run code with a call to compile_upto
bleibig Dec 27, 2012
5910773
doc: Rename mention of insert_or_update_with_key
sophiebits Dec 28, 2012
4e07a63
Add Ben Alpert to AUTHORS
catamorphism Dec 28, 2012
f67c372
test: Fix a bunch of run-pass tests. rs=bustage
pcwalton Dec 29, 2012
31b07ae
test: Fix test/run-pass/pipe-pingpong-bounded. rs=bustage
pcwalton Dec 29, 2012
c42d5e2
test: Fix test/run-pass/pipe-pingpong-proto. rs=bustage
pcwalton Dec 29, 2012
40eaecb
test: Fix a couple more tests. rs=bustage
pcwalton Dec 29, 2012
19dfb47
test: Fix test/run-pass/class-cast-to-trait-cross-crate-2. rs=fire
pcwalton Dec 29, 2012
b92ea8d
test: Fix test/run-pass-fulldeps/qquote.rs. rs=bustage
pcwalton Dec 29, 2012
5bd8692
test: Fix a bunch of compile-fail tests. rs=bustage
pcwalton Dec 29, 2012
5245ace
test: Fix benchmarks. rs=rustbot
pcwalton Dec 29, 2012
6e7cf87
Remove spurious semicolons at the end of macro_rules! definitions.
FranklinChen Dec 28, 2012
b6aafe9
When an import fails to resolve, make the error message say
Dec 27, 2012
d68954e
Fix the build by removing trailing whitespace.
Dec 29, 2012
624421a
Simplify idents_to_str and use it in more places.
Dec 29, 2012
47cd1e4
librustdoc: Fix a bunch of rustdoc tests. rs=bustage
pcwalton Dec 30, 2012
015ed66
librustdoc: Fix typo. rs=busted
pcwalton Dec 30, 2012
2822365
librustdoc: More text fixes. rs=busted
pcwalton Dec 30, 2012
10333a5
libstd: Comment out mysteriously failing net-url test. rs=busted
pcwalton Dec 30, 2012
4b3dd4b
doc: Fix some broken tutorial examples. rs=bustage
pcwalton Dec 30, 2012
4be7310
doc: Fix explanation and example of struct-like enum variants. rs=busted
pcwalton Dec 30, 2012
4b1d2dc
reset LinearMap.size when expanding buckets
ttaubert Dec 30, 2012
4cb9247
doc: make small corrections to tutorial
apasel422 Dec 30, 2012
62d6031
Merge pull request #4317 from apasel422/tutorial-fix
catamorphism Dec 30, 2012
cfb33fc
Merge pull request #4311 from FranklinChen/fix-macro-tutorial
catamorphism Dec 30, 2012
4dde334
Add Franklin Chen to AUTHORS
catamorphism Dec 30, 2012
08d9c5b
Merge pull request #4312 from Dretch/issue-2914
catamorphism Dec 30, 2012
e08f304
rt: Remove dead code from schedule_task()
cpeterso Dec 31, 2012
16797fd
doc: Fix some typos in the tutorial and reference manual
cpeterso Dec 31, 2012
84a37a3
Merge pull request #4323 from cpeterso/cpeterso-schedule-task
brson Jan 1, 2013
eeec4a7
Merge pull request #4322 from cpeterso/incoming-doc-typos
brson Jan 1, 2013
96ba9de
Merge pull request #4316 from ttaubert/issue-4277-linear-map-len
brson Jan 1, 2013
9433284
Add some extra description for std::net
steveklabnik Jan 1, 2013
587ce48
Merge pull request #4324 from steveklabnik/std_net
brson Jan 1, 2013
392708e
core: convert an XXX into a FIXME.
erickt Jan 2, 2013
ae69c2f
std: Constify the bytes sent to Sha1::input
pkgw Jan 2, 2013
0d4cf3e
remove apparently-superfluous extra parens from types
catamorphism Jan 2, 2013
b169889
Add Peter Williams to AUTHORS
catamorphism Jan 2, 2013
7c79b5e
really update mandelbrot to pipes
tedhorst Dec 27, 2012
af48f30
use newtype struct for devnull rather than type aliased record
tedhorst Dec 30, 2012
8ffc2b0
fix sugarise-doc-comments.py shebang
thestinger Jan 3, 2013
486217d
add missing $(CFG_PYTHON) prefixes
thestinger Jan 3, 2013
d91b2d4
Change "interface" to "trait" in rustdoc
catamorphism Jan 3, 2013
1bc51f1
Merge pull request #4336 from thestinger/python
catamorphism Jan 3, 2013
1330b1c
Add test cases (one xfailed, one not)
catamorphism Jan 3, 2013
7b08ed0
Actually xfail this, unbreak build
catamorphism Jan 3, 2013
9e2a59d
Add xfailed test for #3707
catamorphism Jan 3, 2013
a933cdf
clean up condition module:
apasel422 Dec 24, 2012
d94e9c0
Fix two minor issues in the tutorial.
Jan 4, 2013
1f1e7e9
Add option::get_zero
catamorphism Jan 3, 2013
62f6f46
core: fix windows breakage, r=burningtree.
graydon Jan 4, 2013
4d8cc3f
Make either::{partition, flip, to_result} take their arguments by-value
catamorphism Jan 4, 2013
89acd1f
Rename option::get_default => get_or_default, get_zero => get_or_zero
catamorphism Jan 5, 2013
62c7ca6
Merge remote-tracking branch 'superoptimizer/master' into HEAD
brson Jan 5, 2013
9abcacc
Add Mark Lacey to AUTHORS
brson Jan 5, 2013
7b245d4
librustc: Stop generating first-class aggregates in visit glue, since…
pcwalton Jan 5, 2013
8f8b417
Trivial cleanup: use enum_is_univariant; no functional change intended.
jld Dec 31, 2012
6043a72
Make consts of degenerate nullary enums not ICE.
jld Dec 31, 2012
3e7ab3a
Add a test for nullary univariant enums.
jld Jan 5, 2013
6c18c75
rt: Stop zeroing out all allocations. Unobservable perf win. Closes #…
pcwalton Jan 6, 2013
1070cc0
librustc: Fix unconditional ty_to_str call in ty.rs. Was heaviest pat…
pcwalton Jan 6, 2013
fa96740
librustc: Remove some string allocations. rs=perf
pcwalton Jan 6, 2013
96e01a6
librustc: Convert some large structural records over to structs. rs=perf
pcwalton Jan 6, 2013
0ab7f91
librustc: Refactor language items to have IDs. rs=refactor
pcwalton Jan 6, 2013
d2d1d98
librustc: Encode language items into a special lookup table. 9% impro…
pcwalton Jan 7, 2013
9f38792
librustc: Fold rt items into lang items. Shaves another 10% or so off…
pcwalton Jan 7, 2013
3a57007
librustc: Remove unused `mod_path_map`. This was expensive to build. …
pcwalton Jan 7, 2013
78aad60
Merge pull request #4358 from jld/constenum-unit
catamorphism Jan 7, 2013
09758f7
Merge pull request #4357 from jld/constenum-bonus-fix
catamorphism Jan 7, 2013
53f41f0
librustc: Make vectors no longer implicitly copyable in rustc. r=graydon
pcwalton Jan 7, 2013
1a2a897
fmt: replace Conv record with struct Conv
apasel422 Jan 7, 2013
0a17ab2
fmt: replace parse_* structural records with struct Parsed<T>
apasel422 Jan 7, 2013
51b141e
fmt: simplify parse_type
apasel422 Jan 7, 2013
f4bc9e6
fmt: simplify parse_flags
apasel422 Jan 7, 2013
9c383de
fmt: simplify parse_count
apasel422 Jan 7, 2013
4550cb0
fmt: simplify parse_precision
apasel422 Jan 7, 2013
af298de
fmt: simplify parse_parameter
apasel422 Jan 7, 2013
9e5a416
fmt: simplify parse_conversion
apasel422 Jan 7, 2013
428abb3
fmt: simplify parse_fmt_string
apasel422 Jan 7, 2013
0429493
fmt: fix formatting and style
apasel422 Jan 7, 2013
73649f3
fmt: derive Eq for all types
apasel422 Jan 7, 2013
1d4c5d9
fmt: add unit tests
apasel422 Jan 7, 2013
aed94a3
Merge pull request #4372 from apasel422/fmt2
catamorphism Jan 7, 2013
8bf38b2
librustc: Fix some librustc test modes. rs=bustage
pcwalton Jan 7, 2013
c662a9a
Improve a typeck ICE message (slightly)
catamorphism Jan 8, 2013
e45312e
Suppress type error message involving a function type whose result is…
catamorphism Jan 8, 2013
d771830
xfail broken tests
catamorphism Jan 8, 2013
86db69d
Revert "xfail broken tests"
catamorphism Jan 8, 2013
fb9458e
xfail broken tests
catamorphism Jan 8, 2013
921393c
Change the self def_id to a self_info in typeck, and inherit
catamorphism Jan 8, 2013
0e774de
Revert "Improve a typeck ICE message (slightly)"
catamorphism Jan 8, 2013
7b433d0
Revert "Change the self def_id to a self_info in typeck, and inherit"
catamorphism Jan 8, 2013
4557f70
Revert "Suppress type error message involving a function type whose r…
catamorphism Jan 8, 2013
16ec9aa
Support assignability for struct fields. r=pcwalton
nikomatsakis Jan 8, 2013
fcc470c
test: Fix check-fast for resolve changes. rs=bustage
pcwalton Jan 8, 2013
94950b1
Remove ret_style and instead check whether fn return type is bot
nikomatsakis Jan 8, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Arkaitz Jimenez <arkaitzj@gmail.com>
Armin Ronacher <armin.ronacher@active-4.com>
Austin Seipp <mad.one@gmail.com>
auREAX <mark@xn--hwg34fba.ws>
Ben Alpert <ben@benalpert.com>
Ben Blum <bblum@andrew.cmu.edu>
Ben Striegel <ben.striegel@gmail.com>
Benjamin Herr <ben@0x539.de>
Expand Down Expand Up @@ -49,6 +50,7 @@ Erick Tryzelaar <erick.tryzelaar@gmail.com>
Erik Rose <erik@mozilla.com>
Evan McClanahan <evan@evanmcc.com>
Francisco Souza <f@souza.cc>
Franklin Chen <franklinchen@franklinchen.com>
Gabriel <g2p.code@gmail.com>
Gareth Daniel Smith <garethdanielsmith@gmail.com>
Glenn Willen <gwillen@nerdnet.org>
Expand Down Expand Up @@ -91,6 +93,7 @@ Magnus Auvinen <magnus.auvinen@gmail.com>
Mahmut Bulut <mahmutbulut0@gmail.com>
Margaret Meyerhofer <mmeyerho@andrew.cmu.edu>
Marijn Haverbeke <marijnh@gmail.com>
Mark Lacey <641@rudkx.com>
Martin DeMello <martindemello@gmail.com>
Matt Brubeck <mbrubeck@limpet.net>
Matthew O'Connor <thegreendragon@gmail.com>
Expand All @@ -106,6 +109,7 @@ Patrik Kårlin <patrik.karlin@gmail.com>
Paul Stansifer <paul.stansifer@gmail.com>
Paul Woolcock <pwoolcoc+github@gmail.com>
Peter Hull <peterhull90@gmail.com>
Peter Williams <peter@newton.cx>
Philipp Brüschweiler <blei42@gmail.com>
Rafael Ávila de Espíndola <respindola@mozilla.com>
Ralph Giles <giles@thaumas.net>
Expand All @@ -119,6 +123,7 @@ Sean Stangl <sstangl@mozilla.com>
Simon Barber-Dueck <sbarberdueck@gmail.com>
startling <tdixon51793@gmail.com>
Stefan Plantikow <stefan.plantikow@googlemail.com>
Steve Klabnik <steve@steveklabnik.com>
Taras Shpot <mrshpot@gmail.com>
Ted Horst <ted.horst@earthlink.net>
Tim Chevalier <chevalier@alum.wellesley.edu>
Expand Down
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Pull request procedure

Pull requests should be targeted at Rust's `incoming` branch (note that by default Github will aim them at the `master` branch) -- see "Changing The Commit Range and Destination Repository" in Github's documentation on [pull requests](https://help.github.com/articles/using-pull-requests). Before pushing to your Github repo and issuing the pull request, please do two things:

1. [Rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) your local changes against the `incoming` branch. Resolve any conflicts that arise.
2. Run the full Rust test suite with the `make check` command. You're not off the hook even if you just stick to documentation; code examples in the docs are tested as well!

Pull requests will be treated as "review requests", and we will give feedback we expect to see corrected on [style](https://github.com/mozilla/rust/wiki/Note-style-guide) and substance before pulling. Changes contributed via pull request should focus on a single issue at a time, like any other. We will not look kindly on pull-requests that try to "sneak" unrelated changes in.

Normally, all pull requests must include regression tests (see [[Note-testsuite]]) that test your change. Occasionally, a change will be very difficult to test for. In those cases, please include a note in your commit message explaining why.

For more details, please refer to [[Note-development-policy]].
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ API-documentation tool, and `cargo`, the Rust package manager.

## License

Rust is primarily distributed under the terms of the MIT license, with
portions covered by various BSD-like licenses.
Rust is primarily distributed under the terms of both the MIT license
and the Apache License (Version 2.0), with portions covered by various
BSD-like licenses.

See LICENSE.txt for details.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.

## More help

Expand Down
19 changes: 16 additions & 3 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,19 @@ let mut a: Animal = Dog;
a = Cat;
~~~~

Enumeration constructors can have either named or unnamed fields:
~~~~
enum Animal {
Dog (~str, float),
Cat { name: ~str, weight: float }
}

let mut a: Animal = Dog(~"Cocoa", 37.2);
a = Cat{ name: ~"Spotty", weight: 2.7 };
~~~~

In this example, `Cat` is a _struct-like enum variant_,
whereas `Dog` is simply called an enum variant.
### Constants

~~~~~~~~ {.ebnf .gram}
Expand Down Expand Up @@ -3245,12 +3258,12 @@ crate name the crate is given a default name that matches the source file,
with the extension removed. In that case, to turn on logging for a program
compiled from, e.g. `helloworld.rs`, `RUST_LOG` should be set to `helloworld`.

As a convenience, the logging spec can also be set to a special psuedo-crate,
As a convenience, the logging spec can also be set to a special pseudo-crate,
`::help`. In this case, when the application starts, the runtime will
simply output a list of loaded modules containing log expressions, then exit.

The Rust runtime itself generates logging information. The runtime's logs are
generated for a number of artificial modules in the `::rt` psuedo-crate,
generated for a number of artificial modules in the `::rt` pseudo-crate,
and can be enabled just like the logs for any standard module. The full list
of runtime logging modules follows.

Expand Down Expand Up @@ -3328,7 +3341,7 @@ have come and gone during the course of Rust's development:

* The Newsqueak (1988), Alef (1995), and Limbo (1996) family. These
languages were developed by Rob Pike, Phil Winterbottom, Sean Dorward and
others in their group at Bell labs Computing Sciences Research Center
others in their group at Bell Labs Computing Sciences Research Center
(Murray Hill, NJ, USA).

* The Napier (1985) and Napier88 (1988) family. These languages were
Expand Down
4 changes: 2 additions & 2 deletions doc/tutorial-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ macro_rules! early_return(
_ => {}
}
);
);
)
// ...
early_return!(input_1 special_a);
// ...
Expand Down Expand Up @@ -160,7 +160,7 @@ macro_rules! early_return(
_ => {}
}
);
);
)
// ...
early_return!(input_1, [special_a|special_c|special_d]);
// ...
Expand Down
Loading