]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agohandle windows newlines
Oliver Schneider [Thu, 30 Apr 2015 11:13:20 +0000 (13:13 +0200)]
handle windows newlines

9 years agoMerge pull request #62 from marcusklaas/use-indent
Nick Cameron [Mon, 4 May 2015 07:28:21 +0000 (19:28 +1200)]
Merge pull request #62 from marcusklaas/use-indent

Correctly indent use items and functions

9 years agoCorrectly indent use items and functions
Marcus Klaas [Sat, 2 May 2015 17:12:16 +0000 (19:12 +0200)]
Correctly indent use items and functions

9 years agoMerge pull request #63 from nicholasbishop/bishop-missing-verb
Nick Cameron [Sat, 2 May 2015 23:49:36 +0000 (11:49 +1200)]
Merge pull request #63 from nicholasbishop/bishop-missing-verb

Fix a missing word in the README

9 years agoFix a missing word in the README
Nicholas Bishop [Sat, 2 May 2015 23:15:00 +0000 (19:15 -0400)]
Fix a missing word in the README

9 years agoMerge pull request #60 from oli-obk/master
Nick Cameron [Sat, 2 May 2015 06:47:27 +0000 (18:47 +1200)]
Merge pull request #60 from oli-obk/master

babysteps towards #51

9 years agosplit main function and test function into their own files
Oliver Schneider [Fri, 1 May 2015 16:43:36 +0000 (18:43 +0200)]
split main function and test function into their own files

small modifications to make executable and test compile properly

9 years agomain.rs -> lib.rs
Oliver Schneider [Fri, 1 May 2015 16:40:05 +0000 (18:40 +0200)]
main.rs -> lib.rs

9 years agoMerge pull request #58 from Stebalien/borrow
Nick Cameron [Fri, 1 May 2015 18:59:00 +0000 (06:59 +1200)]
Merge pull request #58 from Stebalien/borrow

Trust the borrow checker.

9 years agoTrust the borrow checker.
Steven Allen [Fri, 1 May 2015 16:17:14 +0000 (12:17 -0400)]
Trust the borrow checker.

9 years agoMerge pull request #57 from defyrlt/issue_56
Nick Cameron [Fri, 1 May 2015 11:16:54 +0000 (23:16 +1200)]
Merge pull request #57 from defyrlt/issue_56

`mut` was eaten out of `mut self` in fn args.

9 years agoResolved #56 -- `mut` was eaten out of `mut self` in fn args.
defyrlt [Fri, 1 May 2015 11:08:22 +0000 (14:08 +0300)]
Resolved #56 -- `mut` was eaten out of `mut self` in fn args.

9 years agoMerge pull request #55 from tedsta/master
Nick Cameron [Fri, 1 May 2015 02:58:53 +0000 (14:58 +1200)]
Merge pull request #55 from tedsta/master

Spaces around  in type bounds

9 years agoSpaces around in type bounds
Theodore DeRego [Fri, 1 May 2015 02:52:11 +0000 (16:52 -1000)]
Spaces around  in type bounds

9 years agoMerge pull request #44 from tbu-/pr_bin
Nick Cameron [Thu, 30 Apr 2015 20:22:13 +0000 (08:22 +1200)]
Merge pull request #44 from tbu-/pr_bin

Rename `src/mod.rs` to `src/main.rs` to adhere to the standard crate format

9 years agoMerge pull request #50 from aepsil0n/patch-1
Nick Cameron [Thu, 30 Apr 2015 20:21:39 +0000 (08:21 +1200)]
Merge pull request #50 from aepsil0n/patch-1

Add a missing "not" to readme

9 years agoMerge pull request #49 from oli-obk/gitignore
Nick Cameron [Thu, 30 Apr 2015 19:18:57 +0000 (07:18 +1200)]
Merge pull request #49 from oli-obk/gitignore

add gitignore

9 years agoRename `src/mod.rs` to `src/main.rs` to adhere to the standard crate format
Tobias Bucher [Thu, 30 Apr 2015 08:26:59 +0000 (10:26 +0200)]
Rename `src/mod.rs` to `src/main.rs` to adhere to the standard crate format

9 years agoAdd a missing "not" to readme
Eduard Bopp [Thu, 30 Apr 2015 11:26:51 +0000 (13:26 +0200)]
Add a missing "not" to readme

This is probably how it was meant. The imaginary HIR is pretty much equivalent to semantics, as far as I understand.

9 years agoadd gitignore
Oliver Schneider [Thu, 30 Apr 2015 11:01:35 +0000 (13:01 +0200)]
add gitignore

9 years agoMerge pull request #43 from tbu-/pr_nostaticmut
Nick Cameron [Thu, 30 Apr 2015 09:13:36 +0000 (21:13 +1200)]
Merge pull request #43 from tbu-/pr_nostaticmut

Use `AtomicUsize` instead of `static mut` that require `unsafe`

9 years agoMerge pull request #45 from tbu-/pr_toowned
Nick Cameron [Thu, 30 Apr 2015 09:10:54 +0000 (21:10 +1200)]
Merge pull request #45 from tbu-/pr_toowned

Change `to_string` to `to_owned` when it just creates a `String` from a `&str`

9 years agoMerge pull request #46 from tbu-/pr_testwarnings
Nick Cameron [Thu, 30 Apr 2015 09:10:25 +0000 (21:10 +1200)]
Merge pull request #46 from tbu-/pr_testwarnings

Fix warnings in `cargo test`

9 years agoMerge pull request #47 from tbu-/pr_cargolock
Nick Cameron [Thu, 30 Apr 2015 09:10:03 +0000 (21:10 +1200)]
Merge pull request #47 from tbu-/pr_cargolock

Add `Cargo.lock` file, because this application is a program

9 years agoUse `AtomicUsize` instead of `static mut` that require `unsafe`
Tobias Bucher [Thu, 30 Apr 2015 08:40:37 +0000 (10:40 +0200)]
Use `AtomicUsize` instead of `static mut` that require `unsafe`

9 years agoChange `to_string` to `to_owned` when it just creates a `String` from a `&str`
Tobias Bucher [Thu, 30 Apr 2015 08:31:42 +0000 (10:31 +0200)]
Change `to_string` to `to_owned` when it just creates a `String` from a `&str`

This means that it doesn't have to go through the formatting hierarchy and can
just immediately reserve enough memory.

9 years agoMerge pull request #39 from Manishearth/pubuse
Nick Cameron [Thu, 30 Apr 2015 08:26:22 +0000 (20:26 +1200)]
Merge pull request #39 from Manishearth/pubuse

Handle pub use (fixes #23)

9 years agoHandle pub use (fixes #23)
Manish Goregaokar [Thu, 30 Apr 2015 08:03:26 +0000 (13:33 +0530)]
Handle pub use (fixes #23)

9 years agoMerge pull request #40 from Manishearth/travis
Nick Cameron [Thu, 30 Apr 2015 08:19:04 +0000 (20:19 +1200)]
Merge pull request #40 from Manishearth/travis

Travisify

9 years agotravisify
Manish Goregaokar [Thu, 30 Apr 2015 08:16:18 +0000 (13:46 +0530)]
travisify

9 years agoAdd `Cargo.lock` file, because this application is a program
Tobias Bucher [Thu, 30 Apr 2015 07:33:13 +0000 (09:33 +0200)]
Add `Cargo.lock` file, because this application is a program

Do this so you can reliably build `rustfmt` in the future, even if one of the
dependencies (in this case, only `strings.rs`) makes backward-incompatible
changes.

See also http://doc.crates.io/guide.html#cargo.toml-vs-cargo.lock.

9 years agoFix warnings in `cargo test`
Tobias Bucher [Thu, 30 Apr 2015 07:32:38 +0000 (09:32 +0200)]
Fix warnings in `cargo test`

9 years agoAdd a line about nightly builds to the readme
Nick Cameron [Thu, 30 Apr 2015 04:19:54 +0000 (16:19 +1200)]
Add a line about nightly builds to the readme

9 years agoAdd README.md
Nick Cameron [Thu, 30 Apr 2015 03:09:33 +0000 (15:09 +1200)]
Add README.md

9 years agoUse + for type bounds
Nick Cameron [Wed, 29 Apr 2015 04:44:29 +0000 (16:44 +1200)]
Use + for type bounds

9 years agoPreserve linebreaks in doc comments
Nick Cameron [Wed, 29 Apr 2015 04:21:04 +0000 (16:21 +1200)]
Preserve linebreaks in doc comments

9 years agoBetter handle trait items
Nick Cameron [Wed, 29 Apr 2015 03:24:20 +0000 (15:24 +1200)]
Better handle trait items

9 years agoBetter attribute handling
Nick Cameron [Wed, 29 Apr 2015 03:00:58 +0000 (15:00 +1200)]
Better attribute handling

9 years agoFix trailing commas in where clauses
Nick Cameron [Tue, 28 Apr 2015 21:53:33 +0000 (09:53 +1200)]
Fix trailing commas in where clauses

9 years agoTweak rules around attributes for modules
Nick Cameron [Tue, 28 Apr 2015 10:19:25 +0000 (22:19 +1200)]
Tweak rules around attributes for modules

9 years agoComments on their own lines between args
Nick Cameron [Tue, 28 Apr 2015 09:57:16 +0000 (21:57 +1200)]
Comments on their own lines between args

9 years agoAbsolute paths
Nick Cameron [Tue, 28 Apr 2015 09:36:31 +0000 (21:36 +1200)]
Absolute paths

9 years agoComments after return
Nick Cameron [Tue, 28 Apr 2015 09:24:56 +0000 (21:24 +1200)]
Comments after return

9 years agoComments in function decls and annotations/doc comments
Nick Cameron [Tue, 28 Apr 2015 08:56:01 +0000 (20:56 +1200)]
Comments in function decls and annotations/doc comments

9 years agoIndenting for modules
Nick Cameron [Thu, 23 Apr 2015 06:43:46 +0000 (18:43 +1200)]
Indenting for modules

rustfmt now bootstraps!

9 years agoArg/line length bug
Nick Cameron [Thu, 23 Apr 2015 06:30:12 +0000 (18:30 +1200)]
Arg/line length bug

9 years agominor reformatting
Nick Cameron [Thu, 23 Apr 2015 06:10:43 +0000 (18:10 +1200)]
minor reformatting

9 years agotrailing newline hell fixed
Nick Cameron [Thu, 23 Apr 2015 06:02:55 +0000 (18:02 +1200)]
trailing newline hell fixed

9 years agoterminating newline bug
Nick Cameron [Thu, 23 Apr 2015 05:04:07 +0000 (17:04 +1200)]
terminating newline bug

9 years agoFix formatting in changes.rs
Nick Cameron [Thu, 23 Apr 2015 04:30:19 +0000 (16:30 +1200)]
Fix formatting in changes.rs

9 years agoTest the skip attribute
Nick Cameron [Thu, 23 Apr 2015 04:25:48 +0000 (16:25 +1200)]
Test the skip attribute

9 years agoOur first test!
Nick Cameron [Thu, 23 Apr 2015 04:23:20 +0000 (16:23 +1200)]
Our first test!

9 years agoIdempotent tests and comments in function decls
Nick Cameron [Thu, 23 Apr 2015 04:22:48 +0000 (16:22 +1200)]
Idempotent tests and comments in function decls

9 years agoKeep comments on fn arguments
Nick Cameron [Tue, 21 Apr 2015 10:50:43 +0000 (22:50 +1200)]
Keep comments on fn arguments

9 years agoExtract out more files
Nick Cameron [Tue, 21 Apr 2015 09:01:19 +0000 (21:01 +1200)]
Extract out more files

9 years agoRefactor missing spans and fix bug with trailing whitespace
Nick Cameron [Tue, 21 Apr 2015 08:40:36 +0000 (20:40 +1200)]
Refactor missing spans and fix bug with trailing whitespace

9 years agoExtract some methods for functions.
Nick Cameron [Tue, 21 Apr 2015 07:59:48 +0000 (19:59 +1200)]
Extract some methods for functions.

9 years agoTrivial reformatting
Nick Cameron [Tue, 21 Apr 2015 04:49:16 +0000 (16:49 +1200)]
Trivial reformatting

9 years agoPull out some functionality into separate files
Nick Cameron [Tue, 21 Apr 2015 04:47:15 +0000 (16:47 +1200)]
Pull out some functionality into separate files

9 years agoWrite output to files
Nick Cameron [Tue, 21 Apr 2015 04:28:10 +0000 (16:28 +1200)]
Write output to files

9 years agoSome configuration options for function layout
Nick Cameron [Tue, 21 Apr 2015 00:02:30 +0000 (12:02 +1200)]
Some configuration options for function layout

9 years agoBy value self in functions
Nick Cameron [Mon, 20 Apr 2015 21:54:04 +0000 (09:54 +1200)]
By value self in functions

9 years agoFunction visibility
Nick Cameron [Mon, 20 Apr 2015 21:38:16 +0000 (09:38 +1200)]
Function visibility

9 years agoWork across multiple files
Nick Cameron [Tue, 14 Apr 2015 09:52:12 +0000 (21:52 +1200)]
Work across multiple files

9 years agoUse strings.rs rather than local modules
Nick Cameron [Tue, 14 Apr 2015 01:12:56 +0000 (13:12 +1200)]
Use strings.rs rather than local modules

9 years agoNew reformatting of fns
Nick Cameron [Tue, 14 Apr 2015 01:00:46 +0000 (13:00 +1200)]
New reformatting of fns

9 years agoMerge pull request #13 from Stebalien/fix-fkmethod
Nick Cameron [Sun, 22 Mar 2015 19:28:48 +0000 (08:28 +1300)]
Merge pull request #13 from Stebalien/fix-fkmethod

Update for new FnKind::FkMethod signature

9 years agoUpdate for new FnKind::FkMethod signature
Steven Allen [Sun, 22 Mar 2015 16:30:04 +0000 (09:30 -0700)]
Update for new FnKind::FkMethod signature

9 years agoMerge pull request #12 from djg/fix-convert-path-to-pathbuf
Nick Cameron [Fri, 20 Mar 2015 05:44:00 +0000 (18:44 +1300)]
Merge pull request #12 from djg/fix-convert-path-to-pathbuf

Update from Path to PathBuf

9 years agoUpdate from Path to PathBuf
Dan Glastonbury [Mon, 9 Mar 2015 06:17:14 +0000 (16:17 +1000)]
Update from Path to PathBuf

9 years agoA different, more pretty printing approach.
Nick Cameron [Mon, 9 Mar 2015 04:18:48 +0000 (17:18 +1300)]
A different, more pretty printing approach.

No longer uses the Rope data strucure.

9 years agoAdd string_buffer (not used yet)
Nick Cameron [Sun, 8 Mar 2015 06:24:56 +0000 (19:24 +1300)]
Add string_buffer (not used yet)

9 years agoWorking prototype
Nick Cameron [Sat, 7 Mar 2015 22:46:35 +0000 (11:46 +1300)]
Working prototype

Implements a few formatting options using an approach where we modify the source using a rope. Uses very ad-hoc rules for formatting.

9 years agoSave changes in the rope.
Nick Cameron [Mon, 2 Feb 2015 08:59:03 +0000 (21:59 +1300)]
Save changes in the rope.

Also changes to using the new rustc interface

9 years agoCommit changes code using map of adjustments
Nick Cameron [Mon, 26 Jan 2015 02:16:37 +0000 (15:16 +1300)]
Commit changes code using map of adjustments