about summary refs log tree commit diff
path: root/src/test/debuginfo
AgeCommit message (Collapse)AuthorLines
2015-04-21Remove references to `old_{path,io}`Tamir Duberstein-2/+0
2015-04-14Test fixes and rebase conflicts, round 2Alex Crichton-2/+1
2015-04-14bench: Fix fallout in benchmarksAlex Crichton-25/+25
2015-04-12Add a name for tuple fields in debuginfo so that they can be accessed in ↵Michael Woerister-121/+123
debuggers.
2015-04-09Remove `ignore-tidy-linelength` from tests that no longer need itLuke Gallagher-1/+0
2015-04-04fixing some tests and temporarily disabling others to get Bitrig build ↵Dave Huseby-0/+1
working 100%
2015-04-01rollup merge of #23860: nikomatsakis/copy-requires-cloneAlex Crichton-11/+11
Conflicts: src/test/compile-fail/coherence-impls-copy.rs
2015-04-02Rollup merge of #23066 - michaelwoerister:unreachable-if, r=pnkfelixManish Goregaokar-1/+84
This PR solves #21559 by making sure that unreachable if-expressions are not further translated. Could someone who knows their way around `trans` take a look at the changes in `controlflow.rs`? I'm not sure if any other code relies on any side-effects of translating unreachable things. cc @nikomatsakis @nrc @eddyb
2015-04-01Fallout in testsNiko Matsakis-11/+11
2015-03-28Fix some typosVadim Petrochenkov-6/+6
2015-03-27rollup merge of #23786: alexcrichton/less-quotesAlex Crichton-129/+129
Conflicts: src/test/auxiliary/static-function-pointer-aux.rs src/test/auxiliary/trait_default_method_xc_aux.rs src/test/run-pass/issue-4545.rs
2015-03-27Fix fallout of removing quotes in crate namesAlex Crichton-129/+129
2015-03-27rollup merge of #23741: alexcrichton/remove-int-uintAlex Crichton-127/+128
Conflicts: src/librustc/middle/ty.rs src/librustc_trans/trans/adt.rs src/librustc_typeck/check/mod.rs src/libserialize/json.rs src/test/run-pass/spawn-fn.rs
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-127/+128
Now that support has been removed, all lingering use cases are renamed.
2015-03-25Auto merge of #23695 - sae-bom:mac-android-debuginfo, r=alexcrichtonbors-1/+3
1. when mac-android cross compile and make-check , make it use gdb instead of lldb so as to it passes debuginfo tests. 2. ignore some tests on aarch64
2015-03-25Ignore some tests on aarch64Sae-bom Kim-1/+3
2015-03-25Add trivial cast lints.Nick Cameron-6/+6
This permits all coercions to be performed in casts, but adds lints to warn in those cases. Part of this patch moves cast checking to a later stage of type checking. We acquire obligations to check casts as part of type checking where we previously checked them. Once we have type checked a function or module, then we check any cast obligations which have been acquired. That means we have more type information available to check casts (this was crucial to making coercions work properly in place of some casts), but it means that casts cannot feed input into type inference. [breaking change] * Adds two new lints for trivial casts and trivial numeric casts, these are warn by default, but can cause errors if you build with warnings as errors. Previously, trivial numeric casts and casts to trait objects were allowed. * The unused casts lint has gone. * Interactions between casting and type inference have changed in subtle ways. Two ways this might manifest are: - You may need to 'direct' casts more with extra type information, for example, in some cases where `foo as _ as T` succeeded, you may now need to specify the type for `_` - Casts do not influence inference of integer types. E.g., the following used to type check: ``` let x = 42; let y = &x as *const u32; ``` Because the cast would inform inference that `x` must have type `u32`. This no longer applies and the compiler will fallback to `i32` for `x` and thus there will be a type error in the cast. The solution is to add more type information: ``` let x: u32 = 42; let y = &x as *const u32; ```
2015-03-23Test fixes and rebase conflicts, round 3Alex Crichton-0/+1
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-0/+9
2015-03-17Re-bork whitespace for text file (fixup #23385)Manish Goregaokar-3/+3
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-18/+3
2015-03-13Rollup merge of #23310 - michaelwoerister:gdb-std-pp, r=alexcrichtonManish Goregaokar-0/+60
```rust Rust: let slice: &[i32] = &[0, 1, 2, 3]; GDB: $1 = &[i32](len: 4) = {0, 1, 2, 3} Rust: let vec = vec![4, 5, 6, 7]; GDB: $2 = Vec<u64>(len: 4, cap: 4) = {4, 5, 6, 7} Rust: let str_slice = \"IAMA string slice!\"; GDB: $3 = \"IAMA string slice!\" Rust: let string = \"IAMA string!\".to_string(); GDB: $4 = \"IAMA string!\" ``` Neat!
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