about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-05-21Avoid counting characters and add explanatory comment to testvarkor-2/+14
2018-05-21Only escape extended grapheme characters in the first positionvarkor-15/+28
2018-05-21Make {char, str}::escape_debug and impl Debug for {char, str} consistentvarkor-16/+4
2018-05-21Use Grapheme_Extend instead of Mnvarkor-174/+137
2018-05-21Use the correct output directory for downloading Unicode filesvarkor-2/+1
2018-05-21Remove example in test for is_nonspacing_mark because it's currently privatevarkor-10/+0
2018-05-21Add test for Debug formatting of charvarkor-0/+8
2018-05-21Escape combining characters in escape_debugvarkor-5/+33
2018-05-21Keep tables.rs copyright notice up to datevarkor-5/+5
2018-05-21Download unicode data files in directory of unicode.pyvarkor-7/+11
2018-05-21Update unicode/tables.rs with Mnvarkor-1/+121
2018-05-17Auto merge of #50629 - Mark-Simulacrum:stage-step, r=alexcrichtonbors-1521/+442
Switch to bootstrapping from 1.27 It's possible the Float trait could be removed from core, but I couldn't tell whether it was intended to be removed or not. @SimonSapin may be able to comment more here; we can presumably also do that in a follow up PR as this one is already quite large.
2018-05-17Remove MAKEFLAGS to prevent accidental inheritanceMark Simulacrum-5/+4
2018-05-17Fix rustc binary metadata overwriting librustc metadataMark Simulacrum-2/+2
In #49289, rustc was changed to emit metadata for binaries, which made it so that the librustc.rmeta file created when compiling librustc was overwritten by the rustc-main compilation. This commit renames the rustc-main binary to avoid this problem. https://github.com/rust-lang/cargo/issues/5524 has also been filed to see if Cargo can learn to warn on this situation instead of leaving it for the user to debug.
2018-05-17Rename rustdoc to use underscoresMark Simulacrum-2/+2
2018-05-17Switch to 1.26 bootstrap compilerMark Simulacrum-1512/+434
2018-05-17Rename trans to codegen everywhere.Irina Popa-1548/+1547
2018-05-17Auto merge of #50400 - ehuss:compiletest-revisions, r=alexcrichtonbors-390/+473
compiletest: Run revisions as independent tests. Fixes #47604. - The output of each test is now in its own directory. - "auxiliary" output is now under the respective test directory. - `stage_id` removed from filenames, and instead placed in the stamp file as a hash. This helps keep path lengths down for Windows. In brief, the new layout looks like this: ``` <build_base>/<relative_dir>/<testname>.<revision>.<mode>/ stamp <testname>.err <testname>.out a (binary) auxiliary/lib<auxname>.dylib auxiliary/<auxname>/<auxname>.err auxiliary/<auxname>/<auxname>.out ``` (revision and mode are optional)
2018-05-16Fix running multiple targets.Eric Huss-3/+4
The aux dir, which previously had the `stage_id` embedded in it, was picking up remnants from previous runs.
2018-05-16Fix update-references for tests within subdirectories.Eric Huss-3/+4
2018-05-16compiletest: Run revisions as independent tests.Eric Huss-168/+234
- The output of each test is now in its own directory. - "auxiliary" output is now under the respective test directory. - `stage_id` removed from filenames, and instead placed in the stamp file as a hash. This helps keep path lengths down for Windows. In brief, the new layout looks like this: ``` <build_base>/<relative_dir>/<testname>.<revision>.<mode>/ stamp <testname>.err <testname>.out a (binary) auxiliary/lib<auxname>.dylib auxiliary/<auxname>/<auxname>.err auxiliary/<auxname>/<auxname>.out ``` (revision and mode are optional)
2018-05-16compiletest: rustfmtEric Huss-232/+247
2018-05-17Auto merge of #50665 - alexcrichton:fix-single-item-path-warnings, r=oli-obkbors-47/+287
rustc: Fix `crate` lint for single-item paths This commit fixes recommending the `crate` prefix when migrating to 2018 for paths that look like `use foo;` or `use {bar, baz}` Closes #50660
2018-05-17Auto merge of #50807 - kennytm:rollup, r=kennytmbors-360/+588
Rollup of 17 pull requests Successful merges: - #50170 (Implement From for more types on Cow) - #50638 (Don't unconditionally set CLOEXEC twice on every fd we open on Linux) - #50656 (Fix `fn main() -> impl Trait` for non-`Termination` trait) - #50669 (rustdoc: deprecate `#![doc(passes, plugins, no_default_passes)]`) - #50726 (read2: Use inner function instead of closure) - #50728 (Fix rustdoc panic with `impl Trait` in type parameters) - #50736 (env: remove unwrap in examples in favor of try op) - #50740 (Remove LazyBTreeMap.) - #50752 (Add missing error codes in libsyntax-ext asm) - #50779 (Make mutable_noalias and arg_align_attributes be tracked) - #50787 (Fix run-make wasm tests) - #50788 (Fix an ICE when casting a nonexistent const) - #50789 (Ensure libraries built in stage0 have unique metadata) - #50793 (tidy: Add a check for empty UI test files) - #50797 (fix a typo in signed-integer::from_str_radix()) - #50808 (Stabilize num::NonZeroU*) - #50809 (GitHub: Stop treating Cargo.lock as a generated file.) Failed merges:
2018-05-16Auto merge of #50696 - ehuss:cargo-update, r=alexcrichtonbors-4/+4
Update Cargo Unblocking PRs: - rust-lang/cargo#5535 - Ignore tab in libtest output. (unblocks #50387) - rust-lang/cargo#5537 - Remove -Zno-trans test. (unblocks #50615) - rust-lang/cargo#5540 - Fix tests when CARGO_TARGET_DIR is set. (unblocks self) Regression fixes: - rust-lang/cargo#5503 - cargo rustc broken for tests in project with bins - rust-lang/cargo#5520 - shared proc-macro dependency built incorrectly Changes: - rust-lang/cargo#5527 - Point Source Replacement to the Overriding Dependencies section - rust-lang/cargo#5533 - Detail how to run locally-built nightly cargo - rust-lang/cargo#5522 - Add option to set user-agent - rust-lang/cargo#5519 - NFC: fix a couple of typos, found by codespell. - rust-lang/cargo#5513 - Fix `panic` for binaries built during tests. - rust-lang/cargo#5512 - simplify build_requirements - rust-lang/cargo#5301 - Add --build-plan for 'cargo build' - rust-lang/cargo#5460 - Be more conservative about which files are linked to the output dir. - rust-lang/cargo#5509 - Use the new stable - rust-lang/cargo#5507 - Does not print seconds fraction with minutes - rust-lang/cargo#5498 - Bump to 0.29.0 - rust-lang/cargo#5497 - Mention +nightly in ARCHITECTURE.md The PR fixes #50640.
2018-05-17Rollup merge of #50170 - burtonageo:more_cow_from, r=alexcrichtonkennytm-0/+95
Implement From for more types on Cow This is basically https://github.com/rust-lang/rust/pull/48191, except that it should be implemented in a way that doesn't break third party crates.
2018-05-17Rollup merge of #50808 - SimonSapin:nonzero, r=alexcrichtonkennytm-150/+18
Stabilize num::NonZeroU* Tracking issue: https://github.com/rust-lang/rust/issues/49137
2018-05-17Rollup merge of #50793 - jrlusby:master, r=petrochenkovkennytm-77/+550
tidy: Add a check for empty UI test files Check for empty `.stderr` and `.stdout` files in UI test directories. Empty files could still pass testing for `compile-pass` tests with no output so they can get into the repo accidentally, but they are not necessary and can be removed. This is very much an in progress pull request. I'm having an issue with rustfmt. It wanted to reformat the entire file for almost every file by default. And when I run tidy it just errors out because it catches the empty files that are already in the repo. My next step is goin got be to remove those empty file and see if running tidy again will actually reformat things outside of the context of `cargo fmt` Fixes https://github.com/rust-lang/rust/issues/50785
2018-05-17Rollup merge of #50797 - shamiao:patch-1, r=kennytmkennytm-1/+1
fix a typo in signed-integer::from_str_radix() a minor typo in docs.
2018-05-17Rollup merge of #50789 - cuviper:bootstrap-metadata, r=alexcrichtonkennytm-1/+9
Ensure libraries built in stage0 have unique metadata Issue #50786 shows a case with local rebuild where the libraries built by stage0 had the same suffix as stage0's own, and were accidentally loaded by that stage0 rustc when compiling `librustc_trans`. Now we set `__CARGO_DEFAULT_LIB_METADATA` to "bootstrap" during stage0, rather than the release channel like usual, so the library suffix will always be completely distinct from the stage0 compiler.
2018-05-17Rollup merge of #50788 - varkor:missing-const-cast, r=cramertjkennytm-1/+31
Fix an ICE when casting a nonexistent const Fixes https://github.com/rust-lang/rust/issues/50599.
2018-05-17Rollup merge of #50787 - ehuss:fix-run-make-wasm, r=alexcrichtonkennytm-6/+6
Fix run-make wasm tests Fixes #50711
2018-05-17Rollup merge of #50779 - nox:untracked-options, r=rkruppekennytm-2/+2
Make mutable_noalias and arg_align_attributes be tracked
2018-05-17Rollup merge of #50752 - GuillaumeGomez:more-error-code-in-libsyntax-ext, ↵kennytm-3/+146
r=frewsxcv Add missing error codes in libsyntax-ext asm
2018-05-17Rollup merge of #50740 - nnethercote:rm-LazyBTreeMap, r=cramertjkennytm-123/+12
Remove LazyBTreeMap. It was introduced in #50240 to avoid an allocation when creating a new BTreeMap, which gave some speed-ups. But then #50352 made that the default behaviour for BTreeMap, so LazyBTreeMap is no longer necessary.
2018-05-17Rollup merge of #50736 - udoprog:env-try-op, r=shepmasterkennytm-12/+21
env: remove unwrap in examples in favor of try op
2018-05-17Rollup merge of #50728 - sinkuu:fix_50702, r=GuillaumeGomezkennytm-7/+42
Fix rustdoc panic with `impl Trait` in type parameters Fixes #50702. I'm not sure `impl Trait`s neither in arguments nor in return types are supposed to work, though.
2018-05-17Rollup merge of #50726 - udoprog:read2-inner-fn, r=alexcrichtonkennytm-18/+19
read2: Use inner function instead of closure Very minor thing, but there doesn't appear to be a reason to use a closure here. Generated code is identical in my tests, but I believe it's clearer that nothing from the environment is being used.
2018-05-16Auto merge of #50710 - Zoxc:value_to_constvalue, r=oli-obkbors-56/+88
Fix conversion from Miri Value to ConstValue This fixes an error compiling the `immeta` 0.3.6 crate. https://github.com/rust-lang/rust/issues/50707 may be fixed too. r? @oli-obk
2018-05-16Remove empty file introduced by rebaseJane Lusby-0/+0
2018-05-16Remove empty filesJane Lusby-0/+0
2018-05-16tidy: Add a check for empty UI test filesJane Lusby-23/+40
Check for empty `.stderr` and `.stdout` files in UI test directories. Empty files could still pass testing for `compile-pass` tests with no output so they can get into the repo accidentally, but they are not necessary and can be removed.
2018-05-16Auto merge of #49479 - nox:merge-funcs, r=nagisabors-2/+3
Reenable the MergeFunctions pass The crash that happened in #23566 doesn't happen anymore with the LLVM mergefunc pass enabled and it hugely reduces code size (for example it shaves off 10% of the final Servo executable). This patch reenables it. For those wondering, [here are the docs from LLVM about this pass](http://llvm.org/docs/MergeFunctions.html).
2018-05-16Stabilize num::NonZeroU*Simon Sapin-21/+8
Tracking issue: https://github.com/rust-lang/rust/issues/49137
2018-05-16Remove unstable deprecated num::NonZeroI* typesSimon Sapin-21/+2
2018-05-16Make core::nonzero privateSimon Sapin-110/+10
It is now an implementation detail of ptr::NonNull and num::NonZero*
2018-05-16Rollup merge of #50669 - QuietMisdreavus:deprecated-attrs, r=GuillaumeGomezkennytm-2/+58
rustdoc: deprecate `#![doc(passes, plugins, no_default_passes)]` Closes https://github.com/rust-lang/rust/issues/48164 Blocked on https://github.com/rust-lang/rust/pull/50541 - this includes those changes, which were necessary to create the UI test cc https://github.com/rust-lang/rust/issues/44136 Turns out, there were special attributes to mess with rustdoc passes and plugins! Who knew! Since we deprecated the CLI flags for this functionality, it makes sense that we do the same for the attributes. This PR also introduces a `#![doc(document_private_items)]` attribute, to match the `--document-private-items` flag introduced in https://github.com/rust-lang/rust/pull/44138 when the passes/plugins flags were deprecated. I haven't done a search to see whether these attributes are being used at all, but if the flags were any indication, i don't expect to see any users of these.
2018-05-16Rollup merge of #50656 - leodasvacas:fix-impl-trait-in-main-ret, r=nikomatsakiskennytm-7/+44
Fix `fn main() -> impl Trait` for non-`Termination` trait Fixes #50595. This bug currently affects stable. Why I think we can go for hard error: - It will in stable for at most one cycle and there is no legitimate reason to abuse it, nor any known uses in the wild. - It only affects `bin` crates (which have a `main`), so there is little practical difference between a hard error or a deny lint, both are a one line fix. The fix was to just unshadow a variable. Thanks @nikomatsakis for the mentoring! r? @nikomatsakis
2018-05-16Rollup merge of #50638 - tbu-:pr_open_cloexec_once, r=nagisakennytm-4/+44
Don't unconditionally set CLOEXEC twice on every fd we open on Linux Previously, every `open64` was accompanied by a `ioctl(…, FIOCLEX)`, because some old Linux version would ignore the `O_CLOEXEC` flag we pass to the `open64` function. Now, we check whether the `CLOEXEC` flag is set on the first file we open – if it is, we won't do extra syscalls for every opened file. If it is not set, we fall back to the old behavior of unconditionally calling `ioctl(…, FIOCLEX)` on newly opened files. On old Linuxes, this amounts to one extra syscall per process, namely the `fcntl(…, F_GETFD)` call to check the `CLOEXEC` flag. On new Linuxes, this reduces the number of syscalls per opened file by one, except for the first file, where it does the same number of syscalls as before (`fcntl(…, F_GETFD)` to check the flag instead of `ioctl(…, FIOCLEX)` to set it).
2018-05-16Auto merge of #50045 - est31:label_break_value, r=eddybbors-54/+510
Implement label break value (RFC 2046) Implement label-break-value (#48594).