about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-11-24rustfmt libcollectionsNick Cameron-982/+1426
2015-11-24rustfmt: liballoc, liballoc_*, libarenaNick Cameron-51/+52
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-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
2015-11-19Ignore malformed environment variables on Windows tooTobias Bucher-15/+24
Leading equals symbols are treated as part of the variable name, if there is no other equality symbol or none at all, the environment string is ignored.
2015-11-19Auto merge of #29925 - Ms2ger:fmt-trans-base, r=luqmanabors-485/+561
2015-11-19std: Add Instant and SystemTime to std::timeAlex Crichton-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.
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-0/+0
The book was located under 'src/doc/trpl' because originally, it was going to be hosted under that URL. Late in the game, before 1.0, we decided that /book was a better one, so we changed the output, but not the input. This causes confusion for no good reason. So we'll change the source directory to look like the output directory, like for every other thing in src/doc.
2015-11-19Avoid a string allocation.Ms2ger-1/+1
2015-11-19Rustfmt trans/base.rs.Ms2ger-485/+561
2015-11-19Changes to data produced by privacy passVadim Petrochenkov-274/+205
2015-11-19Auto merge of #29917 - shssoichiro:doc-sidebar-order, r=alexcrichtonbors-1/+1
A race condition in Javascript was causing unpredictable ordering of the sidebar boxes when loading documentation generated by rustdoc, due to the script that adds the Crates box being executed asynchronously. Disabling the asynchronous execution and deferring this script should ensure that the Crates box always appears last in the sidebox (this seemed to be the more common ordering prior to this change). Fixes #29698
2015-11-19Auto merge of #29903 - nikomatsakis:incr-comp-ool-items, r=mw,nrcbors-1271/+1396
This PR moves items into a separate map stored in the krate, rather than storing them inline in the HIR. The HIR visitor is also modified to skip visiting nested items by default. The goal here is to ensure that if you get access to the HIR for one item, you don't automatically get access to a bunch of other items, for better dependency tracking. r? @nrc cc @eddyb
2015-11-18Update unit tests in driver.Niko Matsakis-2/+3