rust/compiler/rustc_middle/src
Mara Bos 43d13e2d58
Rollup merge of #79158 - lcnr:lazy-norm-coerce, r=oli-obk
type is too big -> values of the type are too big

strictly speaking, `[u8; usize::MAX]` or even `[[[u128; usize::MAX]; usize::MAX]; usize::MAX]` are absolutely fine types as long as you don't try to deal with any values of it.

This error message seems to cause some confusion imo, for example in https://github.com/rust-lang/rust/pull/79135#issuecomment-729361380 so I would prefer us to be more precise here.

See the added test case which uses one of these types without causing an error.

r? ``@oli-obk``
2020-11-18 15:46:40 +01:00
..
dep_graph
hir Fix broken handling of MacroDef in Map::attrs 2020-11-17 15:13:25 -05:00
ich Rollup merge of #79036 - cjgillot:steal, r=oli-obk 2020-11-15 13:39:59 +01:00
infer words 2020-11-16 22:42:09 +01:00
middle stability: More precise location for deprecation lint on macros 2020-11-12 22:53:42 +03:00
mir Rollup merge of #79079 - camelid:mir-visit-docs, r=matthewjasper 2020-11-18 15:46:29 +01:00
query compiler: fold by value 2020-11-16 22:34:57 +01:00
traits words 2020-11-16 22:42:09 +01:00
ty Rollup merge of #79158 - lcnr:lazy-norm-coerce, r=oli-obk 2020-11-18 15:46:40 +01:00
util
arena.rs Move Steal to rustc_data_structures. 2020-11-14 01:30:56 +01:00
lib.rs Introduce TypeVisitor::BreakTy 2020-11-14 20:25:27 +01:00
lint.rs Auto merge of #76931 - oli-obk:const_prop_inline_lint_madness, r=wesleywiser 2020-11-03 16:32:34 +00:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs