bors
6d6b1a8bfa
auto merge of #7586 : g5pw/rust/master, r=cmr
...
This updates the script in src/etc/local_stage0.sh to copy the correct libraries
to stage0.
2013-07-07 17:59:03 -07:00
Seo Sanghyeon
20458899d5
vim: Highlight 0i as number
2013-07-05 13:03:15 +09:00
Aljaž "g5pw" Srebrnič
e9ce97cc2a
Copy the correct libs when using local-rust-root
...
This fixes a segfault when configuring rust to use local-rust-root. The
libraries were renamed in the 0.6-0.7 transition, and the script was not copying
them all. I also removed the line referencing libcore (now libstd).
2013-07-04 16:18:05 +02:00
bors
55f155521d
auto merge of #7523 : huonw/rust/uppercase-statics-lint, r=cmr
...
Adds a lint for `static some_lowercase_name: uint = 1;`. Warning by default since it causes confusion, e.g. `static a: uint = 1; ... let a = 2;` => `error: only refutable patterns allowed here`.
2013-07-03 04:31:50 -07:00
bors
fc02d69e96
auto merge of #7498 : luqmana/rust/cow, r=catamorphism
...
Either one works and wget is easier to setup on windows.
2013-07-02 20:58:57 -07:00
Huon Wilson
c437a16c5d
rustc: add a lint to enforce uppercase statics.
2013-07-01 17:52:57 +10:00
bors
07feeb95c5
auto merge of #7487 : huonw/rust/vec-kill, r=cmr
...
Continuation of #7430 .
I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
2013-06-30 21:14:13 -07:00
Brian Anderson
a766a955a9
Bump version from 0.7-pre to 0.7
2013-06-30 16:36:48 -07:00
bors
2b3569a1b3
auto merge of #7374 : Jeaye/rust/func_highlight, r=cmr
...
This allows for highlighting of function calls
for free floating, member, and static functions.
2013-06-30 04:40:37 -07:00
Huon Wilson
faa8f8ff8b
Convert vec::{bsearch, bsearch_elem} to methods.
2013-06-30 21:15:25 +10:00
Huon Wilson
562dea1820
etc: update etc/unicode.py for the changes made to std::unicode.
2013-06-30 21:15:25 +10:00
Luqman Aden
9c3ef892f9
configure: Require one of wget or curl.
2013-06-30 02:08:02 -04:00
bors
3017343232
auto merge of #7457 : Blei/rust/fix-ffi-floats, r=cmr
...
Also contains a fix to help ctag pick up macro definitions.
2013-06-29 18:40:33 -07:00
Daniel Micay
28a3613a1d
fix zsh completion for lint and debug flags
...
this correctly makes them accept 1 argument, and auto-completes the
comma-separated list of lint flags
2013-06-29 00:58:24 -04:00
Philipp Brüschweiler
7971202a4e
ctags: add macros
2013-06-28 16:17:04 +02:00
Brian Anderson
59905d1f27
mk: Make windows installer work with -pre versions
2013-06-27 19:00:10 -07:00
bors
a28f9ba526
auto merge of #7361 : brson/rust/incoming, r=brson
2013-06-27 01:04:33 -07:00
Philipp Brüschweiler
87c1b59e8b
Fix some warnings in the check-fast tests
2013-06-26 18:08:23 -04:00
Luqman Aden
ca2966c6d0
Change finalize -> drop.
2013-06-25 21:14:39 -04:00
Jeaye
41f11d6428
rust.vim: Links previously unused rustFuncCall
...
This allows for highlighting of function calls
for free floating, member, and static functions.
2013-06-24 23:35:16 -07:00
Tuncer Ayaz
0a74ffcf04
vim/syntax/rust.vim: fix date header
...
The last change was made in 2013 not 2012.
2013-06-24 18:35:43 +02:00
Ben Blum
fcf361745f
Add rules for assert, fail, and deriving to vim syntax file. Also highlight the mod path in "use module;" properly.
2013-06-23 13:53:39 -04:00
bors
f348465283
auto merge of #7128 : yichoi/rust/fix_sometc, r=brson
...
- Fix stat struct for Android (found by SEGV at run-pass/stat.rs)
- Adjust some test cases to rpass for Android
- Modify some script to rpass for Android
2013-06-20 11:35:34 -07:00
James Miller
7375e94289
core -> extra for mac
2013-06-20 20:47:22 +12:00
James Miller
433c86554c
Fix update snapshot script for rename
2013-06-20 15:10:08 +12:00
Young-il Choi
f7ee7d09dd
etc: add TEST_EXEC_ENV for run-pass to adb_run_wrapper.sh
2013-06-17 18:46:04 +09:00
Young-il Choi
9e618cf954
etc: modify adb_run_wrapper.sh to avoid 'expr' unrecognization at some android devices
2013-06-17 18:44:30 +09:00
Daniel Micay
ec27644870
automated whitespace fixes
2013-06-13 18:03:08 -04:00
Young-il Choi
c28c495414
etc: adb_run_wrapper.sh - fix to clean test (not produce Text File Busy)
2013-06-01 17:28:58 +09:00
Young-il Choi
0521d54ca1
etc: adb_run_wrapper argument change
2013-06-01 17:28:58 +09:00
Young-il Choi
0ea8274fca
etc: adb_run_wrapper added
2013-06-01 17:28:57 +09:00
bors
030f471f26
auto merge of #6853 : bblum/rust/sized, r=pcwalton
...
r? @nikomatsakis @pcwalton
2013-05-31 02:01:44 -07:00
Ben Blum
32cd9b3274
Highlight Sized in vim and kate
2013-05-30 21:41:41 -04:00
Daniel Micay
a9c3b3885d
add a zsh completion file for rustc
2013-05-30 18:52:23 -04:00
Patrick Walton
e67bfabbf7
etc: Fix more check-fast breakage. rs=burningtree
2013-05-29 22:17:21 -07:00
bors
05735a934a
auto merge of #6783 : hoelzro/rust/master, r=bstrie
...
I think settings like this should be left up to the user.
2013-05-28 07:16:59 -07:00
Rob Hoelz
2505416408
Remove colorcolumn setting
2013-05-28 16:06:15 +02:00
ILyoan
998cbbd739
update ctags define
2013-05-27 13:58:27 +09:00
Ted Horst
34cfd2183b
more testing fallout from core->std/std->extra move
2013-05-23 15:06:29 -05:00
Patrick Walton
be0110989e
etc: Fix test combiner for core->std/std->extra change. rs=burningtree
2013-05-23 08:32:36 -07:00
Daniel Micay
298a72602b
vim: be
is still a reserved keyword
2013-05-15 00:03:55 -04:00
Daniel Micay
d65a136cb0
vim: no more drop blocks
2013-05-15 00:01:58 -04:00
Daniel Micay
17a68d1e8d
vim: swap operator is gone
2013-05-14 23:59:55 -04:00
Alex Crichton
ffcc680f9c
Fix test fallout from removing vecs_implicitly_copyable
2013-05-14 12:25:19 -04:00
James Miller
80b2926357
General fixes for vim
...
Makes colorcolumn setlocal instead of set.
Makes conceal opt-in.
Removes the seem-to-be obsolete old keywords/types
2013-05-08 11:16:27 +12:00
James Miller
0addefa68a
Improved vim indent file for rust
2013-05-08 11:16:27 +12:00
Daniel Micay
86efd97a10
add gitattributes and fix whitespace issues
2013-05-03 20:01:42 -04:00
bors
ec9c7c324e
auto merge of #6184 : kud1ing/rust/master, r=sanxiyn
2013-05-02 11:30:41 -07:00
kud1ing
6487cb221b
Explain that the source code was generated by this script
2013-05-02 13:37:57 +03:00
Huon Wilson
1eb5efc5e2
libcore: add N(0,1) and Exp(1) distributions to core::rand.
...
Sample from the normal and exponential distributions using the Ziggurat
algorithm.
2013-05-01 16:51:45 -07:00
bors
9ea32a380d
auto merge of #6066 : djui/rust/patch-1, r=graydon
2013-04-27 10:24:35 -07:00
Brian Anderson
2c99e3dc3e
Suppress all 'cond' errors in valgrind. #5856
2013-04-26 13:41:33 -07:00
Uwe Dauernheim
d314090b85
Fix typo
2013-04-26 14:47:15 +03:00
Uwe Dauernheim
7a9037bfde
Allow customization of indent offset
2013-04-26 00:06:57 +03:00
Brendan Zabarauskas
01eb5e8ad3
Rename Div operator trait to Quot and Modulo operator trait to Rem
2013-04-22 01:58:53 +10:00
bors
ce4f73a243
auto merge of #5945 : graydon/rust/fix-unicode-tables, r=pcwalton
...
This switches the unicode functions in core to use static character-range tables and a binary search helper rather than open-coded switch statements. It adds about 50k of read only data to the libcore binary but cuts out a similar amount of compiled IR. Would have done it this way in the first place but we didn't have structured statics for a long time.
2013-04-19 23:03:52 -07:00
Brian Anderson
69eb218ffc
Try to suppress valgrind errors
...
I can't reproduce the one on the bots, but this might fix it
2013-04-19 14:14:07 -07:00
Graydon Hoare
5a3d26f271
core: replace unicode match exprs with bsearch in const arrays, minor perf win.
2013-04-18 14:39:40 -07:00
Brian Anderson
c6f7b595f0
More valgrind suppressions
2013-04-16 13:40:47 -07:00
Brian Anderson
6beddb966d
Make valgrind suppressions more liberal
...
Hopefully this puts out the final fire
2013-04-15 13:20:23 -07:00
Brian Anderson
a9247e07ac
Suppress a bunch of valgrind errors
2013-04-12 18:49:40 -07:00
Brian Anderson
23e44a529b
Bump version to 0.7-pre
2013-04-10 13:12:53 -07:00
bors
ec3cfaed8b
auto merge of #5807 : klutzy/rust/vim-inner-doc, r=brson
...
Follow-up of #5760 :
Add syntax highlight for `/*! doc */` or `//! doc`.
2013-04-09 18:15:58 -07:00
klutzy
7a1394d58f
vim: syntax highlight for inner doc comment
2013-04-10 04:25:48 +09:00
Brian Anderson
23251b2438
Bump version to 0.7-pre
2013-04-09 10:59:32 -07:00
klutzy
fc26911b49
vim: fix comment highlighting bug
...
Previous commit had a bug that a line which ends with "//" or "/*"
is not correctly highlighted.
2013-04-07 14:30:50 +09:00
klutzy
7c2a8c4ac2
vim: add rustCommentDoc
2013-04-07 04:32:05 +09:00
klutzy
38fe5aa070
vim: disable nested comment
...
Since comment nesting does not work from 0.4.
2013-04-07 04:25:54 +09:00
Graydon Hoare
951f460aa8
tidy version numbers and copyright dates
2013-04-01 16:15:49 -07:00
Daniel Micay
47011e3b71
vim: use Operator group for 'as'
2013-03-30 18:19:47 -04:00
Daniel Micay
6442b1c0e7
vim: separate the conditional keywords
2013-03-30 18:17:13 -04:00
Daniel Micay
b0f66c4732
vim: mark Todo as contained and rm unsafe from it
...
It's nice to make unsafe stand out, but this way isn't correct because it
highlights it in comments.
2013-03-30 18:17:13 -04:00
Daniel Micay
7142cdef1e
vim: highlight ref + static as storage specifiers
...
lifetimes and globals are now the only two places static is used, and
'static isn't matched by this
2013-03-30 18:16:53 -04:00
Daniel Micay
0224eb3d32
vim: assert and pure keywords were removed
2013-03-30 17:54:24 -04:00
Andrew Paseltiner
8604165871
kate: remove const
, log
, and pure
keywords, add super
keyword
2013-03-25 08:25:19 -04:00
Patrick Walton
257ef26bf1
etc: Suppress Linux valgrind issues for new scheduler
2013-03-20 15:13:01 -07:00
Luqman Aden
7352d919f6
Update rust.vim
...
Column limit 78 -> 100.
2013-03-18 17:19:40 -07:00
Brian Anderson
05c103238d
Increase tidy column limit to 100
2013-03-12 10:55:39 -07:00
Lawrence Velázquez
1d315aac44
Copy libsyntax from local Rust to stage0.
...
The local_stage0 script was not updated after commit 7dcbaed
renamed
librustsyntax to libsyntax, so builds using local Rust fail due to
missing libsyntax.
2013-03-12 03:47:28 -04:00
bors
267f6c212f
auto merge of #5285 : jld/rust/emacs-refix, r=brson
...
Without this change, rust-mode doesn't work if 'cl hasn't been required
by something else, apparently. I'm not entirely sure what changed such
that I started seeing this problem instead of not, but maybe the emacs
world has been making progress towards not loading 'cl at runtime if
it's only needed at compile time.
(This change was previously submitted as e93a58d52
and accidentally reverted by ad8b437ad.)
2013-03-09 18:42:43 -08:00
Andrew Paseltiner
b4f57d46e6
kate: remove assert keyword
2013-03-09 12:23:33 -05:00
Andrew Paseltiner
78b6e375df
kate: add Not to list of traits
2013-03-09 12:23:33 -05:00
Jed Davis
8453f3110c
rust-mode.el uses the 'cl macros, so it should actually require them
...
Without this change, rust-mode doesn't work if 'cl hasn't been required
by something else, apparently. I'm not entirely sure what changed such
that I started seeing this problem instead of not, but maybe the emacs
world has been making progress towards not loading 'cl at runtime if
it's only needed at compile time.
2013-03-08 12:51:16 -08:00
bors
dd34178b4b
auto merge of #5211 : apasel422/rust/kate, r=graydon
...
These commits remove some obsolete language features, make some highlighting more correct with respect to the language spec, and introduce highlighting for macros, attributes, core traits, and the new region syntax.
2013-03-04 12:30:51 -08:00
Patrick Walton
3c23589b08
etc: Suppress another Valgrind issue. rs=burningtree
2013-03-03 10:30:00 -08:00
Andrew Paseltiner
39b713f93e
kate: allow [] regions to be collapsed
2013-03-03 09:14:53 -05:00
Andrew Paseltiner
c43512be2e
kate: restrict char escapes to ones accepted by Rust and highlight hex escapes
2013-03-03 09:08:28 -05:00
Andrew Paseltiner
6002d10ce3
kate: detect and highlight attributes
2013-03-03 08:56:39 -05:00
Andrew Paseltiner
4548eb1a29
kate: consolidate integer suffixes with &rustIntSuf; entity
2013-03-03 08:49:16 -05:00
Andrew Paseltiner
c771a93c50
kate: add note about &rustIdent;
2013-03-03 08:45:44 -05:00
Andrew Paseltiner
8596535679
kate: update Rust version
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
d1d6326f5c
kate: add Self to types
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
ecf1eea1e1
kate: detect and highlight core traits
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
bcd95d0254
kate: detect and highlight regions
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
11d10fdb09
kate: introduce &rustIdent; entity
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
7ad2082663
kate: detect and highlight macro invocations
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
c33b4d98cc
kate: remove export, fail, and move keywords
2013-03-03 08:40:37 -05:00
Patrick Walton
a3f728238b
librustc: Forbid chained imports and fix the logic for one-level renaming imports
2013-03-02 16:49:30 -08:00
Daniel Ursache Dogariu
1bcd4c674c
Add syntax highlighting support for GtkSourceView / GEdit
2013-02-28 11:52:25 +02:00
bors
40ffaeaea8
auto merge of #5103 : dbaupp/rust/emacs-mode-update, r=graydon
...
Copy the keyword list from rust.vim, and add `self` so that it is highlighted
(being liberal with the correct categories).
I'm not quite willing to dive in to clean up the emacs code yet, but at least this gets a (more) modern syntax highlighting list.
2013-02-25 20:24:40 -08:00
Patrick Walton
4b9b32839e
etc: Add a suppression for more enum instruction scheduling botches. rs=burningtree
2013-02-25 10:42:51 -08:00
Huon Wilson
4bf94a7b30
Emacs: Update emacs mode to be more similar to the vim mode.
...
Copy the keyword list, and add `self` so that it is somewhat highlighted
(being liberal with the correct categories).
2013-02-25 23:42:46 +11:00
Patrick Walton
ce70736363
etc: Suppress the remaining Valgrind error in rustdoc. rs=burningtree
2013-02-22 16:09:16 -08:00
bors
1b04be6858
auto merge of #5049 : bstrie/rust/vim, r=catamorphism
...
1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long
2013-02-20 18:14:34 -08:00
Patrick Walton
831840ab24
etc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust
2013-02-20 16:04:48 -08:00
Ben Striegel
e29b7eedf9
vim improvements
...
1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long
2013-02-19 23:07:09 -05:00
bors
65aa2594c0
auto merge of #4976 : thestinger/rust/vim, r=nikomatsakis
2013-02-16 11:55:59 -08:00
Niko Matsakis
ad8b437ada
Make 'foo use font-lock-builtin-face, like module names, and make capitalized identifiers optionally use font-lock-type-face
2013-02-16 08:01:10 -05:00
Niko Matsakis
1ef8c48a20
emacs mode: Highlight 'foo as a lifetime, not a character constant.
2013-02-16 08:01:10 -05:00
Daniel Micay
5c75f210ba
vim: move keyword is gone
2013-02-16 03:17:26 -05:00
Kang Seonghoon
5336bf6add
made licenseck.py work for year substitutions
2013-02-14 11:20:40 +09:00
Brian Anderson
faef933e75
Merge pull request #4873 from jld/rust-mode-wants-cl-when
...
rust-mode.el uses the 'cl macros, so it should actually require them
2013-02-11 13:06:57 -08:00
Jeff Olson
3a813e29b6
etc: rework of how libuv is integrated into the build
...
- thanks to work in libuv's upstream, we can call libuv's Makefile directly
with parameters, instead of descending in gyp-uv madness and generating
our own.
2013-02-10 11:51:05 -08:00
Jed Davis
e93a58d526
rust-mode.el uses the 'cl macros, so it should actually require them
...
Without this change, rust-mode doesn't work if 'cl hasn't been required
by something else, apparently. I'm not entirely sure what changed such
that I started seeing this problem instead of not, but maybe the emacs
world has been making progress towards not loading 'cl at runtime if
it's only needed at compile time.
2013-02-10 11:23:10 -08:00
Daniel Micay
dffc3f82b2
vim: 'fail' is no longer a keyword
2013-02-01 19:32:03 -05:00
Daniel Micay
6052d67474
vim: pub is just a plain old token keyword
2013-02-01 14:21:32 -05:00
Daniel Micay
00201c969d
vim: use StorageClass for mut and const
2013-02-01 14:21:32 -05:00
Daniel Micay
1c3cca8a57
vim: 'be' is a reserved keyword
2013-02-01 14:21:32 -05:00
Daniel Micay
5b47c551b9
vim: unsafe:: namespaces were renamed to raw::
2013-02-01 14:21:32 -05:00
Daniel Micay
405b868ae7
vim: add Self type
2013-02-01 14:21:25 -05:00
Daniel Micay
0c1a345d01
vim: export is no longer a keyword
2013-02-01 13:20:03 -05:00
Niko Matsakis
0682ad0eb9
Finalize moves-based-on-type implementation.
...
Changes:
- Refactor move mode computation
- Removes move mode arguments, unary move, capture clauses
(though they still parse for backwards compatibility)
- Simplify how moves are handled in trans
- Fix a number of illegal copies that cropped up
- Workaround for bug involving def-ids in params
(see details below)
Future work (I'll open bugs for these...):
- Improve error messages for moves that are due
to bindings
- Add support for moving owned content like a.b.c
to borrow check, test in trans (but I think it'll
"just work")
- Proper fix for def-ids in params
Def ids in params:
Move captures into a map instead of recomputing.
This is a workaround for a larger bug having to do with the def-ids associated
with ty_params, which are not always properly preserved when inlining. I am
not sure of my preferred fix for the larger bug yet. This current fix removes
the only code in trans that I know of which relies on ty_param def-ids, but
feels fragile.
2013-01-31 12:09:00 -08:00
Patrick Walton
83ced67d0b
librustdoc: De-export compiletest, combine-tests, libcargo, libfuzzer, and librustdoc. rs=deexporting
2013-01-30 14:30:42 -08:00
Tim Chevalier
66b07f1e5d
Fix licenseck to allow 2012-2013 as the year range
2013-01-29 13:48:40 -08:00
Niko Matsakis
e8f3690123
Change "// WARN" in tidy to "// NOTE" as requested by @catamorphism
2013-01-28 10:01:59 -08:00
Niko Matsakis
8f14d43206
Make tidy actually work
...
r=catamorphism
2013-01-28 10:00:39 -08:00
Niko Matsakis
0004be9eca
Detect "// WARN" in tidy and print out, well, a warning! Useful
...
for notating FIXME-style-situations that you want to be reminded
of before you commit.
r=catamorphism
2013-01-28 10:00:35 -08:00
Chris Peterson
b3cbe9e3c1
Enable lint warnings for doc tests
2013-01-20 22:56:45 -08:00
Brian Anderson
6b6acde972
Add a license check to tidy. #4018
2013-01-17 23:28:42 -08:00
Daniel Micay
8ffc2b0f5e
fix sugarise-doc-comments.py shebang
2013-01-03 02:40:21 -05:00
Daniel Micay
2cf2d6aa92
add Drop trait to vim syntax highlighting
2012-12-25 01:20:27 -05:00
Daniel Micay
a45e41faaa
update after/syntax/rust.vim for removal of <-
2012-12-21 21:37:32 -05:00
Daniel Micay
c7f7be83f5
update syntax/rust.vim for keyword changes
2012-12-14 17:13:11 -05:00
Graydon Hoare
fb498ff59f
Switch snapshots to static.rust-lang.org.
2012-12-11 12:55:51 -08:00
Patrick Walton
cf3972e95a
librustc: Propagate type uses correctly from method calls to the containing functions. rs=bugfix
...
This adds a new script, `monodebug.pl`. It can be used to diagnose problems stemming from incorrect combining of monomorphic generic instantiations.
2012-12-06 19:11:51 -08:00
Tim Chevalier
5b415c7372
Revert bogus snapshot.py change
2012-10-08 11:59:51 -07:00
Tim Chevalier
73ec5f09b0
Remove extra spaces from snapshots.txt
2012-10-08 11:11:09 -07:00
Andrew Paseltiner
84bc74e54a
update Kate syntax file with latest keywords and types
2012-10-05 20:28:26 -04:00
Brian Anderson
edc317b821
Remove arg vectors from main functions. Stop supporting them.
2012-10-04 15:07:49 -07:00
Brian Anderson
6c15dd6d82
rust-mode: Add 'ref' keyword
2012-09-28 12:41:34 -07:00
Graydon Hoare
25715bd59e
Fix check-fast for the change to main's signature.
2012-09-26 17:20:49 -07:00
Graydon Hoare
2d91567892
Fix combine-tests.py to emit #[legacy_exports];
2012-09-25 15:31:02 -07:00
Ben Blum
8baed1f25f
vim - Update bblum's email address and highlight trait names
2012-09-23 23:24:25 -04:00
Brian Anderson
49af969e2c
rust-mode: Add pub and priv
2012-09-21 18:25:51 -07:00
Brian Anderson
6473cf1757
docs: Remove elipses from examples instead of commenting them out
...
This causes bugs since comments aren't nestable
2012-09-18 11:54:45 -07:00
Brian Anderson
864cca14ee
docs: Make supplemental tutorials testable
2012-09-15 18:06:20 -07:00
Brian Anderson
dc11e87b84
Fix combine-tests.py for new syntax
2012-09-11 17:17:16 -07:00
Niko Matsakis
d5b3e44b47
emacs mode: include use as a keyword
2012-09-06 12:31:33 -07:00
Patrick Walton
2ba632a683
vim: Turn "pub" into a big asterisk for those who dislike the look of it.
...
This is not the default and must be turned on.
2012-09-05 18:59:01 -07:00
Brian Anderson
9097410b43
Fix tutorial tests
2012-09-05 17:04:51 -07:00