summary refs log tree commit diff
path: root/src/test/ui/codemap_tests
AgeCommit message (Collapse)AuthorLines
2017-05-27Add invalid unary operator usage error codeGuillaume Gomez-1/+1
2017-05-27Add new error codes and update testsGuillaume Gomez-1/+1
2017-05-26Auto merge of #42058 - froydnj:thiscall-support, r=nikomatsakisbors-1/+1
add thiscall calling convention support This support is needed for bindgen to work well on 32-bit Windows, and also enables people to begin experimenting with C++ FFI support on that platform. Fixes #42044.
2017-05-24add thiscall calling convention supportNathan Froyd-1/+1
This support is needed for bindgen to work well on 32-bit Windows, and also enables people to begin experimenting with C++ FFI support on that platform. Fixes #42044.
2017-05-24Change error count messagesMichael Kohl-11/+11
See #33525 for details.
2017-04-04Move 'coherence-overlapping-inherent-impl-trait' test to uitopecongiro-0/+26
2017-04-04Move 'overlapping_inherent_impls' test to uitopecongiro-0/+75
2017-03-27borrowck: consolidate `mut` suggestionsAriel Ben-Yehuda-1/+1
This converts all of borrowck's `mut` suggestions to a new `mc::ImmutabilityBlame` API instead of the current mix of various hacks. Fixes #35937. Fixes #40823.
2017-03-10fix #40294 obligation cause.body_id is not always a NodeExprCengiz Can-50/+0
2017-03-02Add support for x86-interrupt calling conventionPhilipp Oppermann-1/+1
Tracking issue: https://github.com/rust-lang/rust/issues/40180 This calling convention can be used for definining interrupt handlers on 32-bit and 64-bit x86 targets. The compiler then uses `iret` instead of `ret` for returning and ensures that all registers are restored to their original values. Usage: ``` extern "x86-interrupt" fn handler(stack_frame: &ExceptionStackFrame) {…} ``` for interrupts and exceptions without error code and ``` extern "x86-interrupt" fn page_fault_handler(stack_frame: &ExceptionStackFrame, error_code: u64) {…} ``` for exceptions that push an error code (e.g., page faults or general protection faults). The programmer must ensure that the correct version is used for each interrupt. For more details see the [LLVM PR][1] and the corresponding [proposal][2]. [1]: https://reviews.llvm.org/D15567 [2]: http://lists.llvm.org/pipermail/cfe-dev/2015-September/045171.html
2017-02-04Add a new ui test and update existing onesCengiz Can-14/+38
2017-02-04Remove extra newlines from expectation filesCengiz Can-1/+0
2017-02-04Improve error message for uninferrable types #38812Cengiz Can-2/+5
2017-01-18calling convention for MSP430 interruptsJorge Aparicio-1/+1
This calling convention is used to define interrup handlers on MSP430 microcontrollers. Usage looks like this: ``` rust #[no_mangle] #[link_section = "__interrupt_vector_10"] pub static TIM0_VECTOR: unsafe extern "msp430-interrupt" fn() = tim0; unsafe extern "msp430-interrupt" fn tim0() { P1OUT.write(0x00); } ``` which generates the following assembly: ``` asm Disassembly of section __interrupt_vector_10: 0000fff2 <TIM0_VECTOR>: fff2: 10 c0 interrupt service routine at 0xc010 Disassembly of section .text: 0000c010 <_ZN3msp4tim017h3193b957fd6a4fd4E>: c010: c2 43 21 00 mov.b #0, &0x0021 ;r3 As==00 c014: 00 13 reti ... ```
2017-01-12resolve: Do not use "resolve"/"resolution" in error messagesVadim Petrochenkov-2/+2
2016-12-30Further and hopefully final Windows fixesSimonas Kazlauskas-1/+1
2016-12-26fix ui testJorge Aparicio-1/+1
2016-12-26More systematic error reporting in path resolutionVadim Petrochenkov-6/+4
2016-12-03Update error expectationsKeith Yeung-2/+2
2016-11-08Point to type argument span when used as traitEsteban Küber-1/+1
Given the following code: ```rust struct Foo<T: Clone>(T); use std::ops::Add; impl<T: Clone, Add> Add for Foo<T> { type Output = usize; fn add(self, rhs: Self) -> Self::Output { unimplemented!(); } } ``` present the following output: ```nocode error[E0404]: `Add` is not a trait --> file3.rs:5:21 | 5 | impl<T: Clone, Add> Add for Okok<T> { | --- ^^^ expected trait, found type parameter | | | type parameter defined here ```
2016-09-26Update E0425, E0446, E0449Jonathan Turner-1/+1
2016-09-15Fix wording for out-of-crate macro errorJonathan Turner-5/+5
2016-08-30Guard against platforms on which the sysv64 calling convention is not valid ↵CensoredUsername-1/+1
in non-codegen tests. Remove false positive in a test that relied on the exact formatting of an error string and rewrite the sysv64 register allocation test at it was triggering undefined behaviour
2016-08-17Replace local backtrace with def-use, repair std macro spansJonathan Turner-0/+88
2016-08-16RUST_NEW_ERROR_FORMAT is no moreSeo Sanghyeon-30/+16
2016-08-05Update E0404 to new format.Ryan Scott-1/+1
2016-08-01Fix fallout in `ui/codemap_tests`.Jeffrey Seyfried-5/+2
2016-07-14Add unicode test to ui testsJonathan Turner-0/+22
2016-07-14Add fix for tabs. Move error unit tests->ui testsJonathan Turner-0/+391