about summary refs log tree commit diff
path: root/src/librustc/ty
AgeCommit message (Collapse)AuthorLines
2019-05-25Use `write_char` to skip the formatting infrastructureOliver Scherer-1/+1
2019-05-25Print generic args in function calls in MIROliver Scherer-2/+2
2019-05-25Group common printing code during constant pretty printingOliver Scherer-56/+73
2019-05-25Render unresolved anon consts like closuresOliver Scherer-4/+10
2019-05-25`u8` is printed as a number, not a characterOliver Scherer-2/+2
2019-05-25Render const byte slices in MIROliver Scherer-21/+33
2019-05-25Make `ConstValue::Slice` solely take `[u8]` and `str`Oliver Scherer-14/+20
2019-05-25Refactor string constant printing to prep for byte string printingOliver Scherer-3/+3
2019-05-25Don't use `ty::Const` without immediately interningOliver Scherer-68/+18
2019-05-25Print const chars escaped with surrounding quotesOliver Scherer-1/+1
2019-05-25Merge the string printing paths of ty::ConstOliver Scherer-8/+12
2019-05-25There's a tcx in scope, don't use the tls oneOliver Scherer-15/+11
2019-05-25Reuse the pretty printing architecture for printing of constantsOliver Scherer-7/+85
2019-05-25Remove unnecessary secondary recursionOliver Scherer-1/+1
2019-05-24Delay ICE in fold_region so feature gate has chance to stop compilation cleanly.Felix S. Klock II-4/+5
2019-05-23Update dylib_dependency_formats, extern_crate and reachable_non_genericsJohn Kåre Alsaker-2/+2
2019-05-23Update get_lib_features, defined_lib_features, get_lang_items, ↵John Kåre Alsaker-6/+6
defined_lang_items, missing_lang_items, postorder_cnums and maybe_unused_extern_crates
2019-05-23Update upvars and module_exportsJohn Kåre Alsaker-6/+6
2019-05-23Update in_scope_traits_mapJohn Kåre Alsaker-9/+7
2019-05-23Update stability_index, all_crate_nums and features_queryJohn Kåre Alsaker-6/+6
2019-05-23Remove subtle Default impl for ValueJohn Kåre Alsaker-6/+0
2019-05-23Update GenericPredicates queriesJohn Kåre Alsaker-1/+15
2019-05-23Update resolve_lifetimes, named_region_map, is_late_bound_map and ↵John Kåre Alsaker-2/+2
object_lifetime_defaults_map
2019-05-23Update inherent_implsJohn Kåre Alsaker-1/+1
2019-05-23Update associated_item_def_idsJohn Kåre Alsaker-14/+15
2019-05-22Restore the old behavior of the rustdoc keyword check + Fix rebaseVadim Petrochenkov-8/+8
2019-05-22Simplify use of keyword symbolsVadim Petrochenkov-8/+8
2019-05-22Auto merge of #59445 - alexreg:ban-multi-trait-objects-via-aliases, r=oli-obkbors-9/+8
Ban multi-trait objects via trait aliases Obviously, multi-trait objects are not normally supported, so they should not be supported via trait aliases. This has been factored out from the previous PR https://github.com/rust-lang/rust/pull/55994 (see point 1). r? @Centril CC @nikomatsakis ------------------ ### RELNOTES: We now allow `dyn Send + fmt::Debug` with equivalent semantics to `dyn fmt::Debug + Send`. That is, the order of the mentioned traits does not matter wrt. principal/not-principal traits. This is a small change that might deserve a mention in the blog post because it is a language change but most likely not. See https://github.com/rust-lang/rust/blob/ce2ee305f9165c037ecddddb5792588a15ff6c37/src/test/ui/traits/wf-trait-object-reverse-order.rs. // @Centril
2019-05-22Rollup merge of #61003 - nnethercote:rm-InternedString-PartialEq-impls, ↵Mazdak Farrokhzad-7/+10
r=petrochenkov Remove impls for `InternedString`/string equality. `Symbol` received the same treatment in #60630. Also, we can derive `PartialEq` for `InternedString`. r? @petrochenkov
2019-05-21Remove impls for `InternedString`/string equality.Nicholas Nethercote-7/+10
`Symbol` received the same treatment in #60630. Also, we can derive `PartialEq` for `InternedString`.
2019-05-20Rollup merge of #60959 - petrochenkov:sassert, r=estebankMazdak Farrokhzad-3/+3
rustc: Improve type size assertions Now they - Tell what the new size is, when it changes - Do not require passing an identifier ``` ::: src\libsyntax\parse\token.rs:223:1 | 223 | static_assert_size!(Token, 123); | -------------------------------- in this macro invocation | = note: expected type `[(); 123]` found type `[(); 16]` ```
2019-05-20Ban multi-trait objects via trait aliases.Alexander Regueiro-2/+2
2019-05-20Accumulation of various drive-by cosmetic changes.Alexander Regueiro-7/+6
2019-05-20Introduce `InternedString::intern`.Nicholas Nethercote-10/+8
`InternedString::intern(x)` is preferable to `Symbol::intern(x).as_interned_str()`, because the former involves one call to `with_interner` while the latter involves two. The case within InternedString::decode() is particularly hot, and this change reduces the number of `with_interner` calls by up to 13%.
2019-05-20Avoid `as_str()` in `ParamTy::is_self`.Nicholas Nethercote-1/+1
It's a hot function, and a direct `Symbol` comparison is faster. The patch also converts some `&InternedString`s to `InternedString`.
2019-05-19Improve type size assertionsVadim Petrochenkov-3/+3
Now they - Tell what the new size is, when it changes - Do not require passing an identifier
2019-05-16Auto merge of #60693 - saleemjaffer:refactor_fntype_stuff, r=eddybbors-0/+383
refactor some `FnType` stuff to `rustc::ty::layout` Does work in the direction of #56166.
2019-05-14some more refactor of FnType. Things build nowSaleem Jaffer-76/+110
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-11/+13
2019-05-10Fix uninhabitedness of non-exhaustive enums.David Wood-3/+8
This commit ensures that non-exhaustive enums are considered inhabited when used in extern crates.
2019-05-10Fix inhabitedness of non-exhaustive variants.David Wood-3/+8
This commit ensures that non-exhaustive variants are considered inhabited when used in extern crates.
2019-05-10refactor some `FnType` stuff to `rustc::ty::layout`Saleem Jaffer-0/+349
2019-05-07Rollup merge of #60579 - varkor:typaram-index, r=eddybMazdak Farrokhzad-16/+14
Rename `ParamTy::idx` to `ParamTy::index` This makes it consistent with `ParamConst` and `EarlyBoundRegion`.
2019-05-06Implement TypeFoldable for InferConstvarkor-5/+13
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-05-06Shift const vars through bindersvarkor-8/+7
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-05-06Rename `ParamTy::idx` to `ParamTy::index`varkor-16/+14
2019-05-05Auto merge of #60567 - Manishearth:rollup-rjagqnw, r=Manishearthbors-25/+13
Rollup of 5 pull requests Successful merges: - #60131 (Fix broken link in rustc_plugin doc) - #60426 (Stop `-O`/`-C opt-level` and `-g`/`-C debuginfo` conflicting) - #60515 (use span instead of div for since version) - #60530 (rustc: rename all occurences of "freevar" to "upvar".) - #60536 (Correct code points to match their textual description) Failed merges: r? @ghost
2019-05-05Auto merge of #60237 - saleemjaffer:issue-56166-miri-fntype-arg-passing, r=eddybbors-18/+160
Move pointee_info_at from rustc_codegen_llvm to rustc_target. Makes progress towards #56166. This is a continuation of https://github.com/rust-lang/rust/pull/57150. @oli-obk Should I close the older PR?
2019-05-05code review fixesSaleem Jaffer-19/+18
2019-05-05rustc: rename all occurences of "freevar" to "upvar".Eduard-Mihai Burtescu-10/+10