rust/src/librustc_passes
bors bae4fafdfb Auto merge of #43844 - arielb1:literally-nonstandard, r=eddyb
ast_validation: forbid "nonstandard" literal patterns

Since #42886, macros can create "nonstandard" PatKind::Lit patterns,
that contain path expressions instead of the usual literal expr. These
can cause trouble, including ICEs.

We *could* map these nonstandard patterns to PatKind::Path patterns
during HIR lowering, but that would be much effort for little gain, and
I think is too risky for beta. So let's just forbid them during AST
validation.

Fixes #43250.

beta-nominating because regression.
r? @eddyb
2017-08-14 05:05:06 +00:00
..
ast_validation.rs ast_validation: forbid "nonstandard" literal patterns 2017-08-13 18:35:44 +03:00
Cargo.toml Remove internal liblog 2017-03-23 11:28:00 -07:00
consts.rs rustc: Rearchitect lints to be emitted more eagerly 2017-08-09 09:13:51 -07:00
diagnostics.rs extended information for E0571 break with value in non-loop loop 2017-08-09 01:33:49 -07:00
hir_stats.rs Fix -Z hir-stats always panics (fix #43232). 2017-08-12 19:53:15 +08:00
lib.rs de-orphan extended information 2017-08-06 21:29:05 -07:00
loops.rs Remove need for &format!(...) or &&"" dances in span_label calls 2017-05-08 12:56:15 +02:00
mir_stats.rs add new instructions for asserting when values are valid, and to describe when we can rely on them being locked in memory 2017-07-30 01:11:59 -07:00
no_asm.rs annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor 2016-12-06 11:28:51 +01:00
static_recursion.rs report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00