Commit Graph

27233 Commits

Author SHA1 Message Date
Ben Noordhuis
c800c98574 rustc: remove linker_private/linker_private_weak
Remove the linker_private and linker_private_weak linkage attributes,
they have been superseded by private and private_weak and have been
removed in upstream LLVM in commit r203866.
2014-03-18 13:49:09 -07:00
Nick Cameron
3301223c99 Fix linkage1 test which fails due to --as-needed
It appears that the --as-needed flag to linkers will not pull in a dynamic library unless it satisfies a non weak undefined symbol. The linkage1 test was creating a dynamic library where it was only used for a weak-symbol as part of an executable, so the dynamic library was getting discarded.

This commit adds another symbol to the library which satisfies a strong undefined symbol, so the library is pulled in to resolve the weak reference.
2014-03-18 13:48:12 -07:00
Nick Cameron
083d423976 Move syntax-extension-hexfloat.rs
Move syntax-extension-hexfloat.rs to run-pass-fulldeps so it depends on libhexfloat being compiled before running.
2014-03-18 13:48:09 -07:00
Simon Sapin
4ab95bcf20 char: s/character/Unicode scalar value/
Tweak the definition of `char` to use the appropriate Unicode terminology.
2014-03-18 13:48:06 -07:00
Alex Crichton
87c7c03f45 syntax: Don't parameterize the the pretty printer
The pretty printer constitues an enormous amount of code, there's no reason for
it to be generic. This just least to a huge amount of metadata which isn't
necessary. Instead, this change migrates the pretty printer to using a trait
object instead.

Closes #12985
2014-03-18 13:48:03 -07:00
Huon Wilson
92f0bc2935 rustc: buffer the output writer for -Z ast-json[-noexpand].
This takes the time for `rustc libstd/lib.rs -Z ast-json-noexpand >
file.json` from 9.0s to 3.5s (~0.5s spent parsing etc.) and `-Z
ast-json` from 11s to 5s (~1.5s spent parsing and expanding).
2014-03-18 13:47:55 -07:00
Corey Richardson
873f7408bd rustc: test: don't silently ignore bad benches
This is adequate because when a function has a type that isn't caught here,
that is, it has a single argument, but it *isn't* `&mut BenchHarness`, it
errors later on with:

     error: mismatched types: expected `fn(&mut test::BenchHarness)` but found
     `fn(int)` (expected &-ptr but found int)

which I consider acceptable.

Closes #12997
2014-03-18 13:47:50 -07:00
Corey Richardson
f9e0baa19a remove duplicate methods in impls 2014-03-18 13:47:42 -07:00
Corey Richardson
1607871dc2 rustc: disallow duplicate methods in trait impls
Closes #8153
2014-03-18 13:47:42 -07:00
Jorge Aparicio
1f4c63049e Make method Vec::remove() public 2014-03-18 11:53:32 -05:00
bors
af9368452d auto merge of #12935 : lbonn/rust/nullenum, r=alexcrichton
Fix for #12560
2014-03-17 11:57:08 -07:00
bors
0a181a8917 auto merge of #12742 : FlaPer87/rust/issue-11411-static-mut-slice, r=nikomatsakis
This PR enables the use of mutable slices in *mutable* static items. The work was started by @xales and I added a follow-up commit that moves the *immutable* restriction to the recently added `check_static`

Closes #11411
2014-03-17 09:57:06 -07:00
bors
79203b522b auto merge of #12957 : lkuper/rust/docsprint, r=alexcrichton 2014-03-17 08:01:56 -07:00
bors
50e3aa31e2 auto merge of #12951 : cadencemarseille/rust/issue-12943-remove-AtomicFlag, r=alexcrichton
fixes #12943
2014-03-17 05:17:02 -07:00
Laurent Bonnans
695114ea2c rustc: disallow trailing parentheses for nullary enum variants
Fixes #12560
2014-03-17 12:11:22 +01:00
bors
e4c91e6c7c auto merge of #12735 : eddyb/rust/at-exodus-chapter-11, r=cmr 2014-03-17 02:11:56 -07:00
Eduard Burtescu
e2ebc8f811 Fix rustdoc and tests. 2014-03-17 09:55:41 +02:00
Eduard Burtescu
e02aa722aa Refactor pprust a bit. 2014-03-17 09:53:08 +02:00
Eduard Burtescu
871e570810 De-@ codemap and diagnostic. 2014-03-17 09:53:08 +02:00
Eduard Burtescu
0bb6de3076 De-@ move maps and rework parts of trans. 2014-03-17 09:53:08 +02:00
Eduard Burtescu
3f64d4126b De-@ gather_loans. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
a1e24c7f22 De-@ typeck::check::method. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
da842c6278 De-@ resolve_lifetime. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
90cbe0cad2 De-@ ParseSess uses. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
555a239301 De-@ CStore uses. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
f77c744142 De-@ filesearch. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
eeb37b76af De-@ reachable. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
6c42ef31dc De-@ trans contexts. 2014-03-17 09:53:07 +02:00
Eduard Burtescu
869c96dbf0 De-@ type checking contexts. 2014-03-17 09:53:06 +02:00
Eduard Burtescu
6879916a06 De-@ liveness. 2014-03-17 09:53:06 +02:00
Eduard Burtescu
0ba5f1b8f4 De-@ tyencode::ctxt and related parts of astencode. 2014-03-17 09:53:06 +02:00
Eduard Burtescu
9b1fee898f De-@ ty::ctxt usage. 2014-03-17 09:53:06 +02:00
Eduard Burtescu
4fae06824c De-@ Session usage. 2014-03-17 09:53:06 +02:00
bors
b6d5b8f6ff auto merge of #12945 : cadencemarseille/rust/vec_ng-as_mut_ptr, r=alexcrichton 2014-03-17 00:21:59 -07:00
bors
eb68beec4b auto merge of #12944 : mcpherrinm/rust/master, r=alexcrichton 2014-03-16 22:31:55 -07:00
bors
6fa72dfe48 auto merge of #12942 : alan-andrade/rust/docathon-getopts, r=alexcrichton
https://docs.google.com/spreadsheet/ccc?key=0An9tLRVf1SSfdE9jX1Q2QkhiUGVwTnh5YTJnMHVUYXc&usp=sharing#gid=6
2014-03-16 20:41:57 -07:00
bors
ffe72e9536 auto merge of #12940 : cadencemarseille/rust/time-doc, r=alexcrichton 2014-03-16 18:51:52 -07:00
bors
4e1172ebbd auto merge of #12937 : sinistersnare/rust/method-error-message, r=huonw
its a common (yet easily fixable) error to just forget parens at the end of getter-like methods without any arguments.

The current error message for that case asks for an anonymous function, this patch adds a note asking for either an anonymous function, or for trailing parens.

This is my first contribution! do i need to do anything else?
2014-03-16 17:01:54 -07:00
Lindsey Kuper
7da2074827 strdup_uniq doesn't have to be pub. 2014-03-16 19:54:36 -04:00
Matthew McPherrin
5026d114a0 Doc-sprint: Document endian conversion functions 2014-03-16 15:57:16 -07:00
Cadence Marseille
13d73e99d6 Remove AtomicFlag
fixes #12943
2014-03-16 18:54:10 -04:00
Cadence Marseille
5bb9bd2d34 Document the Tm struct and fields 2014-03-16 18:10:10 -04:00
Cadence Marseille
5db7f7ed24 Add method Vec<T>::as_mut_ptr() 2014-03-16 17:20:44 -04:00
bors
9e89ffc60e auto merge of #12931 : aochagavia/rust/option-take_unwrap, r=cmr
Using pattern matching instead of is_some + unwrap
2014-03-16 14:11:26 -07:00
Alan Andrade
6b2888aeec getopts missing docs 2014-03-16 14:06:23 -07:00
Davis Silverman
8b6592ef1a Asked if missing (), then asks about an anonymous function. Also added test. 2014-03-16 16:46:02 -04:00
bors
76478492ef auto merge of #12933 : edwardw/rust/fallout, r=huonw
The same test was missed in chan/port renaming PR #12815 and was fixed in #12880:

> This was missed because it is skipped on linux and windows, and the mac bots were moving at the time the PR landed.

It seems the same happened to the liblog PR.
2014-03-16 12:21:26 -07:00
Edward Wang
cdd4f6e65d Fix a test that was missed in the liblog PR 2014-03-16 21:18:17 +08:00
bors
7156ded5bc auto merge of #12924 : Florob/rust/bigint, r=alexcrichton
This is a minor optimization of the bignum module. The improvements mostly come from avoiding allocations and boundary checks. This also switches all of libnum to vec_ng::Vec.
2014-03-16 05:11:18 -07:00
aochagavia
ea8da6ed97 Refactored take_unwrap (libstd/option.rs)
Using pattern matching instead of is_some + unwrap
2014-03-16 12:11:13 +01:00