rust/compiler
Mara Bos a616f8267e Add lint for panic!(123) which is not accepted in Rust 2021.
This extends the `panic_fmt` lint to warn for all cases where the first
argument cannot be interpreted as a format string, as will happen in
Rust 2021.

It suggests to add `"{}", ` to format the message as a string. In the
case of `std::panic!()`, it also suggests the recently stabilized
`std::panic::panic_any()` function as an alternative.

It renames the lint to `non_fmt_panic` to match the lint naming
guidelines.
2021-02-03 22:42:53 +01:00
..
rustc
rustc_apfloat
rustc_arena Rollup merge of #80470 - SimonSapin:array-intoiter-type, r=m-ou-se 2021-01-31 01:47:25 +01:00
rustc_ast Assert the size of the refactored enums 2021-02-01 09:23:40 +01:00
rustc_ast_lowering Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_ast_passes Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_ast_pretty Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
rustc_attr Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_builtin_macros Auto merge of #81294 - pnkfelix:issue-81211-use-ufcs-in-derive-debug, r=oli-obk 2021-02-03 15:12:19 +00:00
rustc_codegen_cranelift Add a new ABI to support cmse_nonsecure_call 2021-02-02 13:04:31 +00:00
rustc_codegen_llvm Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_codegen_ssa Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_data_structures Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_driver Indicate both start and end of pass RSS in time-passes output 2021-01-29 12:46:29 -08:00
rustc_error_codes Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_errors Reduce tab formatting assertions to debug only 2021-02-03 17:17:15 +00:00
rustc_expand Improve handling of spans around macro result parse errors 2021-01-31 15:24:34 -05:00
rustc_feature Add a new ABI to support cmse_nonsecure_call 2021-02-02 13:04:31 +00:00
rustc_fs_util Optimize away a fs::metadata call. 2021-01-06 08:33:15 -08:00
rustc_graphviz remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00
rustc_hir Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_hir_pretty Add loop head span to hir 2021-01-21 21:41:46 -08:00
rustc_incremental Auto merge of #80957 - tgnottingham:direct_serialize_depgraph, r=michaelwoerister 2021-01-19 19:36:41 +00:00
rustc_index Switch compiler/ to intra-doc links 2020-12-18 15:22:51 -05:00
rustc_infer Rollup merge of #81655 - matsujika:suggest-accessing-field-rewording, r=estebank 2021-02-02 16:01:48 -05:00
rustc_interface Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
rustc_lexer Return EOF_CHAR constant instead of magic char. 2021-01-07 13:20:04 +01:00
rustc_lint Add lint for panic!(123) which is not accepted in Rust 2021. 2021-02-03 22:42:53 +01:00
rustc_lint_defs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
rustc_llvm Add a new ABI to support cmse_nonsecure_call 2021-02-02 13:04:31 +00:00
rustc_macros Indent the code correctly again after removing the query categories. 2021-01-31 21:40:03 +01:00
rustc_metadata Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00
rustc_middle Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_mir Rollup merge of #81463 - matsujika:nll-ensure-c-case, r=varkor 2021-02-01 14:29:35 +01:00
rustc_mir_build Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_parse Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_parse_format rustc_parse_format: Fix character indices in find_skips 2021-01-17 17:40:58 +03:00
rustc_passes Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_plugin_impl Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
rustc_privacy more things are const evaluatable *sparkles* 2021-02-01 20:05:50 +00:00
rustc_query_system Auto merge of #80692 - Aaron1011:feature/query-result-debug, r=estebank 2021-01-26 05:47:23 +00:00
rustc_resolve Rollup merge of #81636 - LingMan:slice_not_vec, r=petrochenkov 2021-02-02 16:01:45 -05:00
rustc_save_analysis Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
rustc_serialize stabilize int_bits_const 2021-01-31 21:50:47 +10:00
rustc_session Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_span Auto merge of #81294 - pnkfelix:issue-81211-use-ufcs-in-derive-debug, r=oli-obk 2021-02-03 15:12:19 +00:00
rustc_symbol_mangling Rollup merge of #80959 - jhpratt:unsigned_abs-stabilization, r=m-ou-se 2021-01-30 13:36:44 +09:00
rustc_target Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_trait_selection Rollup merge of #81544 - JulianKnodt:sat_where, r=lcnr 2021-02-02 16:01:39 -05:00
rustc_traits Update Chalk 2021-02-02 12:37:22 -05:00
rustc_ty_utils Infallible version of def_span. 2021-01-23 13:35:22 +01:00
rustc_type_ir Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
rustc_typeck Rollup merge of #81716 - m-ou-se:fix-ice, r=eddyb 2021-02-03 18:51:18 +01:00