rust/src/test/debuginfo
Patrick Walton caa564bea3 librustc: Stop desugaring for expressions and translate them directly.
This makes edge cases in which the `Iterator` trait was not in scope
and/or `Option` or its variants were not in scope work properly.

This breaks code that looks like:

    struct MyStruct { ... }

    impl MyStruct {
        fn next(&mut self) -> Option<int> { ... }
    }

    for x in MyStruct { ... } { ... }

Change ad-hoc `next` methods like the above to implementations of the
`Iterator` trait. For example:

    impl Iterator<int> for MyStruct {
        fn next(&mut self) -> Option<int> { ... }
    }

Closes #15392.

[breaking-change]
2014-07-24 18:58:12 -07:00
..
basic-types-globals-metadata.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
basic-types-globals.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
basic-types-metadata.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
basic-types-mut-globals.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
basic-types.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
borrowed-basic.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
borrowed-c-style-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
borrowed-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
borrowed-managed-basic.rs librustc: Remove cross-borrowing of Box<T> to &T from the language, 2014-07-17 14:05:36 -07:00
borrowed-struct.rs librustc: Remove cross-borrowing of Box<T> to &T from the language, 2014-07-17 14:05:36 -07:00
borrowed-tuple.rs librustc: Remove cross-borrowing of Box<T> to &T from the language, 2014-07-17 14:05:36 -07:00
borrowed-unique-basic.rs librustc: Remove cross-borrowing of Box<T> to &T from the language, 2014-07-17 14:05:36 -07:00
box.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
boxed-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
by-value-non-immediate-argument.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
by-value-self-argument-in-trait-impl.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
c-style-enum-in-composite.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
c-style-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
closure-in-generic-function.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
cross-crate-type-uniquing.rs std: Rename the ToStr trait to ToString, and to_str to to_string. 2014-07-08 13:01:43 -07:00
destructured-fn-argument.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
destructured-local.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
evec-in-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
function-arg-initialization.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
function-arguments.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
function-prologue-stepping-no-split-stack.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
function-prologue-stepping-regular.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
generic-function.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
generic-functions-nested.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
generic-method-on-generic-struct.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
generic-static-method-on-struct-and-enum.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
generic-struct-style-enum.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
generic-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
generic-trait-generic-static-default-method.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
generic-tuple-style-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
include_string.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
issue7712.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
issue11600.rs core: rename strbuf::StrBuf to string::String 2014-05-24 21:48:10 -07:00
issue12886.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
issue13213.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
issue14411.rs debuginfo: Add test case for issue 14411. 2014-06-18 17:02:02 -07:00
lexical-scope-in-for-loop.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
lexical-scope-in-if.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
lexical-scope-in-match.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
lexical-scope-in-parameterless-closure.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
lexical-scope-in-stack-closure.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
lexical-scope-in-unconditional-loop.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
lexical-scope-in-unique-closure.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
lexical-scope-in-while.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
lexical-scope-with-macro.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
lexical-scopes-in-block-expression.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
limited-debuginfo.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
managed-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
managed-pointer-within-unique-vec.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
managed-pointer-within-unique.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
method-on-enum.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
method-on-generic-struct.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
method-on-struct.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
method-on-trait.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
method-on-tuple-struct.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
multiple-functions-equal-var-names.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
multiple-functions.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
name-shadowing-and-scope-nesting.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
nil-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
option-like-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
packed-struct-with-destructor.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
packed-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
recursive-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
recursive-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
self-in-default-method.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
self-in-generic-default-method.rs librustc: Allow the new UFCS explicit self in trait definitions, and 2014-07-16 23:16:12 -07:00
shadowed-argument.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
shadowed-variable.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
simd.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
simple-lexical-scope.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
simple-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
simple-tuple.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
static-method-on-struct-and-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
struct-in-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
struct-in-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
struct-style-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
struct-with-destructor.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
text-to-include-1.txt debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
text-to-include-2.txt debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
text-to-include-3.txt debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
trait-generic-static-default-method.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
trait-pointers.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
tuple-in-struct.rs debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldb 2014-05-07 19:58:07 +02:00
tuple-in-tuple.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
tuple-struct.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
tuple-style-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
type-names.rs debuginfo: Make names of types in debuginfo reliable and omit source locations from debug info type descriptions. 2014-07-02 13:32:57 +02:00
unique-enum.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
var-captured-in-nested-closure.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
var-captured-in-sendable-closure.rs librustc: Remove cross-borrowing of Box<T> to &T from the language, 2014-07-17 14:05:36 -07:00
var-captured-in-stack-closure.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
vec-slices.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00
vec.rs debuginfo: Add LLDB autotests to debuginfo test suite. 2014-07-16 09:46:31 +02:00