about summary refs log tree commit diff
path: root/src/test/debuginfo
AgeCommit message (Collapse)AuthorLines
2015-03-12debuginfo: Add GDB pretty printers for slices, Vec<>, and String.Michael Woerister-0/+60
2015-03-12debuginfo: Make LLDB pretty printer correctly handle zero-sized fields.Michael Woerister-0/+57
2015-03-06Rollup merge of #23074 - michaelwoerister:constants-debug-locs, r=alexcrichtonManish Goregaokar-0/+135
With this PR in-place constants are handled correctly with respect to debug location assignment. The PR also adds an (unrelated) test case for debug locations in `extern \"C\"` functions. Fixes #22432
2015-03-05debuginfo: Add test case for `extern "C"` functions.Michael Woerister-0/+68
2015-03-05debuginfo: Add `debuginfo::with_source_location_override()` function...Michael Woerister-0/+67
... and use it to fix a debug-location issue with constants.
2015-03-05trans: Add early-out when translating unreachable controlflow expressions.Michael Woerister-1/+84
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-21/+21
2015-03-04Encode codemap and span information in crate metadata.Michael Woerister-0/+74
This allows to create proper debuginfo line information for items inlined from other crates (e.g. instantiations of generics). Only the codemap's 'metadata' is stored in a crate's metadata. That is, just filename, line-beginnings, etc. but not the actual source code itself. We are thus missing the opportunity of making Rust the first "open-source-only" programming language out there. Pity.
2015-03-03Switched to Box::new in many places.Felix S. Klock II-1/+1
Many of the modifications putting in `Box::new` calls also include a pointer to Issue 22405, which tracks going back to `box <expr>` if possible in the future. (Still tried to use `Box<_>` where it sufficed; thus some tests still have `box_syntax` enabled, as they use a mix of `box` and `Box::new`.) Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
2015-03-03Add `: Box<_>` or `::Box<_>` type annotations to various places.Felix S. Klock II-17/+17
This is the kind of change that one is expected to need to make to accommodate overloaded-`box`. ---- Note that this is not *all* of the changes necessary to accommodate Issue 22181. It is merely the subset of those cases where there was already a let-binding in place that made it easy to add the necesasry type ascription. (For unnamed intermediate `Box` values, one must go down a different route; `Box::new` is the option that maximizes portability, but has potential inefficiency depending on whether the call is inlined.) ---- There is one place worth note, `run-pass/coerce-match.rs`, where I used an ugly form of `Box<_>` type ascription where I would have preferred to use `Box::new` to accommodate overloaded-`box`. I deliberately did not use `Box::new` here, because that is already done in coerce-match-calls.rs. ---- Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
2015-02-18rollup merge of #22286: nikomatsakis/variance-4bAlex Crichton-7/+10
Conflicts: src/librustc/middle/infer/combine.rs src/librustc_typeck/check/wf.rs
2015-02-18Fallout: tests. As tests frequently elide things, lots of changesNiko Matsakis-7/+10
here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
2015-02-18Fix remaining bench/debuginfo tests (and a few stragglers)Niko Matsakis-22/+22
2015-02-17Auto merge of #21774 - ejjeong:enable-test-for-android, r=alexcrichtonbors-90/+1
- Now "make check-stage2-T-aarch64-linux-android-H-x86_64-unknown-linux-gnu" works (#21773) - Fix & enable debuginfo tests for android (#10381) - Fix & enable more tests for android (both for arm/aarch64) - Enable many already-pass tests on android (both for arm/aarch64)
2015-02-17Rollup merge of #22360 - wg:master, r=alexcrichtonManish Goregaokar-0/+2
2015-02-16tests: debuginfo: use `static mut` to avoid constant folding globals.Eduard Burtescu-31/+32
2015-02-15Fix tests that fail on FreeBSDWill-0/+2
2015-02-11opt into box_patterns in debuginfo tests.Felix S. Klock II-0/+3
2015-02-10Enable test/debuginfo on androidEunji Jeong-90/+1
2015-02-06debuginfo: Fix problem with debug locations of constants in match patterns.Michael Woerister-0/+92
2015-02-05cleanup: replace `as[_mut]_slice()` calls with deref coercionsJorge Aparicio-2/+2
2015-02-04remove all kind annotations from closuresJorge Aparicio-13/+13
2015-02-03Rename std::path to std::old_pathAaron Turon-1/+1
As part of [RFC 474](https://github.com/rust-lang/rfcs/pull/474), this commit renames `std::path` to `std::old_path`, leaving the existing path API in place to ease migration to the new one. Updating should be as simple as adjusting imports, and the prelude still maps to the old path APIs for now. [breaking-change]
2015-02-02`for x in xs.into_iter()` -> `for x in xs`Jorge Aparicio-1/+1
Also `for x in option.into_iter()` -> `if let Some(x) = option`
2015-02-02`for x in xs.iter()` -> `for x in &xs`Jorge Aparicio-8/+8
2015-01-30Merge remote-tracking branch 'origin/master' into rollupAlex Crichton-4/+4
2015-01-30Remove all `i` suffixesTobias Bucher-79/+79
2015-01-29`for x in range(a, b)` -> `for x in a..b`Jorge Aparicio-3/+3
sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
2015-01-29`range(a, b).foo()` -> `(a..b).foo()`Jorge Aparicio-1/+1
sed -i 's/ range(\([^,]*\), *\([^()]*\))\./ (\1\.\.\2)\./g' **/*.rs
2015-01-28Merge remote-tracking branch 'origin/master' into rollupManish Goregaokar-1/+0
Conflicts: src/libcollections/slice.rs src/libcore/nonzero.rs src/libcore/ops.rs
2015-01-27Merge remote-tracking branch 'rust-lang/master'Brian Anderson-12/+12
Conflicts: src/libcore/cell.rs src/librustc_driver/test.rs src/libstd/old_io/net/tcp.rs src/libstd/old_io/process.rs
2015-01-27Rollup merge of #21602 - japaric:derive-copy, r=alexcrichtonManish Goregaokar-16/+8
2015-01-26std: Rename Writer::write to Writer::write_allAlex Crichton-1/+1
In preparation for upcoming changes to the `Writer` trait (soon to be called `Write`) this commit renames the current `write` method to `write_all` to match the semantics of the upcoming `write_all` method. The `write` method will be repurposed to return a `usize` indicating how much data was written which differs from the current `write` semantics. In order to head off as much unintended breakage as possible, the method is being deprecated now in favor of a new name. [breaking-change]
2015-01-26Fallout of io => old_ioAlex Crichton-11/+11
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-0/+34
Conflicts: src/libcore/cmp.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/result.rs src/libcore/str/mod.rs src/librustc/lint/builtin.rs src/librustc/lint/context.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/poison.rs
2015-01-25cleanup: s/impl Copy/#[derive(Copy)]/gJorge Aparicio-16/+8
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-3/+156
Conflicts: mk/tests.mk src/liballoc/arc.rs src/liballoc/boxed.rs src/liballoc/rc.rs src/libcollections/bit.rs src/libcollections/btree/map.rs src/libcollections/btree/set.rs src/libcollections/dlist.rs src/libcollections/ring_buf.rs src/libcollections/slice.rs src/libcollections/str.rs src/libcollections/string.rs src/libcollections/vec.rs src/libcollections/vec_map.rs src/libcore/any.rs src/libcore/array.rs src/libcore/borrow.rs src/libcore/error.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/ops.rs src/libcore/result.rs src/libcore/slice.rs src/libcore/str/mod.rs src/libregex/lib.rs src/libregex/re.rs src/librustc/lint/builtin.rs src/libstd/collections/hash/map.rs src/libstd/collections/hash/set.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/mutex.rs src/libstd/sync/poison.rs src/libstd/sync/rwlock.rs src/libsyntax/feature_gate.rs src/libsyntax/test.rs
2015-01-24debuginfo: Extend option-like-enum test case to contain nested discriminants.Michael Woerister-0/+34
2015-01-22Rollup merge of #21471 - michaelwoerister:associated-types, r=alexcrichtonSteve Klabnik-0/+152
This should fix issue #20797 (but I don't want to close it automatically). As the actual fix is very small this would be a perfect candidate for a rollup.
2015-01-21Make diagnostic ordering deterministicAlex Crichton-0/+1
2015-01-21Tie stability attributes to feature gatesBrian Anderson-1/+0
2015-01-21debuginfo: Fix issue with associated types and struct fieldsMichael Woerister-0/+152
2015-01-20rustc: Remove deprecated flagsAlex Crichton-3/+3
This commit removes a number of deprecated flags from the compiler: * opt-level => -C opt-level * debuginfo => -C debuginfo * print-crate-name => --print crate-name * print-file-name => --print file-names * no-trans => -Z no-trans * no-analysis => -Z no-analysis * parse-only => -Z parse-only * dep-info => --emit dep-info This commit also moves the --pretty flag behind `-Z unstable-options` as the pretty printer will likely not be stable for 1.0 cc #19051
2015-01-15rollup merge of #21197: michaelwoerister/linestablesonly-forloopAlex Crichton-1/+5
Fixes #21067.
2015-01-15debuginfo: Fix ICE when compiling for-loops with lines-tables-only.Michael Woerister-1/+5
2015-01-14Revert "rustc_trans: Fix type projection debuginfo" -- it potentially papers ↵Niko Matsakis-28/+0
over a lack of normalization that should have taken place. This reverts commit f7745a9be3eb2d9438f08b383156f0a33cbb0cdf.
2015-01-11rustc_trans: Fix type projection debuginfoErick Tryzelaar-0/+28
Closes #20797
2015-01-08Improvements to feature stagingBrian Anderson-1/+1
This gets rid of the 'experimental' level, removes the non-staged_api case (i.e. stability levels for out-of-tree crates), and lets the staged_api attributes use 'unstable' and 'deprecated' lints. This makes the transition period to the full feature staging design a bit nicer.
2015-01-07Test fixes and rebase conflictsAlex Crichton-2/+24
2015-01-07remove some `slicing_syntax` feature gatesJorge Aparicio-1/+0