about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-07-15unsafety_check_result_for_const_argBastian Kauschke-4/+4
2020-07-15WithOptConstParam::dummy -> WithOptConstParam::unknownBastian Kauschke-20/+21
2020-07-15ty_def_id -> def_id_for_type_ofBastian Kauschke-5/+5
2020-07-15improve namingBastian Kauschke-160/+184
2020-07-15cleanupBastian Kauschke-8/+48
2020-07-15update promoted_mirBastian Kauschke-16/+20
2020-07-15update const arg queriesBastian Kauschke-138/+154
2020-07-15update testBastian Kauschke-12/+4
2020-07-15only call `typeck_tables_of_const_arg` for const argsBastian Kauschke-4/+15
2020-07-15mir opt cross compileBastian Kauschke-12/+12
2020-07-15mir_built is a lieBastian Kauschke-155/+154
2020-07-15decode stuffBastian Kauschke-3/+3
2020-07-15ui test diffBastian Kauschke-2/+22
2020-07-15mir opt diffBastian Kauschke-36/+36
2020-07-15const generics work!Bastian Kauschke-141/+301
2020-07-15continue mir pipelineBastian Kauschke-31/+78
2020-07-15optimized_mirBastian Kauschke-11/+43
2020-07-15InstanceDef::ItemBastian Kauschke-58/+80
2020-07-15typeck all the tablesBastian Kauschke-2/+38
2020-07-15const_eval_resolveBastian Kauschke-28/+96
2020-07-15ConstKind::UnevaluatedBastian Kauschke-37/+53
2020-07-15begin using `WithOptParam`Bastian Kauschke-10/+67
2020-07-15introduce the query `opt_const_param_of`Bastian Kauschke-125/+169
2020-07-15add const generic testsBastian Kauschke-0/+333
2020-07-15Auto merge of #74175 - nnethercote:more-static-symbols, r=oli-obkbors-745/+991
More static symbols These commits add some more static symbols and convert lots of places to use them. r? @oli-obk
2020-07-15Remove lots of `Symbol::as_str()` calls.Nicholas Nethercote-96/+121
In various ways, such as changing functions to take a `Symbol` instead of a `&str`.
2020-07-15Add and use more static symbols.Nicholas Nethercote-579/+794
Note that the output of `unpretty-debug.stdout` has changed. In that test the hash values are normalized from a symbol numbers to small numbers like "0#0" and "0#1". The increase in the number of static symbols must have caused the original numbers to contain more digits, resulting in different pretty-printing prior to normalization.
2020-07-15Fix the ordering of the static symbols.Nicholas Nethercote-64/+66
2020-07-15Rename `sym::nontrapping_fptoint`.Nicholas Nethercote-6/+10
2020-07-14Auto merge of #74342 - Manishearth:rollup-l63pesj, r=Manishearthbors-702/+1067
Rollup of 11 pull requests Successful merges: - #73759 (Add missing Stdin and StdinLock examples) - #74211 (Structured suggestion when not using struct pattern) - #74228 (Provide structured suggestion on unsized fields and fn params) - #74252 (Don't allow `DESTDIR` to influence LLVM builds) - #74263 (Slight reorganization of sys/(fast_)thread_local) - #74271 (process_unix: prefer i32::*_be_bytes over manually shifting bytes) - #74272 (pprust: support multiline comments within lines) - #74332 (Update cargo) - #74334 (bootstrap: Improve wording on docs for `verbose-tests`) - #74336 (typeck: use `item_name` in cross-crate packed diag) - #74340 (lint: use `transparent_newtype_field` to avoid ICE) Failed merges: r? @ghost
2020-07-14Rollup merge of #74340 - ↵Manish Goregaokar-16/+30
davidtwco:issue-73747-improper-ctypes-defns-is-zst-with-params, r=pnkfelix lint: use `transparent_newtype_field` to avoid ICE Fixes #73747. This PR re-uses the `transparent_newtype_field` function instead of manually calling `is_zst` on normalized fields to determine which field in a transparent type is the non-zero-sized field, thus avoiding an ICE.
2020-07-14Rollup merge of #74336 - ↵Manish Goregaokar-25/+65
davidtwco:issue-73112-cross-crate-packed-type-diagnostic, r=estebank typeck: use `item_name` in cross-crate packed diag Fixes #73112. This PR replaces the use of `expect_local` and `hir().get` to fetch the identifier for a ADT with `item_name` - which works across crates.
2020-07-14Rollup merge of #74334 - jyn514:config-toml-docs, r=spastorinoManish Goregaokar-2/+1
bootstrap: Improve wording on docs for `verbose-tests` From https://github.com/rust-lang/rustc-dev-guide/pull/795#discussion_r454392291 r? @spastorino
2020-07-14Rollup merge of #74332 - ehuss:update-cargo, r=ehussManish Goregaokar-0/+0
Update cargo 4 commits in 4f74d9b2a771c58b7ef4906b2668afd075bc8081..43cf77395cad5b79887b20b7cf19d418bbd703a9 2020-07-08 17:13:00 +0000 to 2020-07-13 17:35:42 +0000 - fix: add space to comments (rust-lang/cargo#8476) - Allow configuring unstable flags via config file (rust-lang/cargo#8393) - Add support for rustc's `-Z terminal-width`. (rust-lang/cargo#8427) - Avoid colliding with older Cargo fingerprint changes (rust-lang/cargo#8473)
2020-07-14Rollup merge of #74272 - davidtwco:issue-73626-multiline-mixed-comments, ↵Manish Goregaokar-2/+47
r=Mark-Simulacrum pprust: support multiline comments within lines Fixes #73626. This PR adds support to `rustc_ast_pretty` for multiline comments that start and end within a line of source code. Fun fact: [the commit which added this assert](https://github.com/rust-lang/rust/commit/d12ea3989649616437a7c1434f5c5a6438235eb7) was from 2011! https://github.com/rust-lang/rust/blob/d12ea3989649616437a7c1434f5c5a6438235eb7/src/comp/pretty/pprust.rs#L1146-L1150
2020-07-14Rollup merge of #74271 - lzutao:cmdbytes, r=LukasKalbertodtManish Goregaokar-14/+12
process_unix: prefer i32::*_be_bytes over manually shifting bytes This PR makes it more clear about the intend of the code.
2020-07-14Rollup merge of #74263 - RalfJung:thread-local, r=Mark-SimulacrumManish Goregaokar-67/+83
Slight reorganization of sys/(fast_)thread_local I was long confused by the `thread_local` and `fast_thread_local` modules in the `sys(_common)` part of libstd. The names make it *sound* like `fast_thread_local` is just a faster version of `thread_local`, but really these are totally different APIs: one provides thread-local "keys", which are non-addressable pointer-sized pieces of local storage with an associated destructor; the other (the "fast" one) provides just a destructor. So I propose we rename `fast_thread_local` to `thread_local_dtor`, and `thread_local` to `thread_local_key`. That's what this PR does.
2020-07-14Rollup merge of #74252 - shepmaster:bootstrap-rust-destdir, r=Mark-SimulacrumManish Goregaokar-0/+5
Don't allow `DESTDIR` to influence LLVM builds When running a command like `DESTDIR=foo x.py install` in a completely clean build directory, this will cause LLVM to be installed into `DESTDIR`, which then causes the build to fail later when it attempts to *use* those LLVM files.
2020-07-14Rollup merge of #74228 - estebank:unsized-param, r=davidtwcoManish Goregaokar-437/+554
Provide structured suggestion on unsized fields and fn params * Suggest borrowing or boxing unsized fields * Suggest borrowing fn parameters * Remove some verbosity of unsized errors * Remove `on_unimplemented` note from `trait Sized` Fix #23286, fix #28653. r? @davidtwco
2020-07-14Rollup merge of #74211 - estebank:struct-pat-as-unit, r=petrochenkovManish Goregaokar-139/+239
Structured suggestion when not using struct pattern r? @petrochenkov
2020-07-14Rollup merge of #73759 - GuillaumeGomez:stdin-examples, r=Dylan-DPCManish Goregaokar-0/+31
Add missing Stdin and StdinLock examples r? @Dylan-DPC
2020-07-14Reword messageEsteban Küber-34/+35
2020-07-14Remove redundant explanatory `note` for type parametersEsteban Küber-98/+6
2020-07-14lint: use `transparent_newtype_field` to avoid ICEDavid Wood-16/+30
This commit re-uses the `transparent_newtype_field` function instead of manually calling `is_zst` on normalized fields to determine which field in a transparent type is the non-zero-sized field, thus avoiding an ICE. Signed-off-by: David Wood <david@davidtw.co>
2020-07-14Suggest borrowing in more unsized fn param casesEsteban Küber-49/+80
2020-07-14Remove `Sized` `on_unimplemented` noteEsteban Küber-169/+3
2020-07-14Suggest boxing or borrowing unsized fieldsEsteban Küber-106/+424
2020-07-14Point at type on E0275 instead of whole fieldEsteban Küber-3/+3
2020-07-14Suggest borrowing unsized argument typesEsteban Küber-12/+37
2020-07-14Suggest struct pat on incorrect unit or tuple patEsteban Küber-139/+239
When encountering a unit or tuple pattern for a struct-like item, suggest using the correct pattern. Use `insert_field_names_local` when evaluating variants and store field names even when the list is empty in order to produce accurate structured suggestions.