about summary refs log tree commit diff
path: root/src/test/ui-fulldeps
AgeCommit message (Collapse)AuthorLines
2018-02-25Reduce error codes length when too much are thrownGuillaume Gomez-4/+0
2018-02-25Update ui testsGuillaume Gomez-0/+6
2018-02-20Do not run the default panic hook inside procedural macros. Fixes #47812John Kåre Alsaker-2/+3
2018-01-18Rollup merge of #47444 - etaoins:dont-include-bang-in-macro-suggestion, ↵kennytm-3/+3
r=estebank Don't include bang in macro replacement suggestion When we suggest the replacement for a macro we include the "!" in the suggested replacement but the span only contains the name of the macro itself. Using that replacement would cause a duplicate "!" in the resulting code. I originally tried to extend the span to be replaced by 1 byte in rust-lang/rust#47424. However, @zackmdavis pointed out that there can be whitespace between the macro name and the bang. Instead, just remove the bang from the suggested replacement. Fixes #47418 r? @estebank
2018-01-15Don't include bang in macro replacement suggestionRyan Cumming-3/+3
When we suggest the replacement for a macro we include the "!" in the suggested replacement but the span only contains the name of the macro itself. Using that replacement would cause a duplicate "!" in the resulting code. I originally tried to extend the span to be replaced by 1 byte in rust-lang/rust#47424. However, @zackmdavis pointed out that there can be whitespace between the macro name and the bang. Instead, just remove the bang from the suggested replacement. Fixes #47418
2018-01-15Make ui-fulldeps/update-references executableRyan Cumming-0/+0
When a ui-fulldeps comparison fails it suggests running update-references.sh: ``` src/test/ui-fulldeps/update-references.sh 'rust/build/x86_64-apple-darwin/test/ui-fulldeps' 'resolve-error.rs' ``` This does not work as update-references.sh isn't executable. The other update-references.sh in the ui directory is already executable so this looks like an oversight.
2018-01-03Add 'Span.parent()' and 'Span.source()' to proc_macro API.Sergio Benitez-0/+240
2018-01-01Remove a test blocking the update of the `log` crateMalo Jaffré-39/+0
It tested #44953. `log` macros in newer versions are no longer recursive, so these duplicated error messages (about unstable feature uses) previously occurring at each level of recursion are no longer possible, even with the fix by #45540. Furthermore this test breaks when multiple versions of `log` are in the sysroot (`log 0.3.9` depends on`log 0.4.1`)
2017-12-30Remove excessive trailing newlines.kennytm-2/+0
2017-12-14Do the same things for fulldeps testsVadim Petrochenkov-0/+213
2017-11-26mention nightly in -Z external-macro-backtrace noteAlex Burka-1/+1
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-34/+44
2017-11-21Add test for #44953Virgil Palanciuc-0/+39
2017-11-14Rename `Span::default` -> `Span::def_site`.Jeffrey Seyfried-2/+2
2017-10-29Add several lints into `unused` lint groupVadim Petrochenkov-0/+2
Remove a couple of obsolete lints
2017-09-25Point at signature on unused lintEsteban Küber-1/+1
2017-08-28Initial diagnostic API for proc-macros.Sergio Benitez-0/+142
This commit introduces the ability to create and emit `Diagnostic` structures from proc-macros, allowing for proc-macro authors to emit warning, error, note, and help messages just like the compiler does.
2017-08-09rustc: Rearchitect lints to be emitted more eagerlyAlex Crichton-3/+9
In preparation for incremental compilation this commit refactors the lint handling infrastructure in the compiler to be more "eager" and overall more incremental-friendly. Many passes of the compiler can emit lints at various points but before this commit all lints were buffered in a table to be emitted at the very end of compilation. This commit changes these lints to be emitted immediately during compilation using pre-calculated lint level-related data structures. Linting today is split into two phases, one set of "early" lints run on the `syntax::ast` and a "late" set of lints run on the HIR. This commit moves the "early" lints to running as late as possible in compilation, just before HIR lowering. This notably means that we're catching resolve-related lints just before HIR lowering. The early linting remains a pass very similar to how it was before, maintaining context of the current lint level as it walks the tree. Post-HIR, however, linting is structured as a method on the `TyCtxt` which transitively executes a query to calculate lint levels. Each request to lint on a `TyCtxt` will query the entire crate's 'lint level data structure' and then go from there about whether the lint should be emitted or not. The query depends on the entire HIR crate but should be very quick to calculate (just a quick walk of the HIR) and the red-green system should notice that the lint level data structure rarely changes, and should hopefully preserve incrementality. Overall this resulted in a pretty big change to the test suite now that lints are emitted much earlier in compilation (on-demand vs only at the end). This in turn necessitated the addition of many `#![allow(warnings)]` directives throughout the compile-fail test suite and a number of updates to the UI test suite.
2017-07-17Change some helps to suggestionsOliver Schneider-41/+27
2017-07-17Move some tests from compile-fail to uiOliver Schneider-0/+231
2017-06-02Introduce 'run-pass' header to 'ui' tests in compiletest. Fix issue #36516.kennytm-0/+261
The 'run-pass' header cause a 'ui' test to execute the result. It is used to test the lint output, at the same time ensure those lints won't cause the source code to become compile-fail. 12 run-pass/run-pass-fulldeps tests gained the header and are moved to ui/ui-fulldeps. After this move, no run-pass/run-pass-fulldeps tests should rely on the compiler's JSON message. This allows us to stop passing `--error-format json` in run-pass tests, thus fixing #36516.
2017-03-04Separate "ui-fulldeps" tests from "ui" testsVadim Petrochenkov-0/+60