about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-11-24Fix test failuresJonas Schievink-5/+5
2015-11-24Remove "this"Jonas Schievink-1/+1
2015-11-23Print the macro context name on incomplete parseJonas Schievink-11/+63
Fixes #22425 Also fixes #30007, since it's just a change from `true` to `false`.
2015-11-23wording: results don't failPhilipp Matthias Schäfer-1/+1
2015-11-23Auto merge of #29984 - Manishearth:slice-assert, r=alexcrichtonbors-4/+23
I'd like to have the message print out the index and length values like it does elsewhere, but I'm not sure how to do that without affecting perf here. Will `assert!(cond, "index out of bounds got {} but len is ", idx, len)` make things slower? It calls `panic_fmt` which is marked as cold but also calls `format_args!`, and I don't know if that allocates or does any heavy lifting. cc @alexcrichton @Gankro
2015-11-23Improve slice indexing assertionManish Goregaokar-4/+22
2015-11-23Mark slice_error_fail as a cold pathManish Goregaokar-0/+1
2015-11-22Auto merge of #28907 - SingingTree:rustfmt_libterm, r=nrcbors-390/+507
Hey hey, This is the result of running rustfmt over the libterm module. The first commit reflects the unaltered changes from rustfmt, and the commit message contains some notes on areas where I thought rustfmt had behaved strangely. The second commit attempts to fix the strange areas from the first commit. Clarification edit: there are still some areas where I think rustfmt has made changes which may merit discussion (one is noted in the comments below). My second commit only undoes the changes that I figured would not warrant discussion (based on my opinion of the style, which is of course subjective). r? @nrc
2015-11-22Auto merge of #29964 - alexcrichton:update-libc, r=brsonbors-0/+0
Includes rust-lang-nursery/libc#66 which should: Closes #29818 Closes #29956
2015-11-22libc: Update to masterAlex Crichton-0/+0
Includes rust-lang-nursery/libc#66 which should: Closes #29956
2015-11-22test_inherit_env: Don't look for hidden environment variables on WindowsTobias Bucher-2/+4
Fixes #29972.
2015-11-22Auto merge of #29716 - Manishearth:repr-error, r=Gankrobors-15/+87
r? @Gankro
2015-11-22Auto merge of #29980 - Manishearth:missing-diag, r=eddybbors-0/+9
None
2015-11-22Improve transmute diagnostics with a note about destructorsManish Goregaokar-0/+3
fixes #29922
2015-11-22Register diagnostics for rustc_privacy and rustc_trans properlyManish Goregaokar-0/+6
fixes #29665
2015-11-22Auto merge of #29968 - Manishearth:bang-macro-diag, r=eddybbors-30/+76
r? @eddyb fixes #5780
2015-11-22Look up macro names as well when suggesting replacements for function ↵Manish Goregaokar-30/+76
resolve errors fixes #5780
2015-11-22Rustfmt libterm, skip long static in compiled.rsBryce Van Dyk-390/+507
2015-11-21Auto merge of #29963 - dotdash:fat_copy, r=eddybbors-0/+25
Since fat pointers do not qualify as structural types, they got copied using load_ty and store_ty, which means that we load an FCA and use extractvalue to get the components of the fat pointer. This breaks certain optimizations in LLVM. Found via apasel422/ref_count#13
2015-11-21Auto merge of #29966 - MatthiasKauer:master, r=steveklabnikbors-3/+2
This commit changes the location of the rust docs. https://github.com/rust-lang/rust/commit/024aa9a345e92aa1926517c4d9b16bd83e74c10d Clicking the contribution link on the front page therefore becomes a 'not found' error.
2015-11-21Auto merge of #29948 - devonhollowood:fromstr-parse, r=steveklabnikbors-0/+7
Implement #29919
2015-11-21Auto merge of #29913 - tbu-:pr_windows_path_error_on_nul, r=alexcrichtonbors-30/+85
On Windows: Previously these paths were silently truncated at these NUL characters, now they fail with `ErrorKind::InvalidInput`.
2015-11-21Also check for NULs in environment variablesTobias Bucher-18/+20
This check is necessary, because the underlying API only reads strings until the first NUL.
2015-11-21Auto merge of #29916 - Manishearth:diag-401, r=steveklabnikbors-1/+71
None
2015-11-21change link on book front page trpl -> bookMatthias Kauer-3/+2
2015-11-20Auto merge of #29961 - alexcrichton:order-dependent, r=brsonbors-5/+81
This commit fixes a bug where a crate could fail to compile depending on the order of `extern crate` directives at the top of the crate. Specifically, if the same crate is found at two locations, then if it's loaded first via `--extern` it will not emit a duplicate warning, but if it's first loaded transitively via a dep and *then* via `--extern` an error will be emitted. The loader was tweaked to catch this scenario and coalesce the loading of these two crates to prevent errors from being emitted.
2015-11-20Avoid FCA loads and extractvalue when copying fat pointersBjörn Steinbrink-0/+25
Since fat pointers do not qualify as structural types, they got copied using load_ty and store_ty, which means that we load an FCA and use extractvalue to get the components of the fat pointer. This breaks certain optimizations in LLVM. Found via apasel422/ref_count#13
2015-11-20Auto merge of #29945 - nrc:save-crate-name, r=alexcrichtonbors-2/+10
r? @alexcrichton This prevents outputting csv files with the same name and thus overwriting each other when indexing Cargo projects with a bin crate (and some other cases).
2015-11-20rustc: Fix `extern crate` being order dependentAlex Crichton-5/+81
This commit fixes a bug where a crate could fail to compile depending on the order of `extern crate` directives at the top of the crate. Specifically, if the same crate is found at two locations, then if it's loaded first via `--extern` it will not emit a duplicate warning, but if it's first loaded transitively via a dep and *then* via `--extern` an error will be emitted. The loader was tweaked to catch this scenario and coalesce the loading of these two crates to prevent errors from being emitted.
2015-11-20Auto merge of #29822 - petrochenkov:pubexport, r=alexcrichtonbors-274/+205
This patch implements the plan described in https://internals.rust-lang.org/t/privacy-and-its-interaction-with-docs-lints-and-stability/2880 with one deviation. It turns out, that rustdoc needs the "directly public" set for its docs inlining logic, so the privacy pass have to produce three sets and not two. Three is arguably too many, so I merged them in one map: `public_items/exported_items/reachable_items: NodeSet => access_levels: NodeMap<AccessLevel>` r? @alexcrichton
2015-11-20Add E0517, E0518 for repr() errorsManish Goregaokar-15/+87
2015-11-20Auto merge of #29951 - fhahn:fix-plugin-compiler-example, r=steveklabnikbors-6/+20
PR for #29930. Adds missing #![feature(slice_patterns)] to make compiler plugin example compile again.
2015-11-20Remove slice pattern from compiler plugin exampleFlorian Hahn-6/+20
closes #29930
2015-11-20Auto merge of #29950 - fhahn:small-doc-fix-rename-var, r=blussbors-4/+4
This tiny PR renames the result variable in HashSet's `intersection` example from `diff` to `intersection` and the same for `union`, which seem more appropriate.
2015-11-20Rename result variable in HashSet's intersection and union examplesFlorian Hahn-4/+4
2015-11-20Auto merge of #29534 - oli-obk:fix/const_fn_eval, r=dotdashbors-15/+38
2015-11-20Add information about str::parse() in FromStr docsDevon Hollowood-0/+7
2015-11-20Auto merge of #29943 - brson:inline-threshold, r=nrcbors-5/+14
Corresponds directly to llvm's inline-threshold. I want this so I can experiment out-of-tree with tweaking optimization settings, and this is the most important value that isn't exposed. I can't get it to work either via `-C llvm-args`. cc @rust-lang/compiler
2015-11-20Auto merge of #29942 - brson:rmsegstack, r=alexcrichtonbors-3/+0
2015-11-20save-analysis: make the dump file's name closer to the crate file's nameNick Cameron-2/+10
2015-11-20Auto merge of #29939 - mitaa:doc_const_fn, r=alexcrichtonbors-5/+57
fixes #27362
2015-11-19Add -C inline-thresholdBrian Anderson-5/+14
Corresponds directly to llvm's inline-threshold
2015-11-19Remove segmented stack option from LLVMRustCreateTargetMachine. Unused.Brian Anderson-3/+0
2015-11-19Auto merge of #29894 - alexcrichton:stdtime, r=brsonbors-102/+816
This commit is an implementation of [RFC 1288][rfc] which adds two new unstable types to the `std::time` module. The `Instant` type is used to represent measurements of a monotonically increasing clock suitable for measuring time withing a process for operations such as benchmarks or just the elapsed time to do something. An `Instant` favors panicking when bugs are found as the bugs are programmer errors rather than typical errors that can be encountered. [rfc]: https://github.com/rust-lang/rfcs/pull/1288 The `SystemTime` type is used to represent a system timestamp and is not monotonic. Very few guarantees are provided about this measurement of the system clock, but a fixed point in time (`UNIX_EPOCH`) is provided to learn about the relative distance from this point for any particular time stamp. This PR takes the same implementation strategy as the `time` crate on crates.io, namely: | Platform | Instant | SystemTime | |------------|--------------------------|--------------------------| | Windows | QueryPerformanceCounter | GetSystemTimeAsFileTime | | OSX | mach_absolute_time | gettimeofday | | Unix | CLOCK_MONOTONIC | CLOCK_REALTIME | These implementations can perhaps be refined over time, but they currently satisfy the requirements of the `Instant` and `SystemTime` types while also being portable across implementations and revisions of each platform. cc #29866
2015-11-19Auto merge of #29901 - tbu-:pr_env_ignore_malformed_windows, r=alexcrichtonbors-19/+25
See also #29297.
2015-11-19Show constness for functions of reexported docsmitaa-2/+54
2015-11-19Fix rustdocs `unsafe const fn` orderingmitaa-3/+3
2015-11-19Add run-pass test for paths containing the NUL characterTobias Bucher-0/+48
2015-11-19Error when paths contain NUL charactersTobias Bucher-19/+24
On Windows: Previously these paths were silently truncated at these NUL characters, now they fail with `ErrorKind::InvalidInput`.
2015-11-19Re-unignore environment test on MinGWTobias Bucher-5/+2