about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-03-27Implement HashStable directly.Camille GILLOT-7/+8
2020-03-27Cleanups.Camille GILLOT-15/+14
2020-03-27Move QueryContext to the parent module.Camille GILLOT-42/+46
2020-03-27parse: improve recovery for assoc eq constraints.Mazdak Farrokhzad-1/+111
2020-03-27extract parse_generic_argMazdak Farrokhzad-8/+14
2020-03-27parse_angle_arg: parse constraints firstMazdak Farrokhzad-4/+4
2020-03-27split parse_angle_args into loop / single stepMazdak Farrokhzad-63/+67
2020-03-27parse: move constraint/arg restriction to ast_validation.Mazdak Farrokhzad-200/+247
2020-03-27Remove the QueryGetter trait.Camille GILLOT-91/+74
2020-03-27Auto merge of #69470 - mati865:deps, r=Mark-Simulacrumbors-4/+4
Upgrade rustc and bootstrap dependencies
2020-03-27suggest semi on expr mac!() good as stmt mac!().Mazdak Farrokhzad-1/+73
2020-03-27non-exhastive diagnostic: add note re. scrutinee typeMazdak Farrokhzad-0/+265
2020-03-27fix suggested changesPankajChaudhary5-5/+6
2020-03-27Auto merge of #68404 - Amanieu:llvm-asm, r=estebankbors-588/+634
Rename asm! to llvm_asm! As per https://github.com/rust-lang/rfcs/pull/2843, this PR renames `asm!` to `llvm_asm!`. It also renames the compiler's internal `InlineAsm` data structures to `LlvmInlineAsm` in preparation for the new `asm!` functionality specified in https://github.com/rust-lang/rfcs/pull/2850. This PR doesn't actually deprecate `asm!` yet, it just makes it redirect to `llvm_asm!`. This is necessary because we first need to update the submodules (in particular stdarch) to use `llvm_asm!`.
2020-03-27remove unused importdylan_DPC-1/+0
2020-03-27simplify testdylan_DPC-4/+1
2020-03-27Remove `no_integrated_as` mode.Nicholas Nethercote-129/+26
Specifically, remove both `-Z no_integrated_as` and `TargetOptions::no_integrated_as`. The latter was only used for the `msp430_none_elf` platform, for which it's no longer required.
2020-03-27Rollup merge of #70435 - Alexendoo:test-66706, r=CentrilDylan DPC-0/+45
Add regression test for #66706 Adds the two cases that no longer ICE (https://github.com/rust-lang/rust/issues/66706#issuecomment-604098436)
2020-03-27Rollup merge of #70344 - Centril:hir-pretty, r=eddybDylan DPC-311/+273
Decouple `rustc_hir::print` into `rustc_hir_pretty` High level summary: - The HIR pretty printer, `rustc_hir::print` is moved into a new crate `rustc_hir_pretty`. - `rustc_ast_pretty` and `rustc_errors` are dropped as `rustc_hir` dependencies. - The dependence on HIR pretty is generally reduced, leaving `rustc_save_analysis`, `rustdoc`, `rustc_metadata`, and `rustc_driver` as the remaining clients. The main goal here is to reduce `rustc_hir`'s dependencies and its size such that it can start and finish earlier, thereby working towards https://github.com/rust-lang/rust/issues/65031. r? @Zoxc
2020-03-27Rollup merge of #70048 - TyPR124:mutable_osstr, r=dtolnayDylan DPC-0/+50
Allow obtaining &mut OsStr ```rust impl DerefMut for OsString {...} // type Target = OsStr impl IndexMut<RangeFull> for OsString {...} // type Output = OsStr ``` --- This change is pulled out of #69937 per @dtolnay This implements `DerefMut for OsString` to allow obtaining a `&mut OsStr`. This also implements `IndexMut for OsString`, which is used by `DerefMut`. This pattern is the same as is used by `Deref`. This is necessary to for methods like `make_ascii_lowercase` which need to mutate the underlying value.
2020-03-27Rollup merge of #69936 - Aaron1011:fix/suggestion-cycle, r=varkorDylan DPC-22/+75
Fix cycle error when emitting suggestion for mismatched `fn` type Fixes #66667 Previously, we called `tcx.typeck_tables_of` when determining whether or not to emit a suggestion for a type error. However, we might already be type-checking the `DefId` we pass to `typeck_tables_of` (it could be anywhere in the query stack). Fortunately, we only need the function signature, not the entire `TypeckTables`. By using `tcx.fn_sig`, we avoid the possibility of cycle errors while retaining the ability to emit a suggestion.
2020-03-27Rollup merge of #69644 - ecstatic-morse:unified-dataflow-cleanup, r=eddybDylan DPC-1108/+89
Remove framework in `dataflow/mod.rs` in favor of "generic" one This is the culmination of the work described in rust-lang/compiler-team#202. All dataflow analyses (including the one in `clippy`) have been ported to use the framework in `dataflow/generic`, which can efficiently handle both gen/kill and generic problems. This PR moves the framework in `dataflow/generic` to `dataflow/framework`, and removes the gen/kill framework in `dataflow/mod.rs`. More comprehensive documentation for the new framework is tracked in rust-lang/rustc-guide#564. `clippy` will need to change the path it uses to import the dataflow analysis traits.
2020-03-26Make `framework` a private moduleDylan MacKenzie-1/+1
2020-03-26Update `framework` module docsDylan MacKenzie-17/+15
2020-03-26Move `BottomValue` into `framework/mod.rs`Dylan MacKenzie-47/+43
2020-03-26Update imports from `dataflow::generic` to `dataflow`Dylan MacKenzie-20/+19
2020-03-26Update use statements in `dataflow/mod.rs`Dylan MacKenzie-7/+10
2020-03-26Rename `dataflow::generic` to `dataflow::framework`Dylan MacKenzie-0/+0
2020-03-26Move `MoveDataParamEnv` to beginning of moduleDylan MacKenzie-5/+5
2020-03-26Remove `BitDenotation` frameworkDylan MacKenzie-1017/+2
2020-03-26Test and fix gdb pretty printing againStein Somers-6/+17
2020-03-26fix docsdylan_DPC-2/+5
2020-03-26Create output dir in rustdoc markdown renderTimothée Gerber-1/+6
2020-03-26Rollup merge of #70437 - RalfJung:miri-saturate, r=hanna-kruppeDylan DPC-0/+4
Miri float->int casts: be explicit that this is saturating r? @hanna-kruppe Cc https://github.com/rust-lang/miri/issues/1264
2020-03-26Rollup merge of #70429 - GuillaumeGomez:cleanup-e0459, r=Dylan-DPCDylan DPC-1/+3
Clean up E0459 explanation r? @Dylan-DPC
2020-03-26Rollup merge of #70428 - Centril:move-to-mod, r=petrochenkovDylan DPC-2/+93
`error_bad_item_kind`: add help text For example, this adds: ``` = help: consider moving the `use` import out to a nearby module scope ``` r? @petrochenkov @estebank Fixes https://github.com/rust-lang/rust/issues/37205.
2020-03-26Rollup merge of #70413 - AminArria:match-pattern-incorrect-warning, ↵Dylan DPC-8/+63
r=Centril,Nadrieril,varkor Fix incorrect pattern warning "unreachable pattern" Fixes #70372 Added `is_under_guard` parameter to `_match::is_useful` and only add it to the matrix if `false` Tested with: ```rust #![feature(or_patterns)] fn main() { match (3,42) { (a,_) | (_,a) if a > 10 => {println!("{}", a)} _ => () } match Some((3,42)) { Some((a, _)) | Some((_, a)) if a > 10 => {println!("{}", a)} _ => () } match Some((3,42)) { Some((a, _) | (_, a)) if a > 10 => {println!("{}", a)} _ => () } } ```
2020-03-26Rollup merge of #70397 - JOE1994:write_wide_str, r=RalfJungDylan DPC-2/+43
add 'fn write_u16s' to Memory Added new function `Memory::write_u16s`. Needed in `MIRI` for implementing helper function to write wide_str to memory (for Windows).
2020-03-26Rollup merge of #70384 - nnethercote:refactor-object-file-handling, ↵Dylan DPC-79/+96
r=alexcrichton Refactor object file handling Some preliminary clean-ups that grease the path to #66961. r? @alexcrichton
2020-03-26Add fold_selfNathan West-16/+40
- Added `Iterator::fold_first`, which is like `fold`, but uses the first element in the iterator as the initial accumulator - Includes doc and doctest - Rebase commit; see #65222 for details Co-Authored-By: Tim Vermeulen <tvermeulen@me.com>
2020-03-26Miri float->int casts: be explicit that this is saturatingRalf Jung-0/+4
2020-03-26Add regression test for #66706Alex Macleod-0/+45
2020-03-26Mark `Layout::dangling` inlineTim Diekmann-0/+1
2020-03-26Apply suggestions from code reviewTim Diekmann-10/+11
Co-Authored-By: Amanieu d'Antras <amanieu@gmail.com>
2020-03-26Remove alignment from `MemoryBlock`Tim Diekmann-202/+211
2020-03-26Remove unused import from libcore/allocTim Diekmann-1/+1
2020-03-26Fix safety section of `RawVec::into_box`Tim Diekmann-1/+2
2020-03-26Fix wording in `RawVec::from_raw_parts(_in)`Tim Diekmann-2/+2
2020-03-26Remove check for ZST in `RawVec::needs_to_grow`Tim Diekmann-2/+1
2020-03-26Refine docs for `RawVec::from_raw_parts(_in)`Tim Diekmann-4/+6