]>
git.lizzy.rs Git - rust.git/log
Niko Matsakis [Thu, 5 Jan 2012 05:37:02 +0000 (21:37 -0800)]
update test on disambig to reflect that some cases are no longer legal
Niko Matsakis [Thu, 5 Jan 2012 00:04:37 +0000 (16:04 -0800)]
correct test to reference right value
Niko Matsakis [Wed, 4 Jan 2012 22:16:41 +0000 (14:16 -0800)]
require a non-semi expr acting as a stmt to have unit return type
Niko Matsakis [Wed, 4 Jan 2012 06:03:07 +0000 (22:03 -0800)]
make parser handle parenthesized block-sugar exprs properly
Graydon Hoare [Thu, 5 Jan 2012 18:07:00 +0000 (10:07 -0800)]
Merge pull request #1440 from boggle/kmath
Upgraded math to C99 + bessel functions and replaced wrappers with imports
Stefan Plantikow [Thu, 5 Jan 2012 16:18:40 +0000 (17:18 +0100)]
Merge branch 'master' into kmath
Conflicts:
src/libcore/float.rs
Stefan Plantikow [Thu, 5 Jan 2012 16:11:34 +0000 (17:11 +0100)]
Moved generic float::min, max to core::math and cleaned up some imports
Marijn Haverbeke [Thu, 5 Jan 2012 15:04:59 +0000 (16:04 +0100)]
Clean up translating of def_ids in metadata reader
Reduces the amount of closure allocation, and makes the code cleaner.
Stefan Plantikow [Thu, 5 Jan 2012 13:46:14 +0000 (14:46 +0100)]
Merge branch 'master' into kmath
Marijn Haverbeke [Thu, 5 Jan 2012 14:35:37 +0000 (15:35 +0100)]
Switch to new param kind bound syntax
And remove support for the old syntax
Marijn Haverbeke [Thu, 5 Jan 2012 13:55:23 +0000 (14:55 +0100)]
Clean up some FIXMEs related to impls
Marijn Haverbeke [Thu, 5 Jan 2012 12:57:27 +0000 (13:57 +0100)]
Get external interfaces / impls working
Issue #1227
Marijn Haverbeke [Thu, 5 Jan 2012 10:54:28 +0000 (11:54 +0100)]
Register new snapshot
Marijn Haverbeke [Thu, 5 Jan 2012 10:09:19 +0000 (11:09 +0100)]
Fix bad spans for ast::ty parsing
The span would be pointing after the actual text.
Marijn Haverbeke [Thu, 5 Jan 2012 09:57:19 +0000 (10:57 +0100)]
Write the iface type of an impl in the crate data
Also, move checking of ifaces into the collect phase of typeck
to give further passes some guarantees.
Issue #1227
Marijn Haverbeke [Thu, 5 Jan 2012 09:07:33 +0000 (10:07 +0100)]
Remove ty::bind_params_in_type
It does nothing that substitute_type_params can't do better.
Marijn Haverbeke [Thu, 5 Jan 2012 08:18:19 +0000 (09:18 +0100)]
Express some list primitives in a way that doesn't copy
It was somewhat embarassing that list::len copied its elements.
Josh Matthews [Thu, 5 Jan 2012 06:19:50 +0000 (01:19 -0500)]
Add more item types to the ast_map so the test suite can build with debug info.
Stefan Plantikow [Thu, 5 Jan 2012 02:14:47 +0000 (03:14 +0100)]
added preliminary support for per-architecture generation of math constants (for porting)
Stefan Plantikow [Wed, 4 Jan 2012 23:11:25 +0000 (00:11 +0100)]
Merge branch 'master' into kmath
Conflicts:
src/libcore/cmath.rs
Niko Matsakis [Wed, 4 Jan 2012 05:26:31 +0000 (21:26 -0800)]
make scanning more efficient by avoiding recomputation
Niko Matsakis [Wed, 4 Jan 2012 05:01:48 +0000 (21:01 -0800)]
extend tester so that error msgs can be attached to lines
Marijn Haverbeke [Wed, 4 Jan 2012 21:12:43 +0000 (22:12 +0100)]
Use the right types for methods in trans_impl
This prevents misalignment between function and argument
types in corner cases.
Marijn Haverbeke [Wed, 4 Jan 2012 18:55:17 +0000 (19:55 +0100)]
xfail-pretty iface-generic.rs until i have time to debug
Tim Chevalier [Wed, 4 Jan 2012 17:40:36 +0000 (09:40 -0800)]
Reformat typestate error messages so as not to confuse emacs compilation mode
Marijn Haverbeke [Wed, 4 Jan 2012 16:28:16 +0000 (17:28 +0100)]
Add test for generic iface methods
Issue #1227
Marijn Haverbeke [Wed, 4 Jan 2012 15:51:25 +0000 (16:51 +0100)]
Prevent typenames in param bounds from resolving to their own param
I.e. fn foo<T: seq<T>>(...). This leads to weird circularities that seem to
never make any sense, so it seems prudent to forbid it.
Issue #1227
Marijn Haverbeke [Wed, 4 Jan 2012 15:37:39 +0000 (16:37 +0100)]
Add visit_ty_params to visit.rs
And use it to make typechecking of bounds less error-prone.
Marijn Haverbeke [Wed, 4 Jan 2012 15:36:53 +0000 (16:36 +0100)]
Add either::is_left and either::is_right
Marijn Haverbeke [Wed, 4 Jan 2012 10:32:26 +0000 (11:32 +0100)]
Properly typecheck and compile invocations of generic methods.
Aligning the type parameters of the ifaces, impls, and methods
correctly in typeck is almost brain surgery. Seems to work now for
everything I threw at it, but might still break in other corner cases.
Issue #1227
Lenny222 [Tue, 3 Jan 2012 18:08:13 +0000 (19:08 +0100)]
"str": rename "str_from_cstr" to "from_cstr" (analogous to the other "from_*")
Lenny222 [Mon, 2 Jan 2012 20:29:44 +0000 (21:29 +0100)]
"char": use shorter names "to_lower"/"to_upper", analogous to the same names in "str"
Lenny222 [Mon, 2 Jan 2012 20:14:20 +0000 (21:14 +0100)]
implement str::is_whitespace using char::is_whitespace
Tim Chevalier [Tue, 3 Jan 2012 23:50:05 +0000 (15:50 -0800)]
Add missing ty_constr cases to trans::type_of_inner and ty::fold_ty.
Closes #970
Niko Matsakis [Thu, 29 Dec 2011 20:03:39 +0000 (12:03 -0800)]
Allow tail expressions even in no_value blocks. Type checker
will guarantee they have unit type.
Niko Matsakis [Thu, 29 Dec 2011 17:49:33 +0000 (09:49 -0800)]
new tests
Niko Matsakis [Thu, 29 Dec 2011 15:13:27 +0000 (07:13 -0800)]
extend parser so that expressions that do not require semi-colons
to be statements are not considered expressions in the tail position
Niko Matsakis [Thu, 22 Dec 2011 06:16:28 +0000 (22:16 -0800)]
rewrite to put blk as 2nd arg
Niko Matsakis [Wed, 21 Dec 2011 04:12:52 +0000 (20:12 -0800)]
minimal changes to permit fn blocks in expr
Brian Anderson [Tue, 3 Jan 2012 20:18:53 +0000 (12:18 -0800)]
Merge pull request #1392 from Lenny222/list
list: add "is_not_empty" requirement to "head" and "tail" (analogous to "vec")
Marijn Haverbeke [Tue, 3 Jan 2012 15:37:41 +0000 (16:37 +0100)]
Make resolution of dictionaries on bounded params work
Issue #1227
Marijn Haverbeke [Tue, 3 Jan 2012 15:07:26 +0000 (16:07 +0100)]
Wire in resolution of param bounds for method calls
Issue #1227
Marijn Haverbeke [Tue, 3 Jan 2012 14:29:28 +0000 (15:29 +0100)]
Make syntax for impls less magical
The trick of interpreting parameters to the iface type as parameters
to the impl was just too magical.
Issue #1227
Marijn Haverbeke [Mon, 2 Jan 2012 15:50:51 +0000 (16:50 +0100)]
More work on translating dictionary-passing
Reached a point where simple uses of interfaces without bounds work.
Issue #1227
Brian Anderson [Mon, 2 Jan 2012 20:18:23 +0000 (12:18 -0800)]
llvm: Revert unneeded debugging change
Marijn Haverbeke [Mon, 2 Jan 2012 14:59:04 +0000 (15:59 +0100)]
Fix expected error messages for better printing of ty_ptr
Marijn Haverbeke [Mon, 2 Jan 2012 14:42:13 +0000 (15:42 +0100)]
Add a clause ty_ptr to ppaux::ty_to_str
Closes #1383
Marijn Haverbeke [Mon, 2 Jan 2012 14:31:58 +0000 (15:31 +0100)]
Add 'copy' bounds to functions that were faultily accepted without
Issue #1390
Marijn Haverbeke [Mon, 2 Jan 2012 14:23:11 +0000 (15:23 +0100)]
Properly handle expression blocks in kind.rs
It was only noticing them in expr_block form, not as function
bodies.
Closes #1390
Lenny222 [Mon, 2 Jan 2012 13:03:06 +0000 (14:03 +0100)]
typo
Marijn Haverbeke [Mon, 2 Jan 2012 12:26:51 +0000 (13:26 +0100)]
Write out vtables for interface implementations
Issue #1227
Marijn Haverbeke [Mon, 2 Jan 2012 11:58:31 +0000 (12:58 +0100)]
Drop two useless sub-passes from trans
Neither collect_tag_ctors nor the second pass in collect_items needed
to be separate passes.
Also remove obsolete obj_methods table kludge.
Marijn Haverbeke [Mon, 2 Jan 2012 11:21:44 +0000 (12:21 +0100)]
Create a trans_impl module
Marijn Haverbeke [Mon, 2 Jan 2012 11:13:26 +0000 (12:13 +0100)]
Key tcx.ty_param_bounds on node_ids, not def_ids
This makes it clearer that it's only valid for local nodes.
Marijn Haverbeke [Mon, 2 Jan 2012 11:09:26 +0000 (12:09 +0100)]
Box arrays of parameter bounds
Marijn Haverbeke [Mon, 2 Jan 2012 11:00:40 +0000 (12:00 +0100)]
Pass bounds to trans::type_of_fn
Marijn Haverbeke [Thu, 29 Dec 2011 12:12:52 +0000 (13:12 +0100)]
More resolving and typechecking of bounded type parameters.
Extern interfaces still don't get recognized.
Issue #1227
Marijn Haverbeke [Thu, 29 Dec 2011 10:23:35 +0000 (11:23 +0100)]
Check that type parameter bounds are interface types
Issue #1227
Marijn Haverbeke [Mon, 2 Jan 2012 09:23:04 +0000 (10:23 +0100)]
Fix confusing information in tutorial chapter about argument modes
Marijn Haverbeke [Mon, 2 Jan 2012 09:20:58 +0000 (10:20 +0100)]
Make last-use pass properly handle closed-over variables
Closes #1399
Brian Anderson [Mon, 2 Jan 2012 04:26:34 +0000 (20:26 -0800)]
llvm: Upgrade LLVM with FreeBSD segmented stack support
Brian Anderson [Mon, 2 Jan 2012 04:20:32 +0000 (20:20 -0800)]
Add Jyun-Yan You to AUTHORS.txt
Jyun-Yan You [Mon, 2 Jan 2012 02:39:14 +0000 (10:39 +0800)]
link with gcc44+
Jyun-Yan You [Sun, 1 Jan 2012 17:24:07 +0000 (01:24 +0800)]
fix link error
Jyun-Yan You [Sun, 1 Jan 2012 06:36:48 +0000 (14:36 +0800)]
add missing library, enable segmented stacks for freebsd
Jyun-Yan You [Fri, 30 Dec 2011 08:50:15 +0000 (16:50 +0800)]
forgot to add parentheses
User Jyyou [Fri, 30 Dec 2011 08:18:55 +0000 (16:18 +0800)]
freebsd support
Brian Anderson [Sun, 1 Jan 2012 21:17:34 +0000 (13:17 -0800)]
Merge pull request #1407 from erickt/master
The tutorial should mention the ++ arg passing style
Lenny222 [Sun, 1 Jan 2012 16:30:12 +0000 (17:30 +0100)]
"str": extract to_upper/lower_case() into "char"
Erick Tryzelaar [Sat, 31 Dec 2011 20:20:03 +0000 (12:20 -0800)]
tutorial: Mention by-value argument passing style.
Stefan Plantikow [Wed, 28 Dec 2011 01:20:14 +0000 (02:20 +0100)]
core: added support for bessel functions
Stefan Plantikow [Fri, 23 Dec 2011 01:39:43 +0000 (02:39 +0100)]
Removed now obsolete mtypes module
Stefan Plantikow [Fri, 23 Dec 2011 01:31:24 +0000 (02:31 +0100)]
core: killed all math wrappers
Stefan Plantikow [Thu, 22 Dec 2011 14:19:43 +0000 (15:19 +0100)]
Trying to remove wrappers from float
Stefan Plantikow [Thu, 22 Dec 2011 11:55:28 +0000 (12:55 +0100)]
added more ops to cmath
Stefan Plantikow [Thu, 22 Dec 2011 11:54:55 +0000 (12:54 +0100)]
removes std::mtypes
Stefan Plantikow [Thu, 22 Dec 2011 11:54:38 +0000 (12:54 +0100)]
added useful constants to math
Niko Matsakis [Fri, 30 Dec 2011 21:32:42 +0000 (13:32 -0800)]
add cap clause to pretty printer, with a test
Graydon Hoare [Fri, 30 Dec 2011 23:26:49 +0000 (15:26 -0800)]
Print usage messages to rustc and rustdoc when invoked with no args. Close #1394.
Graydon Hoare [Fri, 30 Dec 2011 23:10:55 +0000 (15:10 -0800)]
Document copy/move/swap/assign expressions more accurately. Fix up some drift on log docs.
Graydon Hoare [Fri, 30 Dec 2011 20:48:07 +0000 (12:48 -0800)]
Make install and check targets depend on all. Close #1395.
Graydon Hoare [Fri, 30 Dec 2011 20:47:43 +0000 (12:47 -0800)]
Make clean cleaner.
Lenny222 [Fri, 30 Dec 2011 09:54:31 +0000 (10:54 +0100)]
add test for list:is_empty()
Niko Matsakis [Fri, 30 Dec 2011 04:07:55 +0000 (20:07 -0800)]
split proto from fn_decl, as not all fn_decls know the proto.
this will address the (crashing) new test added.
Graydon Hoare [Fri, 30 Dec 2011 02:02:39 +0000 (18:02 -0800)]
Purge some obsolete and/or not-implemented stuff from docs.
Graydon Hoare [Fri, 30 Dec 2011 01:30:43 +0000 (17:30 -0800)]
Of course there were overlong lines.
Graydon Hoare [Fri, 30 Dec 2011 01:24:04 +0000 (17:24 -0800)]
Teach unicode script to emit canonical and compat decomp mappings. Annoyingly large encoding.
Graydon Hoare [Thu, 29 Dec 2011 22:45:18 +0000 (14:45 -0800)]
Add support in lexer for utf8 identifiers. No NFKC logic in char yet.
Lenny222 [Thu, 29 Dec 2011 20:24:03 +0000 (21:24 +0100)]
list: use predicate to enforce non-empty requirement
Graydon Hoare [Thu, 29 Dec 2011 19:49:29 +0000 (11:49 -0800)]
Save and restore xmm regs across the call to UPCALL_NEW_STACK during __morestack, close #1388.
Graydon Hoare [Thu, 29 Dec 2011 18:21:05 +0000 (10:21 -0800)]
Remove obsolete comments.
Marijn Haverbeke [Thu, 29 Dec 2011 08:29:08 +0000 (09:29 +0100)]
Box ty_param_bounds_and_ty
It contains a vector, which shouldn't be copied all the time.
Graydon Hoare [Wed, 28 Dec 2011 21:41:31 +0000 (13:41 -0800)]
On second thought, re-land pull request #1385 with backquotes; easier to grep, can change in the future.
Graydon Hoare [Wed, 28 Dec 2011 21:08:28 +0000 (13:08 -0800)]
Merge pull request #1385 from Lenny222/quotes
Use singlequotes in the typechecker error messages too, to distinguish code and English
Graydon Hoare [Wed, 28 Dec 2011 21:05:02 +0000 (13:05 -0800)]
Merge pull request #1389 from erickt/master
misc standard library additions
Marijn Haverbeke [Wed, 28 Dec 2011 17:11:33 +0000 (18:11 +0100)]
Move the kind datatype to middle::ty
The AST no longer references it.
Marijn Haverbeke [Wed, 28 Dec 2011 16:50:12 +0000 (17:50 +0100)]
Change representation of type params to handle interface bounds
Issue #1227
Graydon Hoare [Wed, 28 Dec 2011 19:53:12 +0000 (11:53 -0800)]
Tidy up some drift in runtime logging, close #1380.
Erick Tryzelaar [Wed, 28 Dec 2011 08:30:04 +0000 (00:30 -0800)]
libstd: add bytes_reader and bytes_writer
This parallels nicely with string_reader and string_writer, but
working with raw byte strings. I'm not quite sure if the return
type for bytes_writer.get_bytes should be [u8] or [mutable u8]
though, so I'm arbitrarily picking mutable for now.
Erick Tryzelaar [Wed, 28 Dec 2011 00:38:48 +0000 (16:38 -0800)]
libstd: Allow io writer to write mutable arrays