about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2020-02-05Rollup merge of #68858 - ljedrz:collapse_stable_hash_foos, r=michaelwoeristerDylan DPC-27/+1
Merge item id stable hashing functions Supersedes https://github.com/rust-lang/rust/pull/67999 splitting out the pure cleanup bits, i.e. merging `hash_item_id`, `hash_impl_item_id` and `hash_trait_item_id` into a common `hash_reference_to_item`. r? @michaelwoerister
2020-02-05Rollup merge of #68840 - Centril:rec-lim-curr-crate, r=estebankDylan DPC-2/+2
On suggesting `#![recursion_limit = "X"]`, note current crate name This would have saved me much confusion e.g. when reading the log output in https://github.com/rust-lang/rust/pull/68788#issuecomment-581852191. r? @estebank
2020-02-05Move EvaluationCache::clear.Camille GILLOT-7/+7
2020-02-05Move ExpectedFound::new to ty::error.Camille GILLOT-10/+10
2020-02-05Move specialization_graph definition in traits::types.Camille GILLOT-196/+204
2020-02-05Split traits::structural_impls in two.Camille GILLOT-703/+714
2020-02-05move item reference commentljedrz-7/+0
2020-02-05merge item id stable hashing functionsljedrz-20/+1
2020-02-05Move implementation of UnifyKey to unify_key.rs.Camille GILLOT-15/+15
2020-02-05Move infer::canonical datatypes to infer::types.Camille GILLOT-334/+364
2020-02-05Move infer::region_constraints::MemberConstraint to infer::types module.Camille GILLOT-24/+32
2020-02-05Move traits::query datatypes to traits::types.Camille GILLOT-249/+353
2020-02-05Move traits::select datatypes to traits::types.Camille GILLOT-295/+290
2020-02-05Move traits::Reveal to traits::types.Camille GILLOT-43/+45
2020-02-05Move rustc::traits datatypes to module traits::types.Camille GILLOT-681/+691
2020-02-05Auto merge of #68831 - Dylan-DPC:rollup-j6x15y9, r=Dylan-DPCbors-4/+1
Rollup of 7 pull requests Successful merges: - #68282 (Instrument C / C++ in MemorySanitizer example) - #68758 (Fix 59191 - ICE when macro replaces crate root with non-module item) - #68805 (bootstrap: fix clippy warnings) - #68810 (Remove Copy impl from OnceWith) - #68815 (remove redundant imports (clippy::single_component_path_imports)) - #68818 (fix couple of perf related clippy warnings) - #68819 (Suggest `split_at_mut` on multiple mutable index access) Failed merges: r? @ghost
2020-02-05`#![recursion_limit = "X"]`: note current crate name.Mazdak Farrokhzad-2/+2
2020-02-05Make associated item lookup a queryJonas Schievink-21/+15
2020-02-04Auto merge of #68544 - Aaron1011:remove-overlapping-traits, r=estebankbors-13/+4
Remove the `overlapping_marker_traits` feature See #29864 This has been replaced by `#[feature(marker_trait_attr)]` A few notes: * Due to PR #68057 not yet being in the bootstrap compiler, it's necessary to continue using `#![feature(overlapping_marker_traits)]` under `#[cfg(bootstrap)]` to work around type inference issues. * I've updated tests that used `overlapping_marker_traits` to now use `marker_trait_attr` where applicable The test `src/test/ui/overlap-marker-trait.rs` doesn't make any sense now that `overlapping_marker_traits`, so I removed it. The test `src/test/ui/traits/overlap-permitted-for-marker-traits-neg.rs` now fails, since it's no longer possible to have multiple overlapping negative impls of `Send`. I believe that this is the behavior we want (assuming that `Send` is not going to become a `#[marker]` trait, so I renamed the test to `overlap-permitted-for-marker-traits-neg`
2020-02-04Rollup merge of #68818 - matthiaskrgr:misc_perf, r=Mark-SimulacrumDylan DPC-1/+1
fix couple of perf related clippy warnings librustc: don't clone a type that is copy librustc_incremental: use faster vector initialization librustc_typeck: don't clone a type that is copy librustdoc: don't create a vector where a slice will do
2020-02-04Rollup merge of #68815 - matthiaskrgr:redundant_imports, r=alexcrichtonDylan DPC-3/+0
remove redundant imports (clippy::single_component_path_imports)
2020-02-04Remove the `overlapping_marker_traits` featureAaron Hill-13/+4
See #29864 This has been replaced by `#[feature(marker_trait_attr)]` A few notes: * Due to PR #68057 not yet being in the bootstrap compiler, it's necessary to continue using `#![feature(overlapping_marker_traits)]` under `#[cfg(bootstrap)]` to work around type inference issues. * I've updated tests that used `overlapping_marker_traits` to now use `marker_trait_attr` where applicable The test `src/test/ui/overlap-marker-trait.rs` doesn't make any sense now that `overlapping_marker_traits`, so I removed it. The test `src/test/ui/traits/overlap-permitted-for-marker-traits-neg.rs` now fails, since it's no longer possible to have multiple overlapping negative impls of `Send`. I believe that this is the behavior we want (assuming that `Send` is not going to become a `#[marker]` trait, so I renamed the test to `overlap-permitted-for-marker-traits-neg`
2020-02-04Remove unused feature gates from librustcbjorn3-7/+0
2020-02-04Auto merge of #68377 - estebank:fn-obligations-spans, r=oli-obkbors-126/+307
Tweak obligation error output - Point at arguments or output when fn obligations come from them, or ident when they don't - Point at `Sized` bound (fix #47990) - When object unsafe trait uses itself in associated item suggest using `Self` (fix #66424, fix #33375, partially address #38376, cc #61525) - Point at reason in object unsafe trait with `Self` in supertraits or `where`-clause (cc #40533, cc #68377) - On implicit type parameter `Sized` obligations, suggest `?Sized` (fix #57744, fix #46683)
2020-02-04Auto merge of #68708 - Mark-Simulacrum:stage0-step, r=pietroalbinibors-2/+0
Step stage0 to bootstrap from 1.42 This also includes a commit which fixes the rustfmt downloading logic to redownload when the rustfmt channel changes, and bumps rustfmt to a more recent version.
2020-02-04Implement proper C ABI lowering for RISC-Vmsizanoen1-0/+1
2020-02-04fix couple of perf related clipyp warningsMatthias Krüger-1/+1
librustc: don't clone a type that is copy librustc_incremental: use faster vector initialization librustc_typeck: don't clone a type that is copy librustdoc: don't create a vector where a slice will do
2020-02-04remove redundant imports (clippy::single_component_path_imports)Matthias Krüger-3/+0
2020-02-03Change wording for object unsafe because of assoc constEsteban Küber-5/+3
2020-02-02Use correct `ParamEnv` in `Instance::resolve`Matthew Jasper-1/+1
2020-02-02Address review commentsMatthew Jasper-11/+22
* Handle arrays with const-generic lengths * Use closure for repeated code.
2020-02-02Improve needs_drop queryMatthew Jasper-153/+87
* Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty
2020-02-02Add IS_MANUALLY_DROP to AdtFlagsMatthew Jasper-5/+17
2020-02-02Point at reason in object unsafe trait with `Self` in supertraits or ↵Esteban Küber-16/+38
`where`-clause
2020-02-02Account for `?Sized` type parameter boundsEsteban Küber-1/+11
2020-02-02Remove duplicated codeEsteban Küber-72/+0
2020-02-02Suggest `?Sized` on type parametersEsteban Küber-0/+38
2020-02-02Use more appropriate spans on object unsafe traits and provide structured ↵Esteban Küber-28/+85
suggestions when possible
2020-02-02Wording changes to object unsafe trait errorsEsteban Küber-10/+65
Stemming from the thread at https://twitter.com/indygreg/status/1223279056398929920
2020-02-02review commentsEsteban Küber-3/+3
2020-02-02Remove duplicated codeEsteban Küber-8/+1
2020-02-02Slight rewording of diagnostic messageEsteban Küber-1/+1
2020-02-02Use more accurate failed predicate spansEsteban Küber-2/+7
2020-02-02Point at the `Sized` obligation in `where` clausesEsteban Küber-4/+35
2020-02-02Tweak `Self: Sized` restriction diagnostic outputEsteban Küber-32/+50
2020-02-02Point at `Sized` boundEsteban Küber-7/+33
2020-02-02Add resume arg place to `Yield` MIR terminatorJonas Schievink-3/+14
2020-02-02Use real resume type as second argumentJonas Schievink-1/+2
2020-02-02Add a resume type param to the generator substsJonas Schievink-12/+36
...and unify it with `()` for now
2020-02-02Add a resume type parameter to `Generator`Jonas Schievink-4/+6