about summary refs log tree commit diff
path: root/src/test/compile-fail/not-enough-arguments.rs
AgeCommit message (Collapse)AuthorLines
2017-12-14Move compile-fail tests with NOTE/HELP annotations to UIVadim Petrochenkov-24/+0
2016-12-01Point arg num mismatch errors back to their definitionJonathan Turner-2/+2
2016-09-04E0060 and E0061 improvementGuillaume Gomez-2/+2
2016-08-04Tidying up some of the line spacing / code formatting for NOTE/ERROR ↵William Lee-1/+1
annotation to match other files.
2016-08-04Fixes for issues #35215 and #35216William Lee-0/+1
2016-06-15Show types of all args when missing argsEsteban Küber-0/+1
When there're missing arguments in a function call, present a list of all the expected types: ```rust fn main() { t(""); } fn t(a: &str, x: String) {} ``` ```bash % rustc file.rs file.rs:3:5: 2:8 error: this function takes 2 parameters but 0 parameters were supplied [E0061] file.rs:3 t(); ^~~ file.rs:3:5: 2:8 help: run `rustc --explain E0061` to see a detailed explanation file.rs:3:5: 2:8 note: the following parameter types were expected: &str, std::string::String error: aborting due to previous error ``` Fixes #33649
2015-01-08Update compile fail tests to use isize.Huon Wilson-1/+1
2014-10-29Rename fail! to panic!Steve Klabnik-1/+1
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-1/+1
Who doesn't like a massive renaming?
2013-09-30cfail: Remove usage of fmt!Alex Crichton-1/+1
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-06-30change the test suite `//! kind` syntax to `//~ kind` in order to avoid aGareth Daniel Smith-1/+1
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-03-28use fresh vars in place of _|_ when incorrect # of params suppliedNiko Matsakis-0/+12