about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2011-10-17Don't allow assignment to mutable-wha?Brian Anderson-9/+73
2011-10-17[Lib] int.rs, uint.rs: added max_value, min_valueDavid Rajchenbach-Teller-0/+35
2011-10-17[Lib] uint.rs: +min_valueDavid Rajchenbach-Teller-1/+1
2011-10-17[Lib] rand.rs: type rng now defines next_floatDavid Rajchenbach-Teller-0/+8
2011-10-17[Lib] u32.rs: createdDavid Rajchenbach-Teller-0/+14
2011-10-17[Lib] u8.rs, u64.rs: +min_value, max_valueDavid Rajchenbach-Teller-1/+5
2011-10-17Change the linkage order on linux and add -ldlBrian Anderson-5/+6
-lrt and -ldl need to be specified after -lrustrt since they are only used by rustrt.
2011-10-16Only link librt on linuxBrian Anderson-1/+8
2011-10-16Fix link error by explicitly link needed DSOsHaitao Li-1/+1
Building Rust(version 280bc56) on Ubuntu 11.10 failed with link error, like: compile_and_link: stage0/lib/rustc/i686-unknown-linux-gnu/lib/libstd.so compile_and_link: stage0/lib/rustc/i686-unknown-linux-gnu/bin/rustc /local/src/rust/build/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustrt.so: undefined reference to `clock_gettime' collect2: ld returned 1 exit status error: linking with gcc failed with code 1 GCC toolchain released by Ubuntu 11.10 introduced a few compiler flags that are different with upstream GCC[1]. Flags "-Wl,--as-needed' and '-Wl,--no-copy-dt-needed-entries' are passed by default. Function clock_gettime from librt is used by librustrt, indirectly by rustc. It is necessary to explicitly pass the "-lrt" flags when building rustc. Please note since the toolchain changes will be the default in the next release(2.22) of binutils, this is not actually a Debian/Ubuntu specific issue. 1. https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain Signed-off-by: Haitao Li <lihaitao@gmail.com>
2011-10-15Update LinkModules invocation to use new prototypeElly Jones-1/+1
LLVM revision 141606 changes the prototype of llvm::Linker::LinkModules. Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-10-14Use trans_expr_save_in instead of trans_expr when appropriateMarijn Haverbeke-2/+2
This guards against passing a save_in destination to nil or bot-typed things.
2011-10-14Don't crash when reporting an unresolved import in the nil scopeMarijn Haverbeke-18/+22
Closes #1027
2011-10-13Remove an unnecessary visitor from rustc::middle::fn_usageBrian Anderson-8/+1
2011-10-13Fix a use of visit in rustc::middle::fn_usageBrian Anderson-1/+1
This was working by just skipping an AST node instead of doing the advertised check. I can't find a test case for it, but this is more correct.
2011-10-13Don't allow the value of generic bare functions to be takenBrian Anderson-5/+59
Issue #1038
2011-10-13Rename rustc::middle::unsafeck to fn_usageBrian Anderson-15/+15
I'm going to add further checks unrelated to unsafe. Issue #1038
2011-10-13Add a test that generic bare functions can be boundBrian Anderson-0/+10
Issue #1022
2011-10-13Make trans_anon_obj properly thread its bcxMarijn Haverbeke-9/+3
Closes #893 Unfortunately, anon objs are still so broken as to be useless (fields don't work).
2011-10-13Properly fill single-variant zero-arg tag values.Marijn Haverbeke-9/+20
Closes #1034. Closes #1035.
2011-10-12Cleanse usage of some unsafe functions on win32Brian Anderson-1/+5
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-156/+137
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-10-12remove unsafe tagsNiko Matsakis-12/+12
2011-10-12new testNiko Matsakis-0/+11
2011-10-12make compiler emit more than 1 error in the case of unsafeNiko Matsakis-28/+12
2011-10-12prohibit ptr deref unless in unsafe codeNiko Matsakis-2/+31
2011-10-12fix error msgNiko Matsakis-9/+2
2011-10-12add some new testsNiko Matsakis-1/+23
2011-10-12convert a few tests from unsafe fns to fns with unsafe bodiesNiko Matsakis-3/+3
2011-10-12make a good error msg if you try to use an unsafe fn for a testNiko Matsakis-8/+21
2011-10-12improve the span used in test generationNiko Matsakis-6/+8
2011-10-12add pass to check that unsafe fns cannot be used as valuesNiko Matsakis-1/+85
2011-10-12all tests passNiko Matsakis-3/+3
2011-10-12all tests passNiko Matsakis-6/+6
2011-10-12continue to annotate functions as unsafe where neccessaryNiko Matsakis-23/+22
2011-10-12continue to annotate trans functions as unsafe where neccessaryNiko Matsakis-5/+7
2011-10-12continue to annotate trans functions as unsafe where neccessaryNiko Matsakis-3/+3
2011-10-12add unsafe tags into various points in the translation chainsNiko Matsakis-76/+128
and so forth
2011-10-12Add unsafe tags to usage of LLVM funcsNiko Matsakis-5/+7
2011-10-12make treatment of unchecked/unsafe blocks more uniformNiko Matsakis-0/+0
also repair various errors in the parser related to such blocks. rename checked_blk to default_blk to reflect the fact that it inherits its purity from the surrounding context.
2011-10-12Revert "Test for #954"Brian Anderson-4/+0
This reverts commit 7edb0438895cc7c54a9c4a8c07daa0ebf13bbb36.
2011-10-12Test for #954Brian Anderson-0/+4
2011-10-12Register snapshotsBrian Anderson-0/+5
2011-10-12Ignore stdtest::os::test_setenv. Fails periodically on macBrian Anderson-0/+1
2011-10-12make native functions markable as unsafe and incorporate thatNiko Matsakis-16/+30
into the type check
2011-10-12skip test, remove whitespaceNiko Matsakis-1/+2
2011-10-12correct lines over 78 charsNiko Matsakis-2/+4
2011-10-12enable unsafe checking but only with a flag --check-unsafeNiko Matsakis-14/+25
2011-10-12make treatment of unchecked/unsafe blocks more uniformNiko Matsakis-20/+28
also repair various errors in the parser related to such blocks. rename checked_blk to default_blk to reflect the fact that it inherits its purity from the surrounding context.
2011-10-12add 'u' to one other place it was missingNiko Matsakis-0/+1
2011-10-12add 'u' to decoder (kinda' important)Niko Matsakis-0/+1