about summary refs log tree commit diff
path: root/Cargo.lock
AgeCommit message (Collapse)AuthorLines
2019-11-01Auto merge of #65698 - msizanoen1:dual-proc-macro-hash, r=petrochenkovbors-0/+1
Dual proc macro hash This PR changes current `-Z dual-proc-macro` mechanism from resolving only by name to including the hash of the host crate inside the transistive dependency information to prevent name conflicts. Fix partially #62558
2019-10-31rebase and re-update lock fileRalf Jung-2/+2
2019-10-31update miriRalf Jung-8/+8
2019-10-31Adjust rustc-workspace-hackmsizanoen1-0/+1
2019-10-30submodules: Bump RLS to 58869107ec162a821a4bee53cdd3f51c84cda3eaIgor Matuszewski-14/+7
Most importantly it contains https://github.com/rust-lang/rls/commit/d267b49c2f7914f5b4bc94916dc56d64b37adf3a which fixes the RLS build whenever Clippy is built successfully in Rust CI.
2019-10-29Rollup merge of #65920 - smaeul:patch/workspace-hack, r=alexcrichtonTyler Mandry-0/+1
Use rustc-workspace-hack for rustbook As rustbook now depends transitively on openssl, it needs access to the rustc-workspace-hack/all-static feature to pick up openssl-sys/vendored. This fixes the rust build with `all-static = true` on systems where openssl is not installed (e.g. when cross-compiling).
2019-10-29Rollup merge of #65906 - integer32llc:update-mdbook, r=alexcrichtonTyler Mandry-12/+12
Update mdbook to 0.3.3 There are some new features of mdbook that I'd like to use in TRPL.
2019-10-28Use rustc-workspace-hack for rustbookSamuel Holland-0/+1
As rustbook now depends transitively on openssl, it needs access to the rustc-workspace-hack/all-static feature to pick up openssl-sys/vendored. This fixes the rust build with `all-static = true` on systems where openssl is not installed (e.g. when cross-compiling).
2019-10-29Rollup merge of #65531 - tmandry:bump-backtrace, r=cramertjMazdak Farrokhzad-6/+7
Update backtrace to 0.3.40 Diff: https://github.com/rust-lang/backtrace-rs/compare/0.3.37...b5cc5b12fa4fd03cb83546a7c62b9fff40086b63 Pretty low risk, considering the only changes are in low-tier targets. r? @cramertj cc @alexcrichton
2019-10-29Rollup merge of #65294 - varkor:lint-inline-prototype, r=matthewjasperMazdak Farrokhzad-2/+2
Lint ignored `#[inline]` on function prototypes Fixes https://github.com/rust-lang/rust/issues/51280. - Adds a `unused_attribute` lint for `#[inline]` on function prototypes. - As a consequence, foreign items, impl items and trait items now have their attributes checked, which could cause some code to no longer compile (it was previously erroneously ignored).
2019-10-28Update backtrace to 0.3.40Tyler Mandry-6/+7
2019-10-28Update mdbook to 0.3.3Carol (Nichols || Goulding)-12/+12
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-3/+0
This is done by moving some data definitions to syntax::expand.
2019-10-26Auto merge of #65167 - hermitcore:rusty-hermit, r=alexcrichtonbors-0/+12
Redesign the interface to the unikernel HermitCore We are developing the unikernel HermitCore, where the kernel is written in Rust and is already part of the Rust Standard Library. The interface between the standard library and the kernel based on a small C library. With this pull request, we remove completely the dependency to C and use lld as linker. Currently, the kernel will be linked to the application as static library, which is published at https://github.com/hermitcore/libhermit-rs. We don’t longer support the C interface to the kernel. Consequently, we remove this part from the Rust Standard Library.
2019-10-25Update bitflagsvarkor-2/+2
2019-10-26Rollup merge of #65800 - michaelwoerister:measureme-0.4.0, r=wesleywiserYuki Okushi-2/+2
self-profiling: Update measureme to 0.4.0 and remove non-RAII methods from profiler. This PR removes all non-RAII based profiling methods from `SelfProfilerRef` :tada: It also delegates the `TimingGuard` implementation to `measureme`, now that that is available there. r? @wesleywiser
2019-10-25rerun cargo to generate lock fileStefan Lankes-1/+1
2019-10-25update Cargo.lockStefan Lankes-0/+1
2019-10-25Auto merge of #65764 - Manishearth:clippyup, r=Manishearthbors-5/+17
Update clippy Fixes #65754 r? @ghost
2019-10-25Merge branch 'master' into rusty-hermit, resolve conflictsStefan Lankes-6/+6
2019-10-24Update clippyManish Goregaokar-5/+17
2019-10-24self-profiling: Update measureme to 0.4.0 and use new RAII-based API.Michael Woerister-2/+2
2019-10-24Update hashbrown to 0.6.2Alex Crichton-3/+3
Pulls in rust-lang/hashbrown#119 which should be a good improvement for compile times of hashmap-heavy crates.
2019-10-23Rollup merge of #65193 - Mark-Simulacrum:lockless-lintstore, r=nikomatsakisMazdak Farrokhzad-0/+1
Lockless LintStore This removes mutability from the lint store after registration. Each commit stands alone, for the most part, though they don't make sense out of sequence. The intent here is to move LintStore to a more parallel-friendly architecture, although also just a cleaner one from an implementation perspective. Specifically, this has the following changes: * We no longer implicitly register lints when registering lint passes * For the most part this means that registration calls now likely want to call something like: `lint_store.register_lints(&Pass::get_lints())` as well as `register_*_pass`. * In theory this is a simplification as it's much easier for folks to just register lints and then have passes that implement whichever lint however they want, rather than necessarily tying passes to lints. * Lint passes still have a list of associated lints, but a followup PR could plausibly change that * This list must be known for a given pass type, not instance, i.e., `fn get_lints()` is the signature instead of `fn get_lints(&self)` as before. * We do not store pass objects, instead storing constructor functions. This means we always get new passes when running lints (this happens approximately once though for a given compiler session, so no behavior change is expected). * Registration API is _much_ simpler: generally all functions are just taking `Fn() -> PassObject` rather than several different `bool`s.
2019-10-23update compiletestLzu Tao-2/+2
2019-10-22Merge branch 'master' into rusty-hermitStefan Lankes-2/+3
2019-10-20Rollup merge of #65595 - Centril:cfgspecs, r=Mark-SimulacrumMazdak Farrokhzad-0/+1
move `parse_cfgspecs` to `rustc_interface` Part of https://github.com/rust-lang/rust/pull/65324. r? @Mark-Simulacrum
2019-10-20Merge branch 'master' into rusty-hermitStefan Lankes-52/+155
2019-10-20move interface to the unikernel in the crate hermit-abiStefan Lankes-1/+13
=> simplifies the maintenance of the interface
2019-10-20Auto merge of #65469 - mati865:libc, r=alexcrichtonbors-2/+2
Update libc to 0.2.64 Passed local tests. cc potentially interested people: @gnzlbg @tlively
2019-10-19move parse_cfgspecs to rustc_interfaceMazdak Farrokhzad-0/+1
2019-10-17Create lint store during plugin registrationMark Rousskov-0/+1
Remove lint store from Session
2019-10-16Update libc to 0.2.64Mateusz Mikuła-2/+2
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-0/+27
2019-10-14update miriRalf Jung-2/+2
2019-10-12Bump home crateLzu Tao-2/+2
2019-10-12Update RLS and RustfmtIgor Matuszewski-25/+38
This also bumps rustc-ap-* crates and fixes the relevant toolstate.
2019-10-09Rollup merge of #64656 - passcod:map-entry-insert, r=AmanieuMazdak Farrokhzad-3/+18
Implement (HashMap) Entry::insert as per #60142 Implementation of `Entry::insert` as per @SimonSapin's comment on #60142. This requires a patch to hashbrown: ```diff diff --git a/src/rustc_entry.rs b/src/rustc_entry.rs index fefa5c3..7de8300 100644 --- a/src/rustc_entry.rs +++ b/src/rustc_entry.rs @@ -546,6 +546,32 @@ impl<'a, K, V> RustcVacantEntry<'a, K, V> { let bucket = self.table.insert_no_grow(self.hash, (self.key, value)); unsafe { &mut bucket.as_mut().1 } } + + /// Sets the value of the entry with the RustcVacantEntry's key, + /// and returns a RustcOccupiedEntry. + /// + /// # Examples + /// + /// ``` + /// use hashbrown::HashMap; + /// use hashbrown::hash_map::RustcEntry; + /// + /// let mut map: HashMap<&str, u32> = HashMap::new(); + /// + /// if let RustcEntry::Vacant(v) = map.rustc_entry("poneyland") { + /// let o = v.insert_and_return(37); + /// assert_eq!(o.get(), &37); + /// } + /// ``` + #[inline] + pub fn insert_and_return(self, value: V) -> RustcOccupiedEntry<'a, K, V> { + let bucket = self.table.insert_no_grow(self.hash, (self.key, value)); + RustcOccupiedEntry { + key: None, + elem: bucket, + table: self.table + } + } } impl<K, V> IterMut<'_, K, V> { ``` This is also only an implementation for HashMap. I tried implementing for BTreeMap, but I don't really understand BTreeMap's internals and require more guidance on implementing the equivalent `VacantEntry::insert_and_return` such that it returns an `OccupiedEntry`. Notably, following the original PR's modifications I end up needing a `Handle<NodeRef<marker::Mut<'_>, _, _, marker::LeafOrInternal>, _>` while I only have a `Handle<NodeRef<marker::Mut<'_>, _, _, marker::Internal>, _>` and don't know how to proceed. (To be clear, I'm not asking for guidance right now; I'd be happy getting only the HashMap implementation — the subject of this PR — reviewed and ready, and leave the BTreeMap implementation for a latter PR.)
2019-10-09Implement (HashMap) Entry::insert as per #60142Félix Saparelli-3/+18
2019-10-07Update other rayon uses to 1.2 tooJosh Stone-6/+6
2019-10-07Rebase rustc-rayon on rayon-1.2Josh Stone-9/+43
See also https://github.com/rust-lang/rustc-rayon/pull/3
2019-10-06Rollup merge of #65101 - mati865:rustc_macro-deps, r=nikomatsakisTyler Mandry-6/+18
Upgrade librustc_macros dependencies Passed tests on Linux.
2019-10-04middle::intrinsicck -> rustc_passesMark Rousskov-0/+2
2019-10-04Upgrade librustc_macros dependenciesMateusz Mikuła-6/+18
2019-10-01Update `Cargo.lock` for cargo updateAlex Crichton-8/+7
2019-09-30Auto merge of #64778 - csmoe:index, r=eddybbors-0/+18
Introduce librustc_index crate Closes #50592
2019-09-29bump MiriRalf Jung-22/+0
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-1/+4
2019-09-29remove bit_set re-export from rustc_data_structurescsmoe-0/+6
2019-09-29move bit_set into rustc_indexcsmoe-0/+1