profile
viewpoint

cjgillot/rtti 2

Implementation of multimethods in C++.

cjgillot/cacolac 0

Gyrokinetic linear analysis based on trajectory computation

cjgillot/ChefDep 0

Logiciel pour le suivi du dépannage à la 12F

cjgillot/fipy 0

FiPy is a Finite Volume PDE solver written in Python

cjgillot/fruits 0

Plus de fruits :)

cjgillot/mycas 0

A small symbolic manipulation library inspired from GiNaC.

cjgillot/openfisca-france 0

French tax and benefit system for OpenFisca

cjgillot/rust 0

A safe, concurrent, practical language.

cjgillot/rust-analyzer 0

An experimental Rust compiler front-end for IDEs

cjgillot/symengine 0

SymEngine is a fast symbolic manipulation library, written in C++

push eventcjgillot/rust

Camille GILLOT

commit sha 7db6517c8198ebed2ce57779d9b5158ef87d8f32

Fix unused parentheses warning.

view details

push time in 37 minutes

push eventcjgillot/rust

Camille GILLOT

commit sha 3117c049d2f5359ad0458c4fdc900c4b9a517978

Allow the QueryCache to specify storage.

view details

Camille GILLOT

commit sha 6be924c3f0f90ab323940e6dbd4107b2e87d42cb

Introduce ArenaStorage.

view details

Camille GILLOT

commit sha 503a9eb20b0a16b28d0697ca8541c6afdea3157b

Use the query system to allocate.

view details

Camille GILLOT

commit sha 5196dcc5d81ec7fa427c5a47ddfd228eba1a589d

Stop leaking memory.

view details

push time in 12 hours

push eventcjgillot/rust

Camille GILLOT

commit sha 17fb3fdef27116701c222693e9e3befe5a9823c0

Fmt.

view details

push time in 12 hours

push eventcjgillot/rust

Joshua Nelson

commit sha 62722735fb62c2f93656a012c29310155de35467

impl From<[T; N]> for Vec<T>

view details

Joshua Nelson

commit sha daeb8ece8c930174baa874aa3f2f278fbec9637d

fix error compiling stage2 Co-Authored-By: lzutao <taolzu@gmail.com>

view details

Joshua Nelson

commit sha f267d9dc191debfef74cc211dbca3d286b51f761

limit From impl to LengthAtMost32 Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>

view details

Joshua Nelson

commit sha e3d5eaf2bba89db8359393ac7656db19cb421fb5

add ui-tests

view details

Joshua Nelson

commit sha ba46b61bbcd0d2860105c429cf73254c388e9118

bless UI tests

view details

Joshua Nelson

commit sha 96794d86f127dd409760765a64a36c07d9ed585f

fix test failure

view details

Joshua Nelson

commit sha 1ac4a461425b7a2e29aeb3c2b2cae944f8cbcc77

make the impl a little prettier

view details

Joshua Nelson

commit sha 8212584c9ecdbd91736fc7a480fe3b7409b73477

Bump release cutoff

view details

Joshua Nelson

commit sha 3477e67a92878adae48b975915cb7a5c21026cd4

Allow vec.rs to be over 3000 lines :(

view details

Tomasz Miąsko

commit sha 7fdc3efb7ad6e9f73110f8e2e01120cd022b5fc9

Add copy bound to atomic intrinsics

view details

Tomasz Miąsko

commit sha ec853b6b60e9cbe7b07458f9c33f0bb3f52e0776

Add copy bound to numeric intrinsics

view details

Wim Looman

commit sha 6fe7867ea6f5f912346d75459499fca88f6ae563

Add Result<Result<T, E>, E>::flatten -> Result<T, E>

view details

Mark Rousskov

commit sha 903f67d599cf12d2d202d5177bb3edecb6cdab00

Avoid re-fetching Unicode data If the unicode-downloads folder already exists, we likely just fetched the data, so don't make any further network requests. Unicode versions are released rarely enough that this doesn't matter much in practice.

view details

Mark Rousskov

commit sha 7c4baedb3a090f2dc9e653bd7c03165be84acad3

Dynamically choose best chunk size Try chunk sizes between 1 and 64, selecting the one which minimizes the number of bytes used. 16, the previous constant, turned out to be a rather good choice, with 5/9 of the datasets still using it. Alphabetic : 3036 bytes (- 19 bytes) Case_Ignorable : 2136 bytes Cased : 934 bytes Cc : 32 bytes (- 11 bytes) Grapheme_Extend: 1774 bytes Lowercase : 985 bytes N : 1225 bytes (- 41 bytes) Uppercase : 934 bytes White_Space : 97 bytes (- 43 bytes) Total table sizes: 11153 bytes (-114 bytes)

view details

Mark Rousskov

commit sha 580a6342ef9d435d241b74e86b99dc1131a526f8

Generate tests for Unicode property data Currently the test file takes a while to compile -- 30 seconds or so -- but since it's not going to be committed, and is just for local testing, that seems fine.

view details

Mark Rousskov

commit sha 6c7691a37bf485b28fecb6856e6ede8fa952f99e

Pre-pop zero chunks before mapping LAST_CHUNK_MAP This avoids wasting a small amount of space for some of the data sets. The chunk resizing is caused by but not directly related to changes in this commit. Alphabetic : 3036 bytes Case_Ignorable : 2133 bytes (- 3 bytes) Cased : 934 bytes Cc : 32 bytes Grapheme_Extend: 1760 bytes (-14 bytes) Lowercase : 985 bytes N : 1220 bytes (- 5 bytes) Uppercase : 934 bytes White_Space : 97 bytes Total table sizes: 11131 bytes (-22 bytes)

view details

Mark Rousskov

commit sha b0e121d9d588b334eaa1b68a127f5ee0fcda4296

Shrink bitset words through functional mapping Previously, all words in the (deduplicated) bitset would be stored raw -- a full 64 bits (8 bytes). Now, those words that are equivalent to others through a specific mapping are stored separately and "mapped" to the original when loading; this shrinks the table sizes significantly, as each mapped word is stored in 2 bytes (a 4x decrease from the previous). The new encoding is also potentially non-optimal: the "mapped" byte is frequently repeated, as in practice many mapped words use the same base word. Currently we only support two forms of mapping: rotation and inversion. Note that these are both guaranteed to map transitively if at all, and supporting mappings for which this is not true may require a more interesting algorithm for choosing the optimal pairing. Updated sizes: Alphabetic : 2622 bytes (- 414 bytes) Case_Ignorable : 1803 bytes (- 330 bytes) Cased : 808 bytes (- 126 bytes) Cc : 32 bytes Grapheme_Extend: 1508 bytes (- 252 bytes) Lowercase : 901 bytes (- 84 bytes) N : 1064 bytes (- 156 bytes) Uppercase : 838 bytes (- 96 bytes) White_Space : 91 bytes (- 6 bytes) Total table sizes: 9667 bytes (-1,464 bytes)

view details

Mark Rousskov

commit sha 7b29b70d6ea52e9324f9328bed9beb6cf516c1ce

Add a right shift mapping This saves less bytes - by far - and is likely not the best operator to choose. But for now, it works -- a better choice may arise later. Alphabetic : 2538 bytes (- 84 bytes) Case_Ignorable : 1773 bytes (- 30 bytes) Cased : 790 bytes (- 18 bytes) Cc : 26 bytes (- 6 bytes) Grapheme_Extend: 1490 bytes (- 18 bytes) Lowercase : 865 bytes (- 36 bytes) N : 1040 bytes (- 24 bytes) Uppercase : 778 bytes (- 60 bytes) White_Space : 85 bytes (- 6 bytes) Total table sizes: 9385 bytes (-282 bytes)

view details

Dillon Amburgey

commit sha 37c63edfc4462381ee0669b17d593a307a985c52

Validate git setup before accessing functionality

view details

Mark Rousskov

commit sha 5f71d98f90354f9ee67c2b77c8607fbc9169d63e

Deduplicate test and primary range_search definitions This ensures that what we test is what we get for final results as well.

view details

push time in 12 hours

PR opened rust-lang/rust

Store query results on arenas and stop cloning them

This PR leverages the cache for each query to serve as storage area for the query results.

It introduces a new cache ArenaCache, which moves the result to an arena, and only stores the reference in the hash map. This allows to remove a sizeable part of the usage of the global TyCtxt arena.

I only migrated queries that already used arenas before.

+295 -238

0 comment

32 changed files

pr created time in 12 hours

create barnchcjgillot/rust

branch : query-arena-all

created branch time in 12 hours

push eventcjgillot/rust

Lukas Lueg

commit sha becebf3106407b892f25807473e23d6e8f116a1e

Ammend Rc/Arc::from_raw() docs regarding unsafety Constructing an Rc/Arc is unsafe even if the wrapped `T` is never dereferenced.

view details

Lukas Lueg

commit sha b4c96a9199f13c5c1c2afa6258d2b9206c151d9f

Refine [Arc/Rc]::from_raw() docs

view details

Waffle

commit sha a8340413fe8aa29864ce05875cc63f29af305e31

Remove `finished` flag from `MapWhile`

view details

Lukas Lueg

commit sha 586c7e3907738938db7a6730fd70d7125f5925fa

Make rc::RcBox and sync::ArcInner repr(C) Future-proof these types in case rustc reorders the inner fields. As per discussion in PR #68099.

view details

Waffle

commit sha 605bc1b19b45534b0860fad4b1d44678bc8b34e9

adjuste doc of `map_while` Fix doc of `Iterator::map_while` so it would be clearer that it isn't fused.

view details

Guillaume Gomez

commit sha c57de34e8feca218c0c696b621de87c078a2a0e0

Stabilize --crate-version option in rustdoc

view details

Ralf Jung

commit sha 22ee27b266814485fe9ab7da4b539348cb994045

update backtrace crate

view details

Markus Westerlind

commit sha c6f1215d925561021eec296d9e88aa0305d0a18d

perf(dep_graph): Avoid allocating a set on when the number reads are small `reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).

view details

Arkadiusz Piekarz

commit sha b90edfcc9e1c4ff547b012c41ba2d55974794a7e

Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book

view details

Markus Westerlind

commit sha 4168c25b0f8aadcfe38c8bdae7cc51c22c2f45d1

refactor: Add an alias for the SmallVec in dep_graph

view details

Matt Cooper

commit sha ec7010a1a8ae59a7538e649218665497306eb8b1

establish immutable source for RUST_CONFIGURE_ARGS

view details

Matt Cooper

commit sha a942b3946521db46ba653693f5d6e477e39bbb3b

fix how we detect an unset variable

view details

Ralf Jung

commit sha 9552d2e4ab84611e4dd354631cceb9555c956c08

bump backtrace-sys

view details

Joshua Nelson

commit sha 62722735fb62c2f93656a012c29310155de35467

impl From<[T; N]> for Vec<T>

view details

Joshua Nelson

commit sha daeb8ece8c930174baa874aa3f2f278fbec9637d

fix error compiling stage2 Co-Authored-By: lzutao <taolzu@gmail.com>

view details

Joshua Nelson

commit sha f267d9dc191debfef74cc211dbca3d286b51f761

limit From impl to LengthAtMost32 Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>

view details

Joshua Nelson

commit sha e3d5eaf2bba89db8359393ac7656db19cb421fb5

add ui-tests

view details

Joshua Nelson

commit sha ba46b61bbcd0d2860105c429cf73254c388e9118

bless UI tests

view details

Joshua Nelson

commit sha 96794d86f127dd409760765a64a36c07d9ed585f

fix test failure

view details

Joshua Nelson

commit sha 1ac4a461425b7a2e29aeb3c2b2cae944f8cbcc77

make the impl a little prettier

view details

push time in 3 days

push eventcjgillot/rust

Joshua Nelson

commit sha 62722735fb62c2f93656a012c29310155de35467

impl From<[T; N]> for Vec<T>

view details

Joshua Nelson

commit sha daeb8ece8c930174baa874aa3f2f278fbec9637d

fix error compiling stage2 Co-Authored-By: lzutao <taolzu@gmail.com>

view details

Joshua Nelson

commit sha f267d9dc191debfef74cc211dbca3d286b51f761

limit From impl to LengthAtMost32 Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>

view details

Joshua Nelson

commit sha e3d5eaf2bba89db8359393ac7656db19cb421fb5

add ui-tests

view details

Joshua Nelson

commit sha ba46b61bbcd0d2860105c429cf73254c388e9118

bless UI tests

view details

Joshua Nelson

commit sha 96794d86f127dd409760765a64a36c07d9ed585f

fix test failure

view details

Joshua Nelson

commit sha 1ac4a461425b7a2e29aeb3c2b2cae944f8cbcc77

make the impl a little prettier

view details

Joshua Nelson

commit sha 8212584c9ecdbd91736fc7a480fe3b7409b73477

Bump release cutoff

view details

Joshua Nelson

commit sha 3477e67a92878adae48b975915cb7a5c21026cd4

Allow vec.rs to be over 3000 lines :(

view details

Tomasz Miąsko

commit sha 7fdc3efb7ad6e9f73110f8e2e01120cd022b5fc9

Add copy bound to atomic intrinsics

view details

Tomasz Miąsko

commit sha ec853b6b60e9cbe7b07458f9c33f0bb3f52e0776

Add copy bound to numeric intrinsics

view details

Wim Looman

commit sha 6fe7867ea6f5f912346d75459499fca88f6ae563

Add Result<Result<T, E>, E>::flatten -> Result<T, E>

view details

Vadim Petrochenkov

commit sha 733230530522d9f535b95d5bc304b11a94e2239c

Remove attribute `#[structural_match]` and any references to it

view details

Ana-Maria Mihalache

commit sha 50d2c3abd59af8cbed7e001b5b4e2f6a9a011112

Rename TyLayout to TyAndLayout.

view details

Stein Somers

commit sha e92d740b3586de0d0b476257b3539847f2db21e3

BTreeMap testing: introduce symbolic constants and refer to height consistently.

view details

bors

commit sha 8045865873f7cdbb864d0f66ef5ecb0d3ad847b2

Auto merge of #70370 - petrochenkov:nosmatch, r=Centril Remove attribute `#[structural_match]` and any references to it A small remaining part of https://github.com/rust-lang/rust/issues/63438.

view details

Mazdak Farrokhzad

commit sha c51fcb5f3847cc70de316db0b4c46f23fc8d0d35

Rollup merge of #68692 - jyn514:vec-from-array, r=LukasKalbertodt impl From<[T; N]> for Vec<T> Closes https://github.com/rust-lang/rust/issues/67963

view details

Mazdak Farrokhzad

commit sha 873bf46dc1677f24724cf2009703cf5c2a69a07a

Rollup merge of #70101 - tmiasko:intrinsics-copy, r=eddyb Add copy bound to atomic & numeric intrinsics

view details

Mazdak Farrokhzad

commit sha f31e56309a769dcef456ce419a81500801b247ef

Rollup merge of #70506 - ssomers:btreemap_testing_consts, r=RalfJung BTreeMap testing: introduce symbolic constants and use height consistently Doesn't change what or how much is tested, except for some exact integer types, just for convenience and because `node::CAPACITY` is a usize. r? @RalfJung

view details

bors

commit sha 8ab82b87af4f20b6c0a481e050517103d50263e9

Auto merge of #70525 - Centril:rollup-vj3esv3, r=Centril Rollup of 3 pull requests Successful merges: - #68692 (impl From<[T; N]> for Vec<T>) - #70101 (Add copy bound to atomic & numeric intrinsics) - #70506 (BTreeMap testing: introduce symbolic constants and use height consistently) Failed merges: r? @ghost

view details

push time in 3 days

pull request commentrust-lang/rust

Allocate some query results on an arena

@rustbot modify labels: +S-waiting-on-review, -S-waiting-on-author

cjgillot

comment created time in 4 days

push eventcjgillot/rust

Guillaume Gomez

commit sha c57de34e8feca218c0c696b621de87c078a2a0e0

Stabilize --crate-version option in rustdoc

view details

Arkadiusz Piekarz

commit sha b90edfcc9e1c4ff547b012c41ba2d55974794a7e

Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book

view details

Matt Cooper

commit sha ec7010a1a8ae59a7538e649218665497306eb8b1

establish immutable source for RUST_CONFIGURE_ARGS

view details

Matt Cooper

commit sha a942b3946521db46ba653693f5d6e477e39bbb3b

fix how we detect an unset variable

view details

Aaron Hill

commit sha ff65bffe2b143528ff90d5226b18ceca750d7c02

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.

view details

Tomasz Miąsko

commit sha 24dc2cb133d5b1cdd0680b91e4295039d704a610

librustc_codegen_llvm: Replace deprecated API usage

view details

Matt Cooper

commit sha 330233470e74f76731cc6f702302e9978d363285

fix a glaring typo

view details

TyPR124

commit sha ef2957de137fb8d6959310e5d8f2fa1d600d7d36

allowing getting &mut OsStr from OsString

view details

TyPR124

commit sha 21975a1aaa682a88266970459f6f67829774d6c4

add comments about safety

view details

TyPR124

commit sha cce8ee8bf7dbf461872d72c8b29302242bb11701

remove #[inline] for consistency in windows/os_str

view details

TyPR124

commit sha 16712ede6202067d0c1b2e23ad95b87e0afd7191

corrections on safety comments

view details

TyPR124

commit sha e4a65e83e7ce89ce7a015753a4b8d989416ae2a8

make safety comments more explicit

view details

Joshua M. Clulow

commit sha a83e6c7328f3fe8c78445fdb8088d7a7fa6f8897

use "gcc" instead of "cc" on *-sun-solaris systems when linking On illumos and Solaris systems, Rust will use GCC as the link editor. Rust does this by invoking "cc", which on many (Linux and perhaps BSD) systems is generally either GCC or a GCC-compatible front-end. On historical Solaris systems, "cc" was often the Sun Studio compiler. This history casts a long shadow, and as such, even most modern illumos-based operating systems tend to install GCC as "gcc", without also making it available as "cc". We should invoke GCC as "gcc" on such systems to ensure we get the right compiler driver.

view details

Ana-Maria Mihalache

commit sha 7d400199c2b1778ba7fd4748a5cb16d926a85d67

rustc_mir: remove extra space when pretty-printing MIR.

view details

Joshua M. Clulow

commit sha 1c191c304aa5629e31c93bec395fe4255ecca9ce

review feedback: add a comment describing the situation

view details

Dylan MacKenzie

commit sha 5b66f27ed34849a849bd93ce662bffeec2e56947

Use `const_eval_limit` instead of infinite loop detector

view details

Dylan MacKenzie

commit sha e15c48672850c0a0b7936df3dfa861bfa34db4bd

Remove infinite loop detector

view details

Dylan MacKenzie

commit sha 044dc6e8dd435eb9c3b6f1dc0c85d0a6e70dae82

Update const-eval tests

view details

Josh Stone

commit sha 71f5aed385b390dc53f8974092d5c7fd9a1ca634

Rename add_lib_path to add_dylib_path

view details

Josh Stone

commit sha 0536b8dcaafcfc0e51713a05eb0082a6e20725b1

Ensure LLVM is in the link path for rustc tools

view details

push time in 4 days

push eventcjgillot/rust

Aaron Hill

commit sha ff65bffe2b143528ff90d5226b18ceca750d7c02

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.

view details

TyPR124

commit sha ef2957de137fb8d6959310e5d8f2fa1d600d7d36

allowing getting &mut OsStr from OsString

view details

TyPR124

commit sha 21975a1aaa682a88266970459f6f67829774d6c4

add comments about safety

view details

TyPR124

commit sha cce8ee8bf7dbf461872d72c8b29302242bb11701

remove #[inline] for consistency in windows/os_str

view details

TyPR124

commit sha 16712ede6202067d0c1b2e23ad95b87e0afd7191

corrections on safety comments

view details

TyPR124

commit sha e4a65e83e7ce89ce7a015753a4b8d989416ae2a8

make safety comments more explicit

view details

Joshua M. Clulow

commit sha a83e6c7328f3fe8c78445fdb8088d7a7fa6f8897

use "gcc" instead of "cc" on *-sun-solaris systems when linking On illumos and Solaris systems, Rust will use GCC as the link editor. Rust does this by invoking "cc", which on many (Linux and perhaps BSD) systems is generally either GCC or a GCC-compatible front-end. On historical Solaris systems, "cc" was often the Sun Studio compiler. This history casts a long shadow, and as such, even most modern illumos-based operating systems tend to install GCC as "gcc", without also making it available as "cc". We should invoke GCC as "gcc" on such systems to ensure we get the right compiler driver.

view details

Joshua M. Clulow

commit sha 1c191c304aa5629e31c93bec395fe4255ecca9ce

review feedback: add a comment describing the situation

view details

TyPR124

commit sha 45416cd91a6bdc493ea62fb3f412713a0fd8e52e

add comment about maintaining OsStr encoding

view details

Mazdak Farrokhzad

commit sha f07802c0de9091a1f4c728c6b4ee1eca5a49b275

decouple rustc_hir::print from crate

view details

Mazdak Farrokhzad

commit sha b60d732efe924931f377e1f552ce6290b2ba8393

rustc_hir: nix rustc_errors dep

view details

Mazdak Farrokhzad

commit sha b3866a5c9315d2f882ab9f306df82c5fa66989bf

move rustc_hir::print -> rustc_hir_pretty

view details

Mazdak Farrokhzad

commit sha 92885e3a5bc855c24e302154635107c848f8b585

rustc_typeck: remove rustc_hir_pretty usage

view details

Mazdak Farrokhzad

commit sha f1701ddef1408ac55f57e332a92371247aae6253

rustc: remove rustc_hir_pretty dependency.

view details

Nicholas Nethercote

commit sha e1d1db790fb3b2892bbe644c2d7ce1265352b0fd

Remove `TargetOptions::embed_bitcode`. It's unused by any existing targets, and soon we'll be embedding full bitcode by default anyway.

view details

Ralf Jung

commit sha 4920a3371f5c02e61d3a0f5722ff7034a99938ff

better explain GLOBAL_KIND choice

view details

Ralf Jung

commit sha b5343d6baa6daeca974931f4148638393e80e216

rename def_id -> static_def_id

view details

Olivier Goffart

commit sha 4d77d010962dc91e225437cbd508e1b10a9192cf

Fix for #62691: use the largest niche across all fields fixes #62691

view details

Olivier Goffart

commit sha 81006f644da0963aa24aa86d1df9a69a859efcef

Optimize slightly by avoiding to call Niche::reserve when not needed

view details

Olivier Goffart

commit sha bb3e513a2cfdc01a35c5226c24b15200d635135e

Revert previous commit and make the optimisation in a nicer way

view details

push time in 4 days

delete branch cjgillot/rust

delete branch : split_query

delete time in 5 days

pull request commentrust-lang/rust

Move the query system to a dedicated crate

Oops, sorry.

cjgillot

comment created time in 6 days

push eventcjgillot/rust

Camille GILLOT

commit sha 2d7bbda966744f5eff12135bb523ac9c1d561cf0

Implement HashStable directly.

view details

push time in 6 days

Pull request review commentrust-lang/rust

Move the query system to a dedicated crate

 extern crate rustc_data_structures; pub mod dep_graph; pub mod query; -pub trait HashStableContext {-    fn debug_dep_tasks(&self) -> bool;-}+pub trait HashStableContext {}

It is used by the macro HashStable_Generic for WorkProductId. I can implement it by hand also.

cjgillot

comment created time in 6 days

push eventcjgillot/rust

Camille GILLOT

commit sha 4faf701d2028dd6031a3c772ae4b3e844d51c3c3

Remove the QueryGetter trait.

view details

Camille GILLOT

commit sha db5be1fe208d0cbdde750a0eb9f01bbd8afda1ee

Move QueryContext to the parent module.

view details

Camille GILLOT

commit sha 222d01025581174b4f6c1afacf673bc6eade3a6a

Cleanups.

view details

push time in 6 days

push eventcjgillot/rust

Arkadiusz Piekarz

commit sha b90edfcc9e1c4ff547b012c41ba2d55974794a7e

Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book

view details

Matt Cooper

commit sha ec7010a1a8ae59a7538e649218665497306eb8b1

establish immutable source for RUST_CONFIGURE_ARGS

view details

Matt Cooper

commit sha a942b3946521db46ba653693f5d6e477e39bbb3b

fix how we detect an unset variable

view details

Matt Cooper

commit sha 330233470e74f76731cc6f702302e9978d363285

fix a glaring typo

view details

Nicholas Nethercote

commit sha c54ce496635e0e013e14aa4be5d86c1247f9319a

Remove unused `ModuleConfig::emit_lto_bc` field.

view details

Guillaume Gomez

commit sha 4bf6734f6ffc38745adadd5a8f407630e234685b

clean up E0436 explanation

view details

Nikita Popov

commit sha 841558d3bdc9c9510b841c438838196378741021

Remove trailing newline from llvm-config output

view details

Nikita Popov

commit sha 7a14f9ed4fa60f4d8fc042fc678c80c14a850dc0

Fix LLVM version handling in compiletest Convert version string to integer before comparing. Otherwise we get into trouble with double digit versions ;)

view details

Nikita Popov

commit sha 66008eb9e4e46bb5c12a215e2abe2338617c2582

Adjust data layout in test

view details

Nikita Popov

commit sha a94fa896cc92d5e0678376cf5aa8b64af0899732

Fix timeTraceProfilerInitialize for LLVM 10

view details

Nikita Popov

commit sha 497f879b1e24c369362bcd821959ffabc50a8a31

Update CreateMemSet() usage for LLVM 10

view details

Matt Cooper

commit sha 6db4bb68d18fa371fd2eac1e97f2e2413315ef5d

compat with macOS's ancient Bash

view details

Eduard-Mihai Burtescu

commit sha d8448d2291d39cf5d0b0e814ada1b6e407fa0533

infer: export methods on `InferCtxt` instead of `ShallowResolver`.

view details

Eduard-Mihai Burtescu

commit sha 40f73e74d3d84a1f0ae89a933fa31078850a1b20

traits/fulfill: allow `stalled_on` to track `ty::Const::Infer(_)` (unused yet).

view details

Eduard-Mihai Burtescu

commit sha 78c178bcda3589affb0f4ffa248398cfca08c98f

traits/fulfill: add a couple FIXME comments about potential optimizations.

view details

Wesley Wiser

commit sha 4f405119e8305b26d0ee9e857887d2720b5c5c2a

Resolve worsened debug build codegen

view details

Wesley Wiser

commit sha 61d3be8de784e7ec2642c06daa5ff95f226d65d3

Use Reveal::All in MIR inliner

view details

Bastian Kauschke

commit sha 645fedd183a341b5ab5553d4d35ce9140276371f

correctly handle const params in type_of

view details

Nicholas Nethercote

commit sha d156bf658fd2478ee83d8e86e8c7c46093b74ec8

Remove some local variables. I find the code easier to read if the values in `config` are all used directly, rather than a mix of `config` values and local variables. It will also faciliate some of the following commits. Also, use `config.bitcode_needed()` in one place.

view details

Nicholas Nethercote

commit sha 47c8f3f56babf7830c481cb679f81466c351db7b

Combine `ModuleConfig::embed_bitcode{,_marker}`. Because the `(true, true)` combination isn't valid.

view details

push time in 6 days

pull request commentrust-lang/rust

Move the query system to a dedicated crate

Rebased.

cjgillot

comment created time in 7 days

push eventcjgillot/rust

Bastian Kauschke

commit sha 513ea6405b121e589dafad738b600cab5baa2ab6

add missing visit_consts

view details

Bastian Kauschke

commit sha bda976d42db4abc496bb8673246b34e667b48e6f

add missing const super folds

view details

Bastian Kauschke

commit sha d7ecc8c9bc2727579b22f155f1b7da42b6eee8e3

query normalize_generic_arg_after_erasing_regions

view details

bishtpawan

commit sha 03bb3bde90a52cfc1d64c15263013d97a3d7aad2

Add long error explanation for E0710 #61137

view details

bishtpawan

commit sha cd9921ed82759d9e49e337f67d691c2d681f4e16

Refactor changes

view details

bishtpawan

commit sha 10226daa4ee7a2bd61a1d0dd86581990c782278f

Update tools_lints

view details

Bastian Kauschke

commit sha 6c4d5d989684da657e51629c01ca0667a4a90937

improve normalize cycle error

view details

bishtpawan

commit sha 150916047beaae94096d2fdc95b88fbdb837f242

Add explanation for inner attribute

view details

bishtpawan

commit sha b31707e683ba90548d4830929ae721bc4dbaf13e

Remove unknown lint from deny attribute

view details

Bastian Kauschke

commit sha 11763d48cf3104656f1e6c902f1d27d7cd16418f

update mir opt test

view details

Josh Stone

commit sha 212e6ce7bf67d6475ec4fdfebfcf9f99704b2aa2

Implement Fuse with Option The former `done` flag was roughly similar to an `Option` tag, but left the possibity of misuse. By using a real `Option`, we can set `None` when the iterator is exhausted, removing any way to call it again. We also allow niche layout this way, so the `Fuse` may be smaller. The `FusedIterator` specialization does want to ignore the possibility of exhaustion though, so it uses `unsafe { intrinsics::unreachable() }` to optimize that branch away. The entire `Fuse` implementation is now isolated in its own module to contain that unsafety.

view details

Youngsuk Kim

commit sha bedc3587cee29d63d78f943dd332b1d01b16ee6d

fix type name typo in doc comments InterpCtx => InterpCx (rustc_mir::interpret::InterpCx)

view details

bishtpawan

commit sha 5c65568f0b0b5f97fc02397c974d206bc3ff0f9d

update tool_lints

view details

Mazdak Farrokhzad

commit sha 58fee523cfe1e242cbf8776bb8513fb8325bc0ab

is_union() instead of string comparsion

view details

Mazdak Farrokhzad

commit sha bd156846fa84fde77cc801ea3b1f4d5750db94a4

improve non-exhaustive struct pat error

view details

Mazdak Farrokhzad

commit sha bd3482632e71681aade51ac1e97730eb907c7249

simplify check_pat_tuple_struct

view details

Mazdak Farrokhzad

commit sha c70aa344e40a2e034d3deffb18e74d1198ea69de

borrowck: prefer "value" over "`_`".

view details

Ralf Jung

commit sha 5be304b0b411af49e4f0e7196a35c034f430cc85

miri: simplify shift operator overflow checking

view details

Ralf Jung

commit sha 1ddbdc62692f40017949e8ba0acca4b5f61f6027

use checked casts and arithmetic in Miri engine

view details

Ralf Jung

commit sha 9de600892da3c86fb92c1dfde455d39657835739

make bit_width return u64, consistently with other sizes in the compiler

view details

push time in 7 days

pull request commentrust-lang/rust

Move the query system to a dedicated crate

Rebased.

cjgillot

comment created time in 8 days

push eventcjgillot/rust

Nicholas Nethercote

commit sha 8818eace09b05f07afcfe03d838a214e2afa47b4

Add a comment to `parse_bool`. It's behaviour can be surprising.

view details

Nicholas Nethercote

commit sha f19ab9ad9db52f8720a44e5ddb8f4fb8db70a3ec

Remove `-Z incremental-queries`. Because it uses `parse_bool` and defaults to true, it is actually impossible to set it to false. And it hasn't been experimental for some time now.

view details

Nicholas Nethercote

commit sha fa432597ea463f3c9cae4a8116154f9dc0114858

Invert `-Z generate-arange-section`. Because it uses `parse_bool` and defaults to true, it is actually impossible to set it to false. Inverting its sense to `-Z no-generate-arange-section` makes it usable.

view details

Nicholas Nethercote

commit sha a3782671cf1e190ffa470128a53329177b2c9a2f

Remove several dead `-Z` options.

view details

Nicholas Nethercote

commit sha 46c8a2c26eee8148e47237e90efde558d1374580

Remove `-Z incremental`. `-C incremental` was introduced over two years ago. `-Z incremental` was kept for transitioning, but it's been long enough now that it should be ok to remove it.

view details

bors

commit sha 3c1d9adb3cb3aad4233075fa296fc3c70b42cdb8

Auto merge of #70297 - nnethercote:clean-up-debugging-options, r=michaelwoerister Clean up debugging options I found various sub-optimal things when I was looking at option handling.

view details

Camille GILLOT

commit sha f9f2ca5772abf652ebdcb5169e6ba1c3889160b7

Make QueryConfig argument a type.

view details

Camille GILLOT

commit sha 76da1dcc30fc7a63375c2ab52d11198c35412b56

Make QueryAccessor argument a type.

view details

Camille GILLOT

commit sha 5b3991f2a8f9c8cbc26cb73abe4bca3492cdde3c

Make QueryDescription parameter a type.

view details

Camille GILLOT

commit sha 6ab25f1984c6d051b0bee4130dc9da35aef9b04a

Make QueryCache generic on the context.

view details

Camille GILLOT

commit sha 4f25dc1103bf7f9cbc4b47cca939de4396ef1af0

Make QueryContext a subtrait of DepContext.

view details

Camille GILLOT

commit sha 0e4bbcbc8a38248a57e9479705ff3345c3581473

Generalise QueryJobId.

view details

Camille GILLOT

commit sha a77f503088fbb4758a87b6f4822116f855d298ef

Decouple from DepKind.

view details

Camille GILLOT

commit sha 9c59560db2bc487662ecf9769f3a06d908246240

Generalise QueryLatch.

view details

Camille GILLOT

commit sha 29ded2ac0060990fcef243deb1f653ef6fe3aa3a

Parametrise by try_collect_active_jobs.

view details

Camille GILLOT

commit sha 3eca535bc12ff4cb237468e35847c764a4d30d70

Move HashStable bound to the trait definition.

view details

Camille GILLOT

commit sha 647f5e88ab8db3d4bbc5d7bbcad16566cb0b368a

Generalise try_get_cached.

view details

Camille GILLOT

commit sha 72affc4920877bfdf2607166c45320e9237f9ce6

Generalise JobOwner::try_start.

view details

Camille GILLOT

commit sha a266645f77bb60ba2d7e6c9b4397e541e27faf86

Generalise Query starting.

view details

Camille GILLOT

commit sha c1134322832c2dcf095d26883ef9645e96c62cf8

Make get_query into an extension trait.

view details

push time in 8 days

pull request commentrust-lang/rust

Move the query system to a dedicated crate

Rebased with review applied.

cjgillot

comment created time in 8 days

push eventcjgillot/rust

Arkadiusz Piekarz

commit sha b90edfcc9e1c4ff547b012c41ba2d55974794a7e

Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book

view details

Matt Cooper

commit sha ec7010a1a8ae59a7538e649218665497306eb8b1

establish immutable source for RUST_CONFIGURE_ARGS

view details

Matt Cooper

commit sha a942b3946521db46ba653693f5d6e477e39bbb3b

fix how we detect an unset variable

view details

Matt Cooper

commit sha 330233470e74f76731cc6f702302e9978d363285

fix a glaring typo

view details

Nicholas Nethercote

commit sha c54ce496635e0e013e14aa4be5d86c1247f9319a

Remove unused `ModuleConfig::emit_lto_bc` field.

view details

Guillaume Gomez

commit sha 4bf6734f6ffc38745adadd5a8f407630e234685b

clean up E0436 explanation

view details

Nikita Popov

commit sha 841558d3bdc9c9510b841c438838196378741021

Remove trailing newline from llvm-config output

view details

Nikita Popov

commit sha 7a14f9ed4fa60f4d8fc042fc678c80c14a850dc0

Fix LLVM version handling in compiletest Convert version string to integer before comparing. Otherwise we get into trouble with double digit versions ;)

view details

Nikita Popov

commit sha 66008eb9e4e46bb5c12a215e2abe2338617c2582

Adjust data layout in test

view details

Nikita Popov

commit sha a94fa896cc92d5e0678376cf5aa8b64af0899732

Fix timeTraceProfilerInitialize for LLVM 10

view details

Nikita Popov

commit sha 497f879b1e24c369362bcd821959ffabc50a8a31

Update CreateMemSet() usage for LLVM 10

view details

Matt Cooper

commit sha 6db4bb68d18fa371fd2eac1e97f2e2413315ef5d

compat with macOS's ancient Bash

view details

Eduard-Mihai Burtescu

commit sha d8448d2291d39cf5d0b0e814ada1b6e407fa0533

infer: export methods on `InferCtxt` instead of `ShallowResolver`.

view details

Eduard-Mihai Burtescu

commit sha 40f73e74d3d84a1f0ae89a933fa31078850a1b20

traits/fulfill: allow `stalled_on` to track `ty::Const::Infer(_)` (unused yet).

view details

Eduard-Mihai Burtescu

commit sha 78c178bcda3589affb0f4ffa248398cfca08c98f

traits/fulfill: add a couple FIXME comments about potential optimizations.

view details

Wesley Wiser

commit sha 4f405119e8305b26d0ee9e857887d2720b5c5c2a

Resolve worsened debug build codegen

view details

Wesley Wiser

commit sha 61d3be8de784e7ec2642c06daa5ff95f226d65d3

Use Reveal::All in MIR inliner

view details

Bastian Kauschke

commit sha 645fedd183a341b5ab5553d4d35ce9140276371f

correctly handle const params in type_of

view details

Nicholas Nethercote

commit sha d156bf658fd2478ee83d8e86e8c7c46093b74ec8

Remove some local variables. I find the code easier to read if the values in `config` are all used directly, rather than a mix of `config` values and local variables. It will also faciliate some of the following commits. Also, use `config.bitcode_needed()` in one place.

view details

Nicholas Nethercote

commit sha 47c8f3f56babf7830c481cb679f81466c351db7b

Combine `ModuleConfig::embed_bitcode{,_marker}`. Because the `(true, true)` combination isn't valid.

view details

push time in 8 days

push eventcjgillot/rust

Camille GILLOT

commit sha eef6034dd45e0bf61dc7a364c1a408d95adac2fe

Rustfmt.

view details

push time in 8 days

push eventcjgillot/rust

Lukas Lueg

commit sha becebf3106407b892f25807473e23d6e8f116a1e

Ammend Rc/Arc::from_raw() docs regarding unsafety Constructing an Rc/Arc is unsafe even if the wrapped `T` is never dereferenced.

view details

Lukas Lueg

commit sha b4c96a9199f13c5c1c2afa6258d2b9206c151d9f

Refine [Arc/Rc]::from_raw() docs

view details

Waffle

commit sha a8340413fe8aa29864ce05875cc63f29af305e31

Remove `finished` flag from `MapWhile`

view details

Lukas Lueg

commit sha 586c7e3907738938db7a6730fd70d7125f5925fa

Make rc::RcBox and sync::ArcInner repr(C) Future-proof these types in case rustc reorders the inner fields. As per discussion in PR #68099.

view details

Waffle

commit sha 605bc1b19b45534b0860fad4b1d44678bc8b34e9

adjuste doc of `map_while` Fix doc of `Iterator::map_while` so it would be clearer that it isn't fused.

view details

Guillaume Gomez

commit sha c57de34e8feca218c0c696b621de87c078a2a0e0

Stabilize --crate-version option in rustdoc

view details

Ralf Jung

commit sha 22ee27b266814485fe9ab7da4b539348cb994045

update backtrace crate

view details

Markus Westerlind

commit sha c6f1215d925561021eec296d9e88aa0305d0a18d

perf(dep_graph): Avoid allocating a set on when the number reads are small `reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).

view details

Markus Westerlind

commit sha 4168c25b0f8aadcfe38c8bdae7cc51c22c2f45d1

refactor: Add an alias for the SmallVec in dep_graph

view details

Ralf Jung

commit sha 9552d2e4ab84611e4dd354631cceb9555c956c08

bump backtrace-sys

view details

Tomasz Miąsko

commit sha 24dc2cb133d5b1cdd0680b91e4295039d704a610

librustc_codegen_llvm: Replace deprecated API usage

view details

Ana-Maria Mihalache

commit sha 7d400199c2b1778ba7fd4748a5cb16d926a85d67

rustc_mir: remove extra space when pretty-printing MIR.

view details

Dylan MacKenzie

commit sha 5b66f27ed34849a849bd93ce662bffeec2e56947

Use `const_eval_limit` instead of infinite loop detector

view details

Dylan MacKenzie

commit sha e15c48672850c0a0b7936df3dfa861bfa34db4bd

Remove infinite loop detector

view details

Dylan MacKenzie

commit sha 044dc6e8dd435eb9c3b6f1dc0c85d0a6e70dae82

Update const-eval tests

view details

Josh Stone

commit sha 71f5aed385b390dc53f8974092d5c7fd9a1ca634

Rename add_lib_path to add_dylib_path

view details

Josh Stone

commit sha 0536b8dcaafcfc0e51713a05eb0082a6e20725b1

Ensure LLVM is in the link path for rustc tools

view details

Josh Stone

commit sha e1a6a306ad4f7bf6fe771b2a9d3362a991eb5ce1

Revert "Fix missing libLLVM.so in stage0 sysroot." This reverts commit 8b9c5396ca574fad9cc7b51d16c8c96e0ae74632.

view details

flip1995

commit sha 2b3168ce5f2be26379d16683ec081d4619f66454

Update Clippy

view details

Alex Crichton

commit sha d1a4a57777331143e5a6de1e8b06f26b27c8eb61

Update the bundled wasi-libc with libstd Brings in WebAssembly/wasi-libc#184 which can help standalone programs with environment variables!

view details

push time in 8 days

push eventcjgillot/rust

Camille GILLOT

commit sha 55173c258c60aad7bd8840bdf2871be99cbbb676

Rename read_query_job -> current_query_job and simplify it.

view details

Camille GILLOT

commit sha 4328c0ade53171fd6a249d429978f33c3c8fd951

Don't allow access to the Session.

view details

push time in 8 days

pull request commentrust-lang/rust

Move the query system to a dedicated crate

Rebased TLS commit removed and review applied.

cjgillot

comment created time in 8 days

push eventcjgillot/rust

Camille GILLOT

commit sha 1a7790ee3cc50985862b4272a3a59fc3efbb9365

Make QueryConfig argument a type.

view details

Camille GILLOT

commit sha bdb2afb02b96795db26671d625754d3cba9d5ca3

Make QueryAccessor argument a type.

view details

Camille GILLOT

commit sha ed7092ce8b70256032c345593e09fc1417c5c5de

Make QueryDescription parameter a type.

view details

Camille GILLOT

commit sha 23d21e3e41254fdbefe9e94e6770586cfa49017d

Make QueryCache generic on the context.

view details

Camille GILLOT

commit sha 7c55b3aa94871ca174e828a6468f71d5e5389c8a

Make QueryContext a subtrait of DepContext.

view details

Camille GILLOT

commit sha a748fc8d4593a374e6c4aed8b851b68f66b60e8e

Generalise QueryJobId.

view details

Camille GILLOT

commit sha b7721c80ac6b67c0fc67a1efd23e030c68d5daf8

Decouple from DepKind.

view details

Camille GILLOT

commit sha 7303a14ac87278a2576739890c6499974c25c208

Generalise QueryLatch.

view details

Camille GILLOT

commit sha 156a418e50446f6d26fa334eb5f54f9eb4d7ac69

Parametrise by try_collect_active_jobs.

view details

Camille GILLOT

commit sha 120842a7ef2332c3802f77e89449d2e574b9e510

Move HashStable bound to the trait definition.

view details

Camille GILLOT

commit sha d42ffa92094b15e8287d1c8f673679724f939d2d

Generalise try_get_cached.

view details

Camille GILLOT

commit sha 0cb118b1d1d584522bf8daf424936b30f217335e

Generalise JobOwner::try_start.

view details

Camille GILLOT

commit sha 143b19bc7d733c658363c4609a4c827476e540f0

Generalise Query starting.

view details

Camille GILLOT

commit sha 13b8cbc4f262db00abbeade90a781f8be40da0cb

Make get_query into an extension trait.

view details

Camille GILLOT

commit sha c8704843b8867fde97dd122c89e02008f5bad7dc

Move query system to librustc_query_system.

view details

Camille GILLOT

commit sha 3d8ab39704c2fbdef039e0368e8b392eb9392944

Make librustc_query_system compile.

view details

Camille GILLOT

commit sha 355db3378701945524fd6574f94ca1b1221fc8d9

Make librustc compile.

view details

Camille GILLOT

commit sha 0e5fb4e43022d01831ccdb3b0708122c1598bb34

Rustfmt.

view details

Camille GILLOT

commit sha 72e173be87c76f007d8a68c23b989808c9c8389a

Unify key types in get_lookup.

view details

Camille GILLOT

commit sha bb8c556f894362e3db052872c2397599fb9854dd

Access QueryStateShard directly.

view details

push time in 8 days

Pull request review commentrust-lang/rust

Move the query system to a dedicated crate

 use std::borrow::Cow; use std::fmt::Debug; use std::hash::Hash; -// Query configuration and description traits.--// FIXME(eddyb) false positive, the lifetime parameter is used for `Key`/`Value`.-#[allow(unused_lifetimes)]-pub trait QueryConfig<'tcx> {+pub trait QueryConfig<CTX> {

No, the Key and Value types may need to access the 'tcx lifetime from CTX = TyCtxt<'tcx>. I should put a comment back.

cjgillot

comment created time in 8 days

pull request commentrust-lang/rust

Move the query system to a dedicated crate

Rebased. Comments from #67761 and #69910 have been applied.

cjgillot

comment created time in 9 days

push eventcjgillot/rust

Camille GILLOT

commit sha 2e891b028936353ab1ff4cab41e2cb7d2bf1a707

Make QueryConfig argument a type.

view details

Camille GILLOT

commit sha 6ae40a3a389f9c1ba52763a698866067773cae49

Make QueryAccessor argument a type.

view details

Camille GILLOT

commit sha 030f1311939dd0fd45e5af0f1dd9f1a3281ef475

Make QueryDescription parameter a type.

view details

Camille GILLOT

commit sha 6ea2ded53fd109487325bff6fe89f767088ea75a

Make QueryCache generic on the context.

view details

Camille GILLOT

commit sha 772ce2e819b39a27eea055e91f74e8fede6a7f62

Make QueryContext a subtrait of DepContext.

view details

Camille GILLOT

commit sha df1565e8abf8410abc9ad1b74b60b7d07e8dd8dd

Generalise QueryJobId.

view details

Camille GILLOT

commit sha 798c85fa6327aab6fb2000068370fcc557a3a33b

Decouple from DepKind.

view details

Camille GILLOT

commit sha fbb0bef826b698bedd76e3847d7f859ca6867895

Generalise QueryLatch.

view details

Camille GILLOT

commit sha 8ac160768d3bf087883ed28575b1b82bf2dfcb90

Parametrise by try_collect_active_jobs.

view details

Camille GILLOT

commit sha 6ac6e4283566f9f9f6b24a03226e82984febc1ea

Generalise QueryJobId.

view details

Camille GILLOT

commit sha a1f2f383c9225de59601024b784410788c7223e4

Generalise more of job.rs

view details

Camille GILLOT

commit sha 60825a26f5f4f715a22278a5cc402bf30bf2995c

Move HashStable bound to the trait definition.

view details

Camille GILLOT

commit sha cc0a23d65db869f0180806f52e7103dc5f2f3552

Generalise try_get_cached.

view details

Camille GILLOT

commit sha 4abd4279c30bf65f755511ba65e0b3af6286a553

Generalise JobOwner::try_start.

view details

Camille GILLOT

commit sha 2363ee37b3bf8d6cc722d005f4dab7b2976fe2da

Generalise Query starting.

view details

Camille GILLOT

commit sha ed43cd7dd25497e8858ba138b069046055f462ed

Make get_query into an extension trait.

view details

Camille GILLOT

commit sha 5fdf2f79cda5547fa9382195a86798ae4b1542db

Move query system to librustc_query_system.

view details

Camille GILLOT

commit sha 2f3b487d75c32d564ef14606e11657d895517c43

Make librustc_query_system compile.

view details

Camille GILLOT

commit sha 80bc3245b4d5f9f0da9e750e13b4b061de7c6298

Make librustc compile.

view details

Camille GILLOT

commit sha 460a711260243a95f43ddcc83143025fa7203598

Hardcode QueryJobId in TlsContext.

view details

push time in 9 days

push eventcjgillot/rust

Lukas Lueg

commit sha becebf3106407b892f25807473e23d6e8f116a1e

Ammend Rc/Arc::from_raw() docs regarding unsafety Constructing an Rc/Arc is unsafe even if the wrapped `T` is never dereferenced.

view details

Lukas Lueg

commit sha b4c96a9199f13c5c1c2afa6258d2b9206c151d9f

Refine [Arc/Rc]::from_raw() docs

view details

Waffle

commit sha a8340413fe8aa29864ce05875cc63f29af305e31

Remove `finished` flag from `MapWhile`

view details

Lukas Lueg

commit sha 586c7e3907738938db7a6730fd70d7125f5925fa

Make rc::RcBox and sync::ArcInner repr(C) Future-proof these types in case rustc reorders the inner fields. As per discussion in PR #68099.

view details

Waffle

commit sha 605bc1b19b45534b0860fad4b1d44678bc8b34e9

adjuste doc of `map_while` Fix doc of `Iterator::map_while` so it would be clearer that it isn't fused.

view details

Guillaume Gomez

commit sha c57de34e8feca218c0c696b621de87c078a2a0e0

Stabilize --crate-version option in rustdoc

view details

Ralf Jung

commit sha 22ee27b266814485fe9ab7da4b539348cb994045

update backtrace crate

view details

Markus Westerlind

commit sha c6f1215d925561021eec296d9e88aa0305d0a18d

perf(dep_graph): Avoid allocating a set on when the number reads are small `reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).

view details

Markus Westerlind

commit sha 4168c25b0f8aadcfe38c8bdae7cc51c22c2f45d1

refactor: Add an alias for the SmallVec in dep_graph

view details

Ralf Jung

commit sha 9552d2e4ab84611e4dd354631cceb9555c956c08

bump backtrace-sys

view details

Oliver Scherer

commit sha cdc730457e9030feaf8c4376a668a9ef61c7f189

Compute the correct layout for variants of uninhabited enums and readd a long lost assertion This reverts part of commit 9712fa405944cb8d5416556ac4b1f26365a10658.

view details

Oliver Scherer

commit sha ec88ffa38cee51fa7290aa6c99d928ffe346ca6c

Comment nits Co-Authored-By: Ralf Jung <post@ralfj.de>

view details

Oliver Scherer

commit sha 74608c7f206171cb72c020a03800b2d9035a35fa

Rustfmt and adjust capitalization

view details

Andreas Jonson

commit sha afa940b900c2003228ea7f5d9f8d78906d84c135

Update the mir inline costs handle that when mir is lowered to llvm-ir more code is generated. landingpads generates 10 llvm-ir instructions and resume 9 llvm-ir instructions.

view details

Tomasz Miąsko

commit sha 24dc2cb133d5b1cdd0680b91e4295039d704a610

librustc_codegen_llvm: Replace deprecated API usage

view details

David Wood

commit sha bee151308d5c5090627772c04e17f783aa53451a

codegen/mir: support polymorphic `InstanceDef`s This commit modifies the use of `subst_and_normalize_erasing_regions` on parts of the MIR bodies returned from `instance_mir`, so that `InstanceDef::CloneShim` and `InstanceDef::DropGlue` (where there is a type) do not perform substitutions. This avoids double substitutions and enables polymorphic `InstanceDef`s. Signed-off-by: David Wood <david@davidtw.co>

view details

Ralf Jung

commit sha 058ff728dc2a16b44c8abad2581287743c828270

debug-assert ptr sanity in ptr::write

view details

Ralf Jung

commit sha 59350e4ae25ce9b82ca8b088a63b58c32e22449c

increase slack for stack size test

view details

Ralf Jung

commit sha 139a8c34bc40d3d30c31ffb4c0908b3511237ee7

fix a codegen test

view details

DutchGhost

commit sha 57b1e7a428c16a1b692b88cc25ce8b09d8ea503b

Remove the call that makes miri fail

view details

push time in 9 days

delete branch cjgillot/rust

delete branch : split_graph

delete time in 9 days

pull request commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

Rebased.

cjgillot

comment created time in 9 days

push eventcjgillot/rust

Guillaume Gomez

commit sha c57de34e8feca218c0c696b621de87c078a2a0e0

Stabilize --crate-version option in rustdoc

view details

Tomasz Miąsko

commit sha 24dc2cb133d5b1cdd0680b91e4295039d704a610

librustc_codegen_llvm: Replace deprecated API usage

view details

Ana-Maria Mihalache

commit sha 7d400199c2b1778ba7fd4748a5cb16d926a85d67

rustc_mir: remove extra space when pretty-printing MIR.

view details

Josh Stone

commit sha 71f5aed385b390dc53f8974092d5c7fd9a1ca634

Rename add_lib_path to add_dylib_path

view details

Josh Stone

commit sha 0536b8dcaafcfc0e51713a05eb0082a6e20725b1

Ensure LLVM is in the link path for rustc tools

view details

Josh Stone

commit sha e1a6a306ad4f7bf6fe771b2a9d3362a991eb5ce1

Revert "Fix missing libLLVM.so in stage0 sysroot." This reverts commit 8b9c5396ca574fad9cc7b51d16c8c96e0ae74632.

view details

Alex Crichton

commit sha d1a4a57777331143e5a6de1e8b06f26b27c8eb61

Update the bundled wasi-libc with libstd Brings in WebAssembly/wasi-libc#184 which can help standalone programs with environment variables!

view details

Josh Stone

commit sha 3a2a4429a288031e7810e84b35ff13b8dd4608a4

Avoid llvm-config in more situations, like bootstrap test runs

view details

Ryan Levick

commit sha f1188f7afe28ae1450faf196da56845af116bf3d

Add test for issue #53275

view details

Felix S. Klock II

commit sha ebf27fac8185ea7a779f4d21ea506377b157fc61

Revised span-to-lines conversion to produce an empty vec on DUMMY_SP. This required revising some of the client code to stop relying on the returned set of lines being non-empty.

view details

Eduard-Mihai Burtescu

commit sha 10f08abd2e27785496ddfe92a9e6a4f9cd18443d

rustc: keep upvars tupled in {Closure,Generator}Substs.

view details

Eduard-Mihai Burtescu

commit sha 3fd397b096b360fb46076b757e82e79d6db328de

rustc: make {Closure,Generator}Substs::split as cheap as possible.

view details

Eduard-Mihai Burtescu

commit sha d9a15ccd976bc8a4a79c99fbf68892c2bbdfffec

rustc_typeck: move comment about inference variables to where it makes sense.

view details

Alex Tokarev

commit sha da5d03d09e048771aeec42944bfbef19f96a34cd

Add missing -Z unstable-options flag

view details

Esteban Küber

commit sha 52fbd3e5690bfe008b343bdc35c78390239b64cc

Increase verbosity when suggesting subtle code changes

view details

Esteban Küber

commit sha 94bbd46682fdf37aae7fe661e9f925649d439c36

Add span label to primary error span

view details

Ralf Jung

commit sha 29df39ba8cc8a3591cf5c9c098f37243b783ca3e

remove UbExperimental variant

view details

Esteban Küber

commit sha 854b78fe22af2ed010cc4367c3456eccf427b6dc

Normalize wording of privacy access labels

view details

Esteban Küber

commit sha 9175940c9277d9331c964e27fd32ef1ae315b7ba

Use more targetted span for error label

view details

Eduard-Mihai Burtescu

commit sha 70239484001f91fcf847a0df6aff79d94991952a

rustc_codegen_llvm: don't generate "lexical block" scopes for -Cdebuginfo=1.

view details

push time in 9 days

pull request commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

Updated and rebased.

cjgillot

comment created time in 10 days

push eventcjgillot/rust

hatoo

commit sha 61ef72fe4951148e3987af21ee76ace6745c8a62

Use getentropy(2) on macos

view details

LeSeulArtichaut

commit sha e991df82faf3b2807e2baab166ec0d589b38b31f

Only display definition on typo

view details

LeSeulArtichaut

commit sha cb7a2c16aa086f89b0cc5ceb29dd46988ff21fc3

Bless tests

view details

Vadim Petrochenkov

commit sha e543e3187c7d82149819c0044515336524086078

resolve: Avoid "self-confirming" import resolutions in one more case

view details

Mazdak Farrokhzad

commit sha d18ed205c9032003e2f3b3227a40bdc8f8763c9b

parse: nix unused `root_module_name`.

view details

Mazdak Farrokhzad

commit sha eaa0ae503fd952c7296d8787d70460fe96ccf9ee

parse: nix new_sub_parser_from_file

view details

Bastian Kauschke

commit sha 0c5c3bbdabc60bd7dd7491dfcf6befb8202d7521

handle unevaluated consts after monomophize

view details

Bastian Kauschke

commit sha ed4885359a42354fee8229760c845bf534266427

simplify eval_mir_constant

view details

Bastian Kauschke

commit sha 853377817d18140745df9097d6eb0663c61f4c0b

rename tests

view details

Matthias Krüger

commit sha 263cbd1bbe2d89880c04b69a003f98ca12ba4970

remove redundant closures (clippy::redundant_closure)

view details

Guillaume Gomez

commit sha fa5b72716721f34fc9b37be9203b92190959939b

Clean up E0449 explanation

view details

Ralf Jung

commit sha 2ee2157e29b9cab1fc0ebd89246ba27f48fce3d9

miri engine: turn error sanity checks into assertions

view details

Adam Perry

commit sha 97da6dae41dc7fe5597c2cd858b1ac86548cec16

Allow #[track_caller] in traits. The codegen implementation already works for this, so we're: * propagating track_caller attr from trait def to impl * relaxing errors * adding tests Approved in a recent lang team meeting: https://github.com/rust-lang/lang-team/blob/master/minutes/2020-01-09.md

view details

Adam Perry

commit sha 69bd46a6a18a5b44972ccebb96de1294f4b760b1

Remove special-casing from TyCtxt::impl_of_method. We can do this now that opt_associated_item doesn't have any panicking paths.

view details

Mazdak Farrokhzad

commit sha 5ed9d7ebb662ad993e9f2e8c70575fb27cd45041

Rollup merge of #69251 - anp:track-caller-in-traits, r=eddyb #[track_caller] in traits Per https://github.com/rust-lang/rust/issues/47809#issuecomment-572791760, this allows the `#[track_caller]` attribute on trait methods. Includes tests for `#[track_caller]` with: * "regular" trait impls * default trait impls * "blanket-tracked" trait impls, where the annotation is in the trait definition and is inherited by "regular" impls of the trait

view details

Mazdak Farrokhzad

commit sha a2b469c4ccf3777294422c350c10012ca2e22e25

Rollup merge of #69880 - RalfJung:miri-assert-error-sanity, r=oli-obk miri engine: turn error sanity checks into assertions We had these as debug assertions so far to make sure our test suite is clean, but really these are conditions that should never arise and also @eddyb told me to turn non-performance-critical debug assertions into full assertions so here we go. ;) I propose that we do a check-only crater run to make sure this does not actually happen in practice. r? @oli-obk

view details

Mazdak Farrokhzad

commit sha 675bdf6d6d7b6441598961052df6466efbb4bee4

Rollup merge of #70207 - hatoo:macos-getentropy, r=dtolnay Use getentropy(2) on macos resolves #70179

view details

Mazdak Farrokhzad

commit sha 11f5309858db86d0419e53fbb5eb622c87664e3b

Rollup merge of #70227 - LeSeulArtichaut:typo-def, r=Centril Only display definition when suggesting a typo Closes #70206 r? @Centril

view details

Mazdak Farrokhzad

commit sha 08dfd1344c47c5a7e3abbee10db6d0bcfde6d107

Rollup merge of #70236 - petrochenkov:globimpice, r=ecstatic-morse resolve: Avoid "self-confirming" import resolutions in one more case So the idea behind "blacklisted bindings" is that we must ignore some name definitions during resolution because otherwise they cause infinite cycles. E.g. import ```rust use my_crate; ``` would refer to itself (on 2018 edition) without this blacklisting, because `use my_crate;` is the first name in scope when we are resolving `my_crate` here. In this PR we are doing this blacklisting for the case ```rust use same::same; ``` , namely blacklisting the second `same` when resolving the first `same`. This was previously forgotten. Fixes https://github.com/rust-lang/rust/issues/62767

view details

Mazdak Farrokhzad

commit sha 8dda61792bc662073bee1cea6002705b1b5e0bc5

Rollup merge of #70248 - Centril:unroot, r=petrochenkov parser: simplify & remove unused field r? @petrochenkov

view details

push time in 10 days

delete branch cjgillot/rust

delete branch : split_graph_safe

delete time in 10 days

delete branch cjgillot/rust

delete branch : split_graph_2

delete time in 10 days

push eventcjgillot/rust

Lukas Lueg

commit sha becebf3106407b892f25807473e23d6e8f116a1e

Ammend Rc/Arc::from_raw() docs regarding unsafety Constructing an Rc/Arc is unsafe even if the wrapped `T` is never dereferenced.

view details

Lukas Lueg

commit sha b4c96a9199f13c5c1c2afa6258d2b9206c151d9f

Refine [Arc/Rc]::from_raw() docs

view details

Waffle

commit sha a8340413fe8aa29864ce05875cc63f29af305e31

Remove `finished` flag from `MapWhile`

view details

Lukas Lueg

commit sha 586c7e3907738938db7a6730fd70d7125f5925fa

Make rc::RcBox and sync::ArcInner repr(C) Future-proof these types in case rustc reorders the inner fields. As per discussion in PR #68099.

view details

Waffle

commit sha 605bc1b19b45534b0860fad4b1d44678bc8b34e9

adjuste doc of `map_while` Fix doc of `Iterator::map_while` so it would be clearer that it isn't fused.

view details

Ralf Jung

commit sha 22ee27b266814485fe9ab7da4b539348cb994045

update backtrace crate

view details

Markus Westerlind

commit sha c6f1215d925561021eec296d9e88aa0305d0a18d

perf(dep_graph): Avoid allocating a set on when the number reads are small `reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).

view details

Markus Westerlind

commit sha 4168c25b0f8aadcfe38c8bdae7cc51c22c2f45d1

refactor: Add an alias for the SmallVec in dep_graph

view details

Ralf Jung

commit sha 9552d2e4ab84611e4dd354631cceb9555c956c08

bump backtrace-sys

view details

Camille GILLOT

commit sha 0bf5cae489e828a6678cab5144e638ae909d7b93

Remove __query_compute module.

view details

Camille GILLOT

commit sha fc82376bc437d4494832b171d924e2f116174578

Make QueryAccessor::dep_kind an associated const.

view details

Camille GILLOT

commit sha cf238fd057651371731fde47a2ebf251bf37cfb5

Inline QueryAccessor::query.

view details

Camille GILLOT

commit sha 1249032aabe3a0a80c0a852ef803702d7fb70d21

Move impl of Queries with its definition.

view details

Camille GILLOT

commit sha b08943358ec8adc2d8e542659c7dcd2514311918

Unpack type arguments for QueryStateShard.

view details

Camille GILLOT

commit sha 486a082c58c60959328e0b394f9e58850b3c6341

Unpack type arguments for QueryLookup.

view details

Camille GILLOT

commit sha a0f57e24e35a365d9d55f37611edfc6666b5d3c9

Unpack type arguments for QueryState.

view details

Camille GILLOT

commit sha fa02dca428314676716c78b5aa1953eea1627bf0

Remove Q parameter from QueryCache::lookup.

view details

Camille GILLOT

commit sha a18aa81bd8dd3012e43f195c52b8113a74479056

Remove Q parameter from alloc_self_profile_query_strings_for_query_cache.

view details

Camille GILLOT

commit sha d125bbb12b9b1839068706834d350acf5a91244c

Remove Q parameter from query stats.

view details

Camille GILLOT

commit sha fa0794db239d588b5822233d32fa7aa82bd17069

Remove Q parameter from JobOwner.

view details

push time in 10 days

push eventcjgillot/rust

Lukas Lueg

commit sha becebf3106407b892f25807473e23d6e8f116a1e

Ammend Rc/Arc::from_raw() docs regarding unsafety Constructing an Rc/Arc is unsafe even if the wrapped `T` is never dereferenced.

view details

Lukas Lueg

commit sha b4c96a9199f13c5c1c2afa6258d2b9206c151d9f

Refine [Arc/Rc]::from_raw() docs

view details

Waffle

commit sha a8340413fe8aa29864ce05875cc63f29af305e31

Remove `finished` flag from `MapWhile`

view details

Lukas Lueg

commit sha 586c7e3907738938db7a6730fd70d7125f5925fa

Make rc::RcBox and sync::ArcInner repr(C) Future-proof these types in case rustc reorders the inner fields. As per discussion in PR #68099.

view details

Waffle

commit sha 605bc1b19b45534b0860fad4b1d44678bc8b34e9

adjuste doc of `map_while` Fix doc of `Iterator::map_while` so it would be clearer that it isn't fused.

view details

Ralf Jung

commit sha 22ee27b266814485fe9ab7da4b539348cb994045

update backtrace crate

view details

Markus Westerlind

commit sha c6f1215d925561021eec296d9e88aa0305d0a18d

perf(dep_graph): Avoid allocating a set on when the number reads are small `reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).

view details

Markus Westerlind

commit sha 4168c25b0f8aadcfe38c8bdae7cc51c22c2f45d1

refactor: Add an alias for the SmallVec in dep_graph

view details

Ralf Jung

commit sha 9552d2e4ab84611e4dd354631cceb9555c956c08

bump backtrace-sys

view details

Camille GILLOT

commit sha 0bf5cae489e828a6678cab5144e638ae909d7b93

Remove __query_compute module.

view details

Camille GILLOT

commit sha fc82376bc437d4494832b171d924e2f116174578

Make QueryAccessor::dep_kind an associated const.

view details

Camille GILLOT

commit sha cf238fd057651371731fde47a2ebf251bf37cfb5

Inline QueryAccessor::query.

view details

Camille GILLOT

commit sha 1249032aabe3a0a80c0a852ef803702d7fb70d21

Move impl of Queries with its definition.

view details

Camille GILLOT

commit sha b08943358ec8adc2d8e542659c7dcd2514311918

Unpack type arguments for QueryStateShard.

view details

Camille GILLOT

commit sha 486a082c58c60959328e0b394f9e58850b3c6341

Unpack type arguments for QueryLookup.

view details

Camille GILLOT

commit sha a0f57e24e35a365d9d55f37611edfc6666b5d3c9

Unpack type arguments for QueryState.

view details

Camille GILLOT

commit sha fa02dca428314676716c78b5aa1953eea1627bf0

Remove Q parameter from QueryCache::lookup.

view details

Camille GILLOT

commit sha a18aa81bd8dd3012e43f195c52b8113a74479056

Remove Q parameter from alloc_self_profile_query_strings_for_query_cache.

view details

Camille GILLOT

commit sha d125bbb12b9b1839068706834d350acf5a91244c

Remove Q parameter from query stats.

view details

Camille GILLOT

commit sha fa0794db239d588b5822233d32fa7aa82bd17069

Remove Q parameter from JobOwner.

view details

push time in 10 days

push eventcjgillot/rust

Camille GILLOT

commit sha 0b9c3ee810921f877669586407afded890ceb219

Move import.

view details

push time in 10 days

push eventcjgillot/rust

Camille GILLOT

commit sha 9bb5fd9f7afc8369e2b4317b4497730a96d18c65

Fully qualify the path to DepKind. This is needed since `middle::cstore` defines another type named `DepKind`, and we should not rely on shadowing to get the right one.

view details

push time in 10 days

push eventcjgillot/rust

Oliver Scherer

commit sha cdc730457e9030feaf8c4376a668a9ef61c7f189

Compute the correct layout for variants of uninhabited enums and readd a long lost assertion This reverts part of commit 9712fa405944cb8d5416556ac4b1f26365a10658.

view details

Oliver Scherer

commit sha ec88ffa38cee51fa7290aa6c99d928ffe346ca6c

Comment nits Co-Authored-By: Ralf Jung <post@ralfj.de>

view details

Oliver Scherer

commit sha 74608c7f206171cb72c020a03800b2d9035a35fa

Rustfmt and adjust capitalization

view details

Andreas Jonson

commit sha afa940b900c2003228ea7f5d9f8d78906d84c135

Update the mir inline costs handle that when mir is lowered to llvm-ir more code is generated. landingpads generates 10 llvm-ir instructions and resume 9 llvm-ir instructions.

view details

David Wood

commit sha bee151308d5c5090627772c04e17f783aa53451a

codegen/mir: support polymorphic `InstanceDef`s This commit modifies the use of `subst_and_normalize_erasing_regions` on parts of the MIR bodies returned from `instance_mir`, so that `InstanceDef::CloneShim` and `InstanceDef::DropGlue` (where there is a type) do not perform substitutions. This avoids double substitutions and enables polymorphic `InstanceDef`s. Signed-off-by: David Wood <david@davidtw.co>

view details

Ralf Jung

commit sha 058ff728dc2a16b44c8abad2581287743c828270

debug-assert ptr sanity in ptr::write

view details

Ralf Jung

commit sha 59350e4ae25ce9b82ca8b088a63b58c32e22449c

increase slack for stack size test

view details

Ralf Jung

commit sha 139a8c34bc40d3d30c31ffb4c0908b3511237ee7

fix a codegen test

view details

Camille GILLOT

commit sha 0bf5cae489e828a6678cab5144e638ae909d7b93

Remove __query_compute module.

view details

Camille GILLOT

commit sha fc82376bc437d4494832b171d924e2f116174578

Make QueryAccessor::dep_kind an associated const.

view details

Camille GILLOT

commit sha cf238fd057651371731fde47a2ebf251bf37cfb5

Inline QueryAccessor::query.

view details

Camille GILLOT

commit sha 1249032aabe3a0a80c0a852ef803702d7fb70d21

Move impl of Queries with its definition.

view details

Camille GILLOT

commit sha b08943358ec8adc2d8e542659c7dcd2514311918

Unpack type arguments for QueryStateShard.

view details

Camille GILLOT

commit sha 486a082c58c60959328e0b394f9e58850b3c6341

Unpack type arguments for QueryLookup.

view details

Camille GILLOT

commit sha a0f57e24e35a365d9d55f37611edfc6666b5d3c9

Unpack type arguments for QueryState.

view details

Camille GILLOT

commit sha fa02dca428314676716c78b5aa1953eea1627bf0

Remove Q parameter from QueryCache::lookup.

view details

Camille GILLOT

commit sha a18aa81bd8dd3012e43f195c52b8113a74479056

Remove Q parameter from alloc_self_profile_query_strings_for_query_cache.

view details

Camille GILLOT

commit sha d125bbb12b9b1839068706834d350acf5a91244c

Remove Q parameter from query stats.

view details

Camille GILLOT

commit sha fa0794db239d588b5822233d32fa7aa82bd17069

Remove Q parameter from JobOwner.

view details

Camille GILLOT

commit sha 5dc7c2ed1aab0c6b0bfb15b4fb5a4d079d3aaa36

Remove Q parameter from try_get_cached.

view details

push time in 11 days

push eventcjgillot/rust

Camille GILLOT

commit sha f1f9901d5ade38c347d9cad0ba96e7c1cb17fb93

Address review.

view details

push time in 11 days

pull request commentrust-lang/rust

Avoid duplicating code for each query

Rebased.

@Zoxc: Is there something I should take from your branch and add here?

cjgillot

comment created time in 12 days

push eventcjgillot/rust

Sebastian Imlay

commit sha 35c4aae99ece980c7c594940724f0728fcccf226

Added tvOS as a backend

view details

Tim Vermeulen

commit sha 14bcf0aaa51138afdd95190d814f4b46013f990e

Fix Peekable::next_back

view details

Tim Vermeulen

commit sha 16a23e72d05b0e3cb48f0a5442e651725bf27ae8

Fuse FlattenCompat's inner iterator

view details

spunit262

commit sha 30d4f1b78d997fb555388cb8ebea474ffb85794c

Don't give invalid suggestion on desugared span.

view details

Markus Westerlind

commit sha 851a701f90081fbc83fa151e9f272cea2a990779

Reuse a Vec in mir simplification

view details

Markus Westerlind

commit sha dec8166abc6675627819723b10301e395f3876d5

Use Vec::append

view details

Markus Westerlind

commit sha 33513fad8089956adcbb5b9803f56de1a8e94b57

Avoid an intermediate Vec in mir simplify

view details

Markus Westerlind

commit sha 2440998666cb9fe5f35c1de9ef44849b71870fc3

perf(mir): Reserve enough space for the merged blocks before appending

view details

Giles Cope

commit sha a113609bdf0f05a3f32ab2f19bed38bde0d7063a

keyword docs for else and inkeyword docs for else and in.

view details

Sebastian Imlay

commit sha a2661695e8953199a746895e2e65225a9922753b

Merge branch 'master' of github.com:rust-lang/rust into add-tvSO-target

view details

Sebastian Imlay

commit sha 6b17330ef4f9a97bd539b55edb4e7ccdb6c00133

Merged apple_tvos_base and apple_ios_base into apple_sdk_base.

view details

David Ross

commit sha 940f65782cc5df7fecad27b38cc25b6d1eeaf2e8

Parse & reject postfix operators after casts This adds parsing for expressions like 'x as Ty[0]' which will immediately error out, but still give the rest of the parser a valid parse tree to continue.

view details

David Ross

commit sha 5ce9b80c0f93e54bc83f6cb15942ecdce31c3e6a

Refactor out error case & apply suggestions. This is almost entirely refactoring and message changing, with the single behavioral change of panicking for unexpected output.

view details

David Ross

commit sha 4fc0532269f40c2870936faaebcdd14539613411

Type ascription outputs a Type, not Cast Previously this just errored out on all usages of type ascription, which isn't helpful.

view details

David Ross

commit sha 0cf204930a2ecaa5f7416602fca6054d4fd44b6b

Keep better fix suggestion if type ascription is likely unintended

view details

David Ross

commit sha f82ca8b0efa64bc33ed811b34c83a21aeb2950d1

Add more error cases to issue 35813 tests

view details

David Ross

commit sha 5dd646435ba882574e677acf58113880a6570949

Fix related type ascription tests.

view details

David Ross

commit sha e3eefe266756449ebe3b2c1bb177f0130569b3b2

Remove extra debug print in unreachable!

view details

David Ross

commit sha c2d7ffb8a9906f5c7b6a1cf6a739cf4d7d732c2b

Remove trailing whitespace

view details

David Ross

commit sha 8ef3da0858c5a76fd1756b9efcf82eeb9491fb64

Fix test stderr after rebasing on master.

view details

push time in 12 days

pull request commentrust-lang/rust

Allocate some query results on an arena

Rebased.

cjgillot

comment created time in 12 days

pull request commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

Rebased.

cjgillot

comment created time in 12 days

delete branch cjgillot/rust

delete branch : polym

delete time in 12 days

push eventcjgillot/rust

Tim Vermeulen

commit sha 14bcf0aaa51138afdd95190d814f4b46013f990e

Fix Peekable::next_back

view details

Tim Vermeulen

commit sha 16a23e72d05b0e3cb48f0a5442e651725bf27ae8

Fuse FlattenCompat's inner iterator

view details

Giles Cope

commit sha a113609bdf0f05a3f32ab2f19bed38bde0d7063a

keyword docs for else and inkeyword docs for else and in.

view details

12101111

commit sha 7ca1b2f504a77fd6d82c981242c577dae05f0b9e

Don't use static crt by default when build proc-macro.

view details

12101111

commit sha 7996df992fba0b7e09215843fcfabc0c53828c57

Run format.

view details

12101111

commit sha 89aebbdd7b6cea56284d53ab5aff5e62f1e67b67

Only run this test on musl

view details

12101111

commit sha 84349cc56492d70b37ec288f6f3e887858635fa4

Remove trailing whitespace.

view details

Yuki Okushi

commit sha d6a17b598f0e82535fc38c8455aed9571f44aaa2

Move tidy check to mingw-check

view details

Tomasz Miąsko

commit sha 726d5185e00d37ad7bd24aac4f05bf9fd34765be

bootstrap: Use hash to determine if sanitizers needs to be rebuilt * Rebuild sanitizers runtimes when LLVM submodule commit changes. * When rebuilding LLVM / sanitizers, remove the stamp file before starting the build process to invalidate previous build output.

view details

Kornel

commit sha 8de1ec9ce0a53b8ad9987e923e833c82fda05603

Make error message clearer about creating new module

view details

Jonas Schievink

commit sha 425e7e5596c0ab6555fa75292d38863280d4a3d7

Don't insert panic when generator can not return

view details

Jonas Schievink

commit sha 5ac41a1a8d28493c7aa927ae49c664b9b9dce476

Don't insert panic when generator can not unwind

view details

Jonas Schievink

commit sha 46aeef6e655a85087f82bb0d1f94a97e83009218

Poison generators when any terminator unwinds This didn't cause issues before since generator types were always considered to "need drop", leading to unwind paths (including a `Resume` block) always getting generated.

view details

Jonas Schievink

commit sha 8d9f633f4d78777487010ae119454dc9674e42ee

Change index for SwitchInt case The indices do not matter here, and this fixes an index out of bounds panic when compiling a generator that can unwind but not return.

view details

Jonas Schievink

commit sha 2cbccced0856260c6acafabecb3030465dff28c2

Add test for unnecessary panic branches

view details

12101111

commit sha dbed65afaede1a819c5a7319685721339b61733b

Simplify checking of crt_static_feature()

view details

Guillaume Gomez

commit sha 57f1bb15b3f0d2fdd737804c7b7821fe1b40e256

clean up E0308 explanation

view details

Guillaume Gomez

commit sha 64460a12af8786a1859279d2944fd2fc67a3a159

Update tests

view details

Jonas Schievink

commit sha cb58de81654d92074a4abdbf90400f35f6a0062f

Apply suggestions from code review Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>

view details

12101111

commit sha 7a89bf166719d46b85c2d00686380587e46ec10d

override flags from compiletest

view details

push time in 12 days

push eventcjgillot/rust

Oliver Scherer

commit sha cdc730457e9030feaf8c4376a668a9ef61c7f189

Compute the correct layout for variants of uninhabited enums and readd a long lost assertion This reverts part of commit 9712fa405944cb8d5416556ac4b1f26365a10658.

view details

Oliver Scherer

commit sha ec88ffa38cee51fa7290aa6c99d928ffe346ca6c

Comment nits Co-Authored-By: Ralf Jung <post@ralfj.de>

view details

Oliver Scherer

commit sha 74608c7f206171cb72c020a03800b2d9035a35fa

Rustfmt and adjust capitalization

view details

Andreas Jonson

commit sha afa940b900c2003228ea7f5d9f8d78906d84c135

Update the mir inline costs handle that when mir is lowered to llvm-ir more code is generated. landingpads generates 10 llvm-ir instructions and resume 9 llvm-ir instructions.

view details

David Wood

commit sha bee151308d5c5090627772c04e17f783aa53451a

codegen/mir: support polymorphic `InstanceDef`s This commit modifies the use of `subst_and_normalize_erasing_regions` on parts of the MIR bodies returned from `instance_mir`, so that `InstanceDef::CloneShim` and `InstanceDef::DropGlue` (where there is a type) do not perform substitutions. This avoids double substitutions and enables polymorphic `InstanceDef`s. Signed-off-by: David Wood <david@davidtw.co>

view details

Ralf Jung

commit sha 058ff728dc2a16b44c8abad2581287743c828270

debug-assert ptr sanity in ptr::write

view details

Ralf Jung

commit sha 59350e4ae25ce9b82ca8b088a63b58c32e22449c

increase slack for stack size test

view details

Ralf Jung

commit sha 139a8c34bc40d3d30c31ffb4c0908b3511237ee7

fix a codegen test

view details

DutchGhost

commit sha 57b1e7a428c16a1b692b88cc25ce8b09d8ea503b

Remove the call that makes miri fail

view details

DutchGhost

commit sha dcc23217b7364056d5a83aaa058993ccd83b6e78

The const_forget_box was unused, and doesns't add anything to test by itself.

view details

DutchGhost

commit sha 0760803c06ff4128405ea22e390625938a15bcb2

rather than removing const_forget_box, stick an attribute on it and explain it cant be called in ctfe yet

view details

Guillaume Gomez

commit sha b9167e6c7d09cdb31026c10954bb35d061308a63

Support type search for arguments and returned types

view details

Guillaume Gomez

commit sha 2f44857735d813d54713782e58f8b971fcc0d265

Update JS results tester

view details

Guillaume Gomez

commit sha e78c451733f90307cbb34bc6527b0ad4d6c26915

Add tests for new of variables

view details

Guillaume Gomez

commit sha 5654cde729c99f894507141c391e0e8b2311e2fb

formatting

view details

Guillaume Gomez

commit sha d964e60e4fffc95e8c1aee90badafdc83e9ea421

Rename render::Type to improve naming

view details

Guillaume Gomez

commit sha 496256c561e43354710243e1882f8e5fa1fe9a0a

Update src/librustdoc/html/static/main.js Fix variable name Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>

view details

rojamd

commit sha f8870bfd63d806daea4e34a161df996a26214712

Build dist-android with --enable-profiler

view details

Guillaume Gomez

commit sha 9b852136109f3d29f87504c4f38a0e97d1bc2b06

Add missing variable to load in non-std tester as well

view details

Jonas Schievink

commit sha 1a764a7ef59b9cb2eb31658625a6a7dacc3d819b

Add futures scaffolding to libcore

view details

push time in 12 days

push eventcjgillot/rust

Camille GILLOT

commit sha 41bde4431f72b6c6dcc7d67dce0c925b65ea71e6

Put extract_def_id back on DepNode.

view details

Camille GILLOT

commit sha 58fa77739d94e2b7ca203c05f83db54e9ebefc31

Move trait implementations to dep_graph/mod.rs, to help git rename detection.

view details

push time in 12 days

push eventcjgillot/rust

Camille GILLOT

commit sha 2245888bcf29cd31ea930f79934644fe4f904c9a

Put extract_def_id back on DepNode.

view details

Camille GILLOT

commit sha 145cf5bcf0b286dc27226a6123724902b3490420

Move trait implementations to dep_graph/mod.rs, to help git rename detection.

view details

push time in 12 days

push eventcjgillot/rust

Camille GILLOT

commit sha 48e46d801b60c7f31ba39b08c589b807bbc2860f

Move trait implementations to dep_graph/mod.rs, to help git rename detection.

view details

push time in 12 days

Pull request review commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

+pub mod debug;+mod dep_node;+mod graph;+mod prev;+mod query;+mod safe;+mod serialized;++pub use dep_node::{DepNode, DepNodeParams, WorkProductId};+pub use graph::WorkProductFileKind;+pub use graph::{hash_result, DepGraph, DepNodeColor, DepNodeIndex, TaskDeps, WorkProduct};+pub use prev::PreviousDepGraph;+pub use query::DepGraphQuery;+pub use safe::AssertDepGraphSafe;+pub use safe::DepGraphSafe;+pub use serialized::{SerializedDepGraph, SerializedDepNodeIndex};++use rustc_data_structures::profiling::SelfProfilerRef;+use rustc_data_structures::sync::Lock;+use rustc_data_structures::thin_vec::ThinVec;+use rustc_errors::Diagnostic;+use rustc_hir::def_id::DefId;++use std::fmt;+use std::hash::Hash;++pub trait DepContext: Copy {+    type DepKind: self::DepKind;+    type StableHashingContext: crate::HashStableContext;++    /// Create a hashing context for hashing new results.+    fn create_stable_hashing_context(&self) -> Self::StableHashingContext;++    /// Try to force a dep node to execute and see if it's green.+    fn try_force_previous_green(&self, node: &DepNode<Self::DepKind>) -> bool;++    /// Extracts the DefId corresponding to this DepNode. This will work+    /// if two conditions are met:+    ///+    /// 1. The Fingerprint of the DepNode actually is a DefPathHash, and+    /// 2. the item that the DefPath refers to exists in the current tcx.+    ///+    /// Condition (1) is determined by the DepKind variant of the+    /// DepNode. Condition (2) might not be fulfilled if a DepNode+    /// refers to something from the previous compilation session that+    /// has been removed.+    fn extract_def_id(&self, node: &DepNode<Self::DepKind>) -> Option<DefId>;

Both dependencies are used in dep_graph::safe.

cjgillot

comment created time in 12 days

push eventcjgillot/rust

Camille GILLOT

commit sha 7cd93f11dafa79e4cc5b9cfc0eebb8e5b2cb486c

Put extract_def_id back on DepNode.

view details

push time in 12 days

push eventcjgillot/rust

Camille GILLOT

commit sha b588c2e69ee1d5476041803730b1e4744d4c31b6

Merge ensure_node_can_be_forced into force_from_dep_node.

view details

Camille GILLOT

commit sha 1b75e884f4f48926bf1b11e1edd6a0a319521019

Remove assert_ignored and with_ignore_deps.

view details

push time in 12 days

push eventcjgillot/rust

push time in 12 days

push eventcjgillot/rust

Tim Vermeulen

commit sha 14bcf0aaa51138afdd95190d814f4b46013f990e

Fix Peekable::next_back

view details

Tim Vermeulen

commit sha 16a23e72d05b0e3cb48f0a5442e651725bf27ae8

Fuse FlattenCompat's inner iterator

view details

Giles Cope

commit sha a113609bdf0f05a3f32ab2f19bed38bde0d7063a

keyword docs for else and inkeyword docs for else and in.

view details

12101111

commit sha 7ca1b2f504a77fd6d82c981242c577dae05f0b9e

Don't use static crt by default when build proc-macro.

view details

12101111

commit sha 7996df992fba0b7e09215843fcfabc0c53828c57

Run format.

view details

12101111

commit sha 89aebbdd7b6cea56284d53ab5aff5e62f1e67b67

Only run this test on musl

view details

12101111

commit sha 84349cc56492d70b37ec288f6f3e887858635fa4

Remove trailing whitespace.

view details

Yuki Okushi

commit sha d6a17b598f0e82535fc38c8455aed9571f44aaa2

Move tidy check to mingw-check

view details

Tomasz Miąsko

commit sha 726d5185e00d37ad7bd24aac4f05bf9fd34765be

bootstrap: Use hash to determine if sanitizers needs to be rebuilt * Rebuild sanitizers runtimes when LLVM submodule commit changes. * When rebuilding LLVM / sanitizers, remove the stamp file before starting the build process to invalidate previous build output.

view details

Kornel

commit sha 8de1ec9ce0a53b8ad9987e923e833c82fda05603

Make error message clearer about creating new module

view details

Jonas Schievink

commit sha 425e7e5596c0ab6555fa75292d38863280d4a3d7

Don't insert panic when generator can not return

view details

Jonas Schievink

commit sha 5ac41a1a8d28493c7aa927ae49c664b9b9dce476

Don't insert panic when generator can not unwind

view details

Jonas Schievink

commit sha 46aeef6e655a85087f82bb0d1f94a97e83009218

Poison generators when any terminator unwinds This didn't cause issues before since generator types were always considered to "need drop", leading to unwind paths (including a `Resume` block) always getting generated.

view details

Jonas Schievink

commit sha 8d9f633f4d78777487010ae119454dc9674e42ee

Change index for SwitchInt case The indices do not matter here, and this fixes an index out of bounds panic when compiling a generator that can unwind but not return.

view details

Jonas Schievink

commit sha 2cbccced0856260c6acafabecb3030465dff28c2

Add test for unnecessary panic branches

view details

12101111

commit sha dbed65afaede1a819c5a7319685721339b61733b

Simplify checking of crt_static_feature()

view details

Guillaume Gomez

commit sha 57f1bb15b3f0d2fdd737804c7b7821fe1b40e256

clean up E0308 explanation

view details

Guillaume Gomez

commit sha 64460a12af8786a1859279d2944fd2fc67a3a159

Update tests

view details

Jonas Schievink

commit sha cb58de81654d92074a4abdbf90400f35f6a0062f

Apply suggestions from code review Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>

view details

12101111

commit sha 7a89bf166719d46b85c2d00686380587e46ec10d

override flags from compiletest

view details

push time in 13 days

push eventcjgillot/rust

Tim Vermeulen

commit sha 14bcf0aaa51138afdd95190d814f4b46013f990e

Fix Peekable::next_back

view details

Tim Vermeulen

commit sha 16a23e72d05b0e3cb48f0a5442e651725bf27ae8

Fuse FlattenCompat's inner iterator

view details

Giles Cope

commit sha a113609bdf0f05a3f32ab2f19bed38bde0d7063a

keyword docs for else and inkeyword docs for else and in.

view details

12101111

commit sha 7ca1b2f504a77fd6d82c981242c577dae05f0b9e

Don't use static crt by default when build proc-macro.

view details

12101111

commit sha 7996df992fba0b7e09215843fcfabc0c53828c57

Run format.

view details

12101111

commit sha 89aebbdd7b6cea56284d53ab5aff5e62f1e67b67

Only run this test on musl

view details

12101111

commit sha 84349cc56492d70b37ec288f6f3e887858635fa4

Remove trailing whitespace.

view details

Yuki Okushi

commit sha d6a17b598f0e82535fc38c8455aed9571f44aaa2

Move tidy check to mingw-check

view details

Tomasz Miąsko

commit sha 726d5185e00d37ad7bd24aac4f05bf9fd34765be

bootstrap: Use hash to determine if sanitizers needs to be rebuilt * Rebuild sanitizers runtimes when LLVM submodule commit changes. * When rebuilding LLVM / sanitizers, remove the stamp file before starting the build process to invalidate previous build output.

view details

Kornel

commit sha 8de1ec9ce0a53b8ad9987e923e833c82fda05603

Make error message clearer about creating new module

view details

Jonas Schievink

commit sha 425e7e5596c0ab6555fa75292d38863280d4a3d7

Don't insert panic when generator can not return

view details

Jonas Schievink

commit sha 5ac41a1a8d28493c7aa927ae49c664b9b9dce476

Don't insert panic when generator can not unwind

view details

Jonas Schievink

commit sha 46aeef6e655a85087f82bb0d1f94a97e83009218

Poison generators when any terminator unwinds This didn't cause issues before since generator types were always considered to "need drop", leading to unwind paths (including a `Resume` block) always getting generated.

view details

Jonas Schievink

commit sha 8d9f633f4d78777487010ae119454dc9674e42ee

Change index for SwitchInt case The indices do not matter here, and this fixes an index out of bounds panic when compiling a generator that can unwind but not return.

view details

Jonas Schievink

commit sha 2cbccced0856260c6acafabecb3030465dff28c2

Add test for unnecessary panic branches

view details

12101111

commit sha dbed65afaede1a819c5a7319685721339b61733b

Simplify checking of crt_static_feature()

view details

Guillaume Gomez

commit sha 57f1bb15b3f0d2fdd737804c7b7821fe1b40e256

clean up E0308 explanation

view details

Guillaume Gomez

commit sha 64460a12af8786a1859279d2944fd2fc67a3a159

Update tests

view details

Jonas Schievink

commit sha cb58de81654d92074a4abdbf90400f35f6a0062f

Apply suggestions from code review Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>

view details

12101111

commit sha 7a89bf166719d46b85c2d00686380587e46ec10d

override flags from compiletest

view details

push time in 13 days

push eventcjgillot/rust

Camille GILLOT

commit sha a88408e28c51cf4b3cae8967c7c9a406e4ea496d

Fix test.

view details

push time in 13 days

push eventcjgillot/rust

Camille GILLOT

commit sha 7a2b824924a9c29a89456038125be5d7cbd1994f

Fix test.

view details

push time in 13 days

pull request commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

Thanks. Rebased. I changed the interface to use the TyCtxt as a generic parameter.

cjgillot

comment created time in 14 days

push eventcjgillot/rust

Dylan DPC

commit sha ffe4af57118bfb5063fc8015a1feddc76a607dbf

Rollup merge of #69491 - petrochenkov:symprint, r=Mark-Simulacrum rustc_span: Add `Symbol::to_ident_string` for use in diagnostic messages Covers the same error reporting use case (https://github.com/rust-lang/rust/pull/69387#discussion_r382999205) as the `Display` impl for `Ident`. cc https://github.com/rust-lang/rust/issues/69053 Follow-up to https://github.com/rust-lang/rust/pull/69387. r? @Mark-Simulacrum

view details

Dylan DPC

commit sha b19e822b9b513c16a8643f8157d8e3c20d6405f6

Rollup merge of #69495 - matthiaskrgr:op_ref, r=oli-obk don't take redundant references to operands

view details

Dylan DPC

commit sha 5b32dd034ef2799c0ea648c6f55e6aa14ce444f4

Rollup merge of #69496 - matthiaskrgr:filter_next, r=ecstatic-morse use find(x) instead of filter(x).next()

view details

Dylan DPC

commit sha 0291b6a28946071a59cb171fb854411fe088a551

Rollup merge of #69501 - matthiaskrgr:find_note, r=ecstatic-morse note that find(f) is equivalent to filter(f).next() in the docs. r? @ecstatic-morse

view details

Dylan DPC

commit sha 4c9e44fc5f2958706fb747d7ccf4d49f1f384545

Rollup merge of #69527 - pnkfelix:issue-69291-dont-run-rustfmt-on-untracked-paths, r=Mark-Simulacrum Ignore untracked paths when running `rustfmt` on repository. This is a step towards resolving #69291 (It might be the only step necessary at the moment; I'm not yet sure.)

view details

Dylan DPC

commit sha 02b96b3ecc48dc5245e425fc248163cfaae9643e

Rollup merge of #69529 - matthiaskrgr:clippy_identity_conversion, r=Mark-Simulacrum don't use .into() to convert types into identical types. This removes redundant `.into()` calls. example: `let s: String = format!("hello").into();`

view details

bors

commit sha 7497d93ef17d2b87fa8efb5c5de33f0bdc4155af

Auto merge of #69534 - Dylan-DPC:rollup-fwa2lip, r=Dylan-DPC Rollup of 9 pull requests Successful merges: - #69379 (Fail on multiple declarations of `main`.) - #69430 (librustc_typeck: remove loop that never actually loops) - #69449 (Do not ping PR reviewers in toolstate breakage) - #69491 (rustc_span: Add `Symbol::to_ident_string` for use in diagnostic messages) - #69495 (don't take redundant references to operands) - #69496 (use find(x) instead of filter(x).next()) - #69501 (note that find(f) is equivalent to filter(f).next() in the docs.) - #69527 (Ignore untracked paths when running `rustfmt` on repository.) - #69529 (don't use .into() to convert types into identical types.) Failed merges: r? @ghost

view details

Yuki Okushi

commit sha 4e0bea326e7f3f26ddae920e599597b309530e00

Stabilize `boxed_slice_try_from`

view details

bors

commit sha bfc32dd106f0fe191b8bcd9b76348a8875c30a60

Auto merge of #68505 - skinny121:canonicalize-const-eval-inputs, r=nikomatsakis Canonicalize inputs to const eval where needed Canonicalize inputs to const eval, so that they can contain inference variables. Which enables invoking const eval queries even if the current param env has inference variable within it, which can occur during trait selection. This is a reattempt of #67717, in a far less invasive way. Fixes #68477 r? @nikomatsakis cc @eddyb

view details

Mazdak Farrokhzad

commit sha 85b585daaf735deda96c6e087e2a3f203c64d52d

late resolve, visit_fn: bail early if there's no body.

view details

Ralf Jung

commit sha f9644c16f3156025d83d3dc1262ac35d9ae89588

add comment to check_data

view details

Ralf Jung

commit sha e9ab099d6f30328b03ec2d5515bd11e4852d1eca

get rid of to_ptr

view details

Ralf Jung

commit sha 1fec68277a16e39389085fba462a05cd71797423

remove check_raw after reducing it to one use only

view details

bors

commit sha e2223c94bf433fc38234d1303e88cbaf14755863

Auto merge of #68827 - ssomers:btree_navigation_revisited, r=Mark-Simulacrum BTreeMap navigation done safer & faster It turns out that there was a faster way to do the tree navigation code bundled in #67073, by moving from edge to KV and from KV to next edge separately. It extracts most of the code as safe functions, and contains the duplication of handles within the short wrapper functions. This somehow hits a sweet spot in the compiler because it reports boosts all over the board: ``` >cargo benchcmp pre3.txt posz4.txt --threshold 5 name pre3.txt ns/iter posz4.txt ns/iter diff ns/iter diff % speedup btree::map::first_and_last_0 40 37 -3 -7.50% x 1.08 btree::map::first_and_last_100 58 44 -14 -24.14% x 1.32 btree::map::iter_1000 8,920 3,419 -5,501 -61.67% x 2.61 btree::map::iter_100000 1,069,290 411,615 -657,675 -61.51% x 2.60 btree::map::iter_20 169 58 -111 -65.68% x 2.91 btree::map::iter_mut_1000 8,701 3,303 -5,398 -62.04% x 2.63 btree::map::iter_mut_100000 1,034,560 405,975 -628,585 -60.76% x 2.55 btree::map::iter_mut_20 165 58 -107 -64.85% x 2.84 btree::set::clone_100 1,831 1,562 -269 -14.69% x 1.17 btree::set::clone_100_and_clear 1,831 1,565 -266 -14.53% x 1.17 btree::set::clone_100_and_into_iter 1,917 1,541 -376 -19.61% x 1.24 btree::set::clone_100_and_pop_all 2,609 2,441 -168 -6.44% x 1.07 btree::set::clone_100_and_remove_all 4,598 3,927 -671 -14.59% x 1.17 btree::set::clone_100_and_remove_half 2,765 2,551 -214 -7.74% x 1.08 btree::set::clone_10k 191,610 164,616 -26,994 -14.09% x 1.16 btree::set::clone_10k_and_clear 192,003 164,616 -27,387 -14.26% x 1.17 btree::set::clone_10k_and_into_iter 200,037 163,010 -37,027 -18.51% x 1.23 btree::set::clone_10k_and_pop_all 267,023 250,913 -16,110 -6.03% x 1.06 btree::set::clone_10k_and_remove_all 536,230 464,100 -72,130 -13.45% x 1.16 btree::set::clone_10k_and_remove_half 453,350 430,545 -22,805 -5.03% x 1.05 btree::set::difference_random_100_vs_100 1,787 801 -986 -55.18% x 2.23 btree::set::difference_random_100_vs_10k 2,978 2,696 -282 -9.47% x 1.10 btree::set::difference_random_10k_vs_100 111,075 54,734 -56,341 -50.72% x 2.03 btree::set::difference_random_10k_vs_10k 246,380 175,980 -70,400 -28.57% x 1.40 btree::set::difference_staggered_100_vs_100 1,789 951 -838 -46.84% x 1.88 btree::set::difference_staggered_100_vs_10k 2,798 2,606 -192 -6.86% x 1.07 btree::set::difference_staggered_10k_vs_10k 176,452 97,401 -79,051 -44.80% x 1.81 btree::set::intersection_100_neg_vs_10k_pos 34 32 -2 -5.88% x 1.06 btree::set::intersection_100_pos_vs_100_neg 30 27 -3 -10.00% x 1.11 btree::set::intersection_random_100_vs_100 1,537 613 -924 -60.12% x 2.51 btree::set::intersection_random_100_vs_10k 2,793 2,649 -144 -5.16% x 1.05 btree::set::intersection_random_10k_vs_10k 222,127 147,166 -74,961 -33.75% x 1.51 btree::set::intersection_staggered_100_vs_100 1,447 622 -825 -57.01% x 2.33 btree::set::intersection_staggered_100_vs_10k 2,606 2,382 -224 -8.60% x 1.09 btree::set::intersection_staggered_10k_vs_10k 143,620 58,790 -84,830 -59.07% x 2.44 btree::set::is_subset_100_vs_100 1,349 488 -861 -63.83% x 2.76 btree::set::is_subset_100_vs_10k 1,720 1,428 -292 -16.98% x 1.20 btree::set::is_subset_10k_vs_10k 135,984 48,527 -87,457 -64.31% x 2.80 ``` The `first_and_last` ones are noise (they don't do iteration), the others seem genuine. As always, approved by Miri. Also, a separate commit with some more benchmarks of mutable behaviour (which also benefit). r? @cuviper

view details

Pulkit Goyal

commit sha 299a0d559f574f1ca1092a3783f00adba68be290

docs: add mention of async blocks in move keyword docs Fixes #69298

view details

Remy Rakic

commit sha 1b0bb35ca3cd8e80c9255eefb1e35381ec9aa73a

Unrevert "Remove `checked_add` in `Layout::repeat`"

view details

Matthias Krüger

commit sha 0c5d497603129d3bf25e83e3e387bb39202b34ef

use to_vec() instead of .iter().cloned().collect() to convert slices to vecs.

view details

Matthias Krüger

commit sha ff9341a9e3c23494cbd51fabafd1275097d41203

remove redundant clones, references to operands, explicit boolean comparisons and filter(x).next() calls.

view details

Mateusz Mikuła

commit sha 3713ed67fd46b113948ed98170325a7225bdf331

Improve MinGW detection when cross compiling

view details

Matthias Krüger

commit sha 9523c89f18ca62c992e580fc33fe1bf092696d8d

use is_empty() instead of len() == x to determine if structs are empty.

view details

push time in 14 days

pull request commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

Should be it.

cjgillot

comment created time in 14 days

push eventcjgillot/rust

Camille GILLOT

commit sha 065efba8ad1b432ee3e04391c9b8cf8a9264301b

Hardcode DefId instead of an associated type.

view details

push time in 14 days

push eventcjgillot/rust

push time in 14 days

push eventcjgillot/rust

Camille GILLOT

commit sha 5493084db9377ff1064e4da6548656baa1406911

Move dep_graph to new crate librustc_dep_graph.

view details

Camille GILLOT

commit sha e240331b799fe86c47cf61cdf0adfec66a4ccc80

Make librustc_dep_graph compile.

view details

Camille GILLOT

commit sha 138a576862ac7ebc6636710a693c1bfe81140f84

Fallout in other crates.

view details

Camille GILLOT

commit sha 3d37f709e7c92317326bddaa13552b32bf16e18a

Add comments.

view details

Camille GILLOT

commit sha ad6cadb5f123c76dd0781107203433cb463d338d

Style.

view details

Camille GILLOT

commit sha 065efba8ad1b432ee3e04391c9b8cf8a9264301b

Hardcode DefId instead of an associated type.

view details

push time in 14 days

pull request commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

Is it possible to reopen this PR please?

cjgillot

comment created time in 14 days

PR opened rust-lang/rust

Move the query system to a dedicated crate

The query system rustc::ty::query is split out into the rustc_query_system crate.

Some commits are unformatted, to ease rebasing.

Based on #67761 and #69910.

r? @Zoxc

+3570 -2908

0 comment

44 changed files

pr created time in 14 days

PR opened rust-lang/rust

Allocate some query results on an arena

This avoids a cloning few Lrc and Vecs in the queries.

+77 -96

0 comment

16 changed files

pr created time in 14 days

push eventcjgillot/rust

Sebastian Imlay

commit sha 35c4aae99ece980c7c594940724f0728fcccf226

Added tvOS as a backend

view details

spunit262

commit sha 30d4f1b78d997fb555388cb8ebea474ffb85794c

Don't give invalid suggestion on desugared span.

view details

Markus Westerlind

commit sha 851a701f90081fbc83fa151e9f272cea2a990779

Reuse a Vec in mir simplification

view details

Markus Westerlind

commit sha dec8166abc6675627819723b10301e395f3876d5

Use Vec::append

view details

Markus Westerlind

commit sha 33513fad8089956adcbb5b9803f56de1a8e94b57

Avoid an intermediate Vec in mir simplify

view details

Markus Westerlind

commit sha 2440998666cb9fe5f35c1de9ef44849b71870fc3

perf(mir): Reserve enough space for the merged blocks before appending

view details

Sebastian Imlay

commit sha a2661695e8953199a746895e2e65225a9922753b

Merge branch 'master' of github.com:rust-lang/rust into add-tvSO-target

view details

Sebastian Imlay

commit sha 6b17330ef4f9a97bd539b55edb4e7ccdb6c00133

Merged apple_tvos_base and apple_ios_base into apple_sdk_base.

view details

Markus Westerlind

commit sha 84c024d92f34206d0f02ab814c6e5bd3abb876c3

Clarify mir block merging

view details

Sebastian Imlay

commit sha 259977158e19acccc1bbc71c8cc4449ad40a8bef

fmt

view details

Trevor Spiteri

commit sha d15a98b87815850ef9dd11564e896b6f19b724c3

Stabilize const for integer {to,from}_{be,le,ne}_bytes methods All of these functions can be implemented simply and naturally as const functions, e.g. u32::from_le_bytes can be implemented as (bytes[0] as u32) | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16 | (bytes[3] as u32) << 24 So stabilizing the constness will not expose that internally they are implemented using transmute which is not const in stable.

view details

LeSeulArtichaut

commit sha 79b8ad84c84481a43704213cd0948d2ba0ea63b4

Implement `Copy` for `IoSlice`

view details

Yuki Okushi

commit sha f85b0c456f763a70a8eae0e4a9daf6a4005ef87a

Remove use of `unwrap()` from save-analysis

view details

Yuki Okushi

commit sha a211a82b3c7e450edd99ff6d3cf77a0cedae0d2e

Address review comment

view details

Yuki Okushi

commit sha 5307edce6faa5c675dc57a1dd3b4fdcbf1ebdc7d

Tweak tests

view details

Nicholas Nethercote

commit sha 54d1c50c7e7b4c4c7dca6c85c6965c886922b449

Remove `sip::Hasher::short_write`. `sip::Hasher::short_write` is currently unused. It is called by `sip::Hasher::write_{u8,usize}`, but those methods are also unused, because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement any of the `write_xyz` methods, so all their write operations end up calling `sip::Hasher::write`. (I confirmed this by inserting a `panic!` in `sip::Hasher::short_write` and running the tests -- they all passed.) The alternative would be to add all the missing `write_xyz` methods. This does give some significant speed-ups, but it hurts compile times a little in some cases. See #69152 for details. This commit does the conservative thing and doesn't change existing behaviour.

view details

Trevor Spiteri

commit sha 87f0dc63a864c6d9a3c34aa4052762dbcd316c91

use unions instead of transmute and add const safety comments

view details

Tomasz Miąsko

commit sha e1a54725081227a3866669c167bee4c0559f5362

Emit 1-based column numbers in debuginfo The debuginfo column numbers are 1-based. The value 0 indicates that no column has been specified. Translate 0-based column numbers to 1-based when emitting debug information.

view details

Tomasz Miąsko

commit sha 0c51f2f5a580a7e239accd0cc5f3da2e8cdf6f8c

Use byte offsets when emitting debuginfo columns

view details

Tomasz Miąsko

commit sha 8e93a01824a2239f1c588c7c0b884c8a2662e929

Test that column information is not emitted for MSVC targets

view details

push time in 14 days

push eventcjgillot/rust

Sebastian Imlay

commit sha 35c4aae99ece980c7c594940724f0728fcccf226

Added tvOS as a backend

view details

spunit262

commit sha 30d4f1b78d997fb555388cb8ebea474ffb85794c

Don't give invalid suggestion on desugared span.

view details

Markus Westerlind

commit sha 851a701f90081fbc83fa151e9f272cea2a990779

Reuse a Vec in mir simplification

view details

Markus Westerlind

commit sha dec8166abc6675627819723b10301e395f3876d5

Use Vec::append

view details

Markus Westerlind

commit sha 33513fad8089956adcbb5b9803f56de1a8e94b57

Avoid an intermediate Vec in mir simplify

view details

Markus Westerlind

commit sha 2440998666cb9fe5f35c1de9ef44849b71870fc3

perf(mir): Reserve enough space for the merged blocks before appending

view details

Sebastian Imlay

commit sha a2661695e8953199a746895e2e65225a9922753b

Merge branch 'master' of github.com:rust-lang/rust into add-tvSO-target

view details

Sebastian Imlay

commit sha 6b17330ef4f9a97bd539b55edb4e7ccdb6c00133

Merged apple_tvos_base and apple_ios_base into apple_sdk_base.

view details

Markus Westerlind

commit sha 84c024d92f34206d0f02ab814c6e5bd3abb876c3

Clarify mir block merging

view details

Sebastian Imlay

commit sha 259977158e19acccc1bbc71c8cc4449ad40a8bef

fmt

view details

Trevor Spiteri

commit sha d15a98b87815850ef9dd11564e896b6f19b724c3

Stabilize const for integer {to,from}_{be,le,ne}_bytes methods All of these functions can be implemented simply and naturally as const functions, e.g. u32::from_le_bytes can be implemented as (bytes[0] as u32) | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16 | (bytes[3] as u32) << 24 So stabilizing the constness will not expose that internally they are implemented using transmute which is not const in stable.

view details

LeSeulArtichaut

commit sha 79b8ad84c84481a43704213cd0948d2ba0ea63b4

Implement `Copy` for `IoSlice`

view details

Yuki Okushi

commit sha f85b0c456f763a70a8eae0e4a9daf6a4005ef87a

Remove use of `unwrap()` from save-analysis

view details

Yuki Okushi

commit sha a211a82b3c7e450edd99ff6d3cf77a0cedae0d2e

Address review comment

view details

Yuki Okushi

commit sha 5307edce6faa5c675dc57a1dd3b4fdcbf1ebdc7d

Tweak tests

view details

Nicholas Nethercote

commit sha 54d1c50c7e7b4c4c7dca6c85c6965c886922b449

Remove `sip::Hasher::short_write`. `sip::Hasher::short_write` is currently unused. It is called by `sip::Hasher::write_{u8,usize}`, but those methods are also unused, because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement any of the `write_xyz` methods, so all their write operations end up calling `sip::Hasher::write`. (I confirmed this by inserting a `panic!` in `sip::Hasher::short_write` and running the tests -- they all passed.) The alternative would be to add all the missing `write_xyz` methods. This does give some significant speed-ups, but it hurts compile times a little in some cases. See #69152 for details. This commit does the conservative thing and doesn't change existing behaviour.

view details

Trevor Spiteri

commit sha 87f0dc63a864c6d9a3c34aa4052762dbcd316c91

use unions instead of transmute and add const safety comments

view details

Tomasz Miąsko

commit sha e1a54725081227a3866669c167bee4c0559f5362

Emit 1-based column numbers in debuginfo The debuginfo column numbers are 1-based. The value 0 indicates that no column has been specified. Translate 0-based column numbers to 1-based when emitting debug information.

view details

Tomasz Miąsko

commit sha 0c51f2f5a580a7e239accd0cc5f3da2e8cdf6f8c

Use byte offsets when emitting debuginfo columns

view details

Tomasz Miąsko

commit sha 8e93a01824a2239f1c588c7c0b884c8a2662e929

Test that column information is not emitted for MSVC targets

view details

push time in 14 days

create barnchcjgillot/rust

branch : query-arena

created branch time in 14 days

delete branch cjgillot/rust

delete branch : dispatch

delete time in 15 days

pull request commentrust-lang/rust

Avoid query type in generics

Done.

cjgillot

comment created time in 16 days

push eventcjgillot/rust

Camille GILLOT

commit sha 8aa13289b5fbfcbdf5afb19d15a41a15d8f8aa22

Make stuff private.

view details

push time in 16 days

Pull request review commentrust-lang/rust

Add a query cache for dense local DefIds

 pub(crate) trait QueryCache<K, V>: Default { pub struct DefaultCacheSelector;  impl<K: Eq + Hash, V: Clone> CacheSelector<K, V> for DefaultCacheSelector {-    type Cache = DefaultCache;+    type Cache = DefaultCache<()>; } -#[derive(Default)]-pub struct DefaultCache;+pub struct DefaultCache<D>(PhantomData<D>);

What does this generic parameter D do?

Zoxc

comment created time in 17 days

pull request commentrust-lang/rust

Avoid query type in generics

Rebased.

cjgillot

comment created time in 17 days

push eventcjgillot/rust

Nicholas Nethercote

commit sha 54d1c50c7e7b4c4c7dca6c85c6965c886922b449

Remove `sip::Hasher::short_write`. `sip::Hasher::short_write` is currently unused. It is called by `sip::Hasher::write_{u8,usize}`, but those methods are also unused, because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement any of the `write_xyz` methods, so all their write operations end up calling `sip::Hasher::write`. (I confirmed this by inserting a `panic!` in `sip::Hasher::short_write` and running the tests -- they all passed.) The alternative would be to add all the missing `write_xyz` methods. This does give some significant speed-ups, but it hurts compile times a little in some cases. See #69152 for details. This commit does the conservative thing and doesn't change existing behaviour.

view details

Tomasz Miąsko

commit sha e1a54725081227a3866669c167bee4c0559f5362

Emit 1-based column numbers in debuginfo The debuginfo column numbers are 1-based. The value 0 indicates that no column has been specified. Translate 0-based column numbers to 1-based when emitting debug information.

view details

Tomasz Miąsko

commit sha 0c51f2f5a580a7e239accd0cc5f3da2e8cdf6f8c

Use byte offsets when emitting debuginfo columns

view details

Tomasz Miąsko

commit sha 8e93a01824a2239f1c588c7c0b884c8a2662e929

Test that column information is not emitted for MSVC targets

view details

Ryan Lopopolo

commit sha 2a29726fcd09fac350e0a8c0d1dd78a8ae6de0ed

Implement From<&mut str> for String

view details

Andreas Molzer

commit sha 51b93966240acffdbe3fbb898bb647a03b146e09

Add unborrow to reset RefCell borrow state This method is complementary for the feature refcell_leak added in an earlier PR. It allows reverting the effects of leaking a borrow guard by statically proving that such a guard could not longer exist. This was not added to the existing `get_mut` out of concern of impacting the complexity of the otherwise pure pointer cast and because the name `get_mut` poorly communicates the intent of resetting remaining borrows.

view details

Dan Aloni

commit sha 0605abe3bb7b602cbe70a72797fdd6ca90d76e92

Use GetSystemTimePreciseAsFileTime if it is available

view details

Dylan MacKenzie

commit sha 8ea5ac60b6723356dc14954d10c5069175f61fc2

Add `mir-opt` test for better drop elaboration

view details

Dylan MacKenzie

commit sha 68f20019f717db44e0c07d80af10878a517255a3

Ignore `mir-opt` test when panic=abort

view details

Ryan Lopopolo

commit sha 18feaa3fa25f11e403478b562fa1db356b32c818

Add stable feature name

view details

Ryan Lopopolo

commit sha 533784d3a247595393ce24c9940945838913a0fe

Add docs for From::<&mut str>::from String impl

view details

Vadim Petrochenkov

commit sha e809e0214ea9a43cc798379da4e8b303ed1000c3

ast: `Mac`/`Macro` -> `MacCall`

view details

Mark Mansi

commit sha c8b527ed99ce06c3506ee0bb65aae3026e6b1dde

change method -> associated function

view details

Mark Mansi

commit sha b6518f0f66d2b24f0e65ca51f952457fd74a909a

update tests

view details

Matthias Krüger

commit sha 66949a72d16fc10188fbe3193749f87a60b6839d

submodules: update clippy from 329923ed to 8485d40a Changes: ```` Rustup to rust-lang/rust#69674 Use visit_place Check for mutation Only fires on temporaries Extend `redundant_clone` to the case that cloned value is not consumed add CR feedback Improve documentation Use `edition:2018` flag more widely Update tests/ui/needless_doc_main.rs Move links to the end of each chapter on adding_lints Move links to the end of each chapter on CONTRIBUTING Clean-up adding_lints.md Clean-up CONTRIBUTING.md needless_doc_main: only check rust code Use `node_type_opt` over `node_type` Fix doc Fix ICE with trivial_bounds feature clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. update rust-lang.github.io to rustc-dev-guide.rust-lang.org Improve placeholder in map_unit_fn Fix match single binding when in a let stmt Improve error messages for {option,result}_map_unit_fn Mention the setup instructions in CONTRIBUTING redundant_pattern: take binding (ref, ref mut) into account in suggestion. check_pat: delay creation of the "normal" vec until we reach the branch where is is actually needed deps: bump itertools 0.8 -> 0.9 add lint on File::read_to_string and File::read_to_end transition rustc-guide to rustc-dev-guide Rename macro_use_import -> macro_use_imports warn on macro_use attr Fix deploy script for tag deploys ```` Fixes #69957

view details

Oliver Middleton

commit sha 965888adc20f46799f382065142dbb0e27905d9c

Add Node.js to PR CI image This should allow the `rustdoc-js` and `rustdoc-js-std` test suites to run automatically on PRs.

view details

Mark Mansi

commit sha 4b46271841d75ee8b45b7b4db2ce531a764785fa

Remove a couple of Rc's from RegionInferenceContext

view details

Mark Mansi

commit sha 508d4a24d1f4ba79bfa01fd6af919609ebeaccbe

Remove another Rc from RegionInferenceContext

view details

Mark Mansi

commit sha da4e33a9e659071ae5e7418242dea38d951a260d

move frozen to rustc_data_structures

view details

Mark Mansi

commit sha a58b17f2b5e57baa45ffb5b8c979faa3191bc05a

update rustdocs for frozen

view details

push time in 17 days

push eventcjgillot/rust

Sebastian Imlay

commit sha 35c4aae99ece980c7c594940724f0728fcccf226

Added tvOS as a backend

view details

Markus Westerlind

commit sha 851a701f90081fbc83fa151e9f272cea2a990779

Reuse a Vec in mir simplification

view details

Markus Westerlind

commit sha dec8166abc6675627819723b10301e395f3876d5

Use Vec::append

view details

Markus Westerlind

commit sha 33513fad8089956adcbb5b9803f56de1a8e94b57

Avoid an intermediate Vec in mir simplify

view details

Markus Westerlind

commit sha 2440998666cb9fe5f35c1de9ef44849b71870fc3

perf(mir): Reserve enough space for the merged blocks before appending

view details

Sebastian Imlay

commit sha a2661695e8953199a746895e2e65225a9922753b

Merge branch 'master' of github.com:rust-lang/rust into add-tvSO-target

view details

Sebastian Imlay

commit sha 6b17330ef4f9a97bd539b55edb4e7ccdb6c00133

Merged apple_tvos_base and apple_ios_base into apple_sdk_base.

view details

Markus Westerlind

commit sha 84c024d92f34206d0f02ab814c6e5bd3abb876c3

Clarify mir block merging

view details

Sebastian Imlay

commit sha 259977158e19acccc1bbc71c8cc4449ad40a8bef

fmt

view details

Trevor Spiteri

commit sha d15a98b87815850ef9dd11564e896b6f19b724c3

Stabilize const for integer {to,from}_{be,le,ne}_bytes methods All of these functions can be implemented simply and naturally as const functions, e.g. u32::from_le_bytes can be implemented as (bytes[0] as u32) | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16 | (bytes[3] as u32) << 24 So stabilizing the constness will not expose that internally they are implemented using transmute which is not const in stable.

view details

LeSeulArtichaut

commit sha 79b8ad84c84481a43704213cd0948d2ba0ea63b4

Implement `Copy` for `IoSlice`

view details

Nicholas Nethercote

commit sha 54d1c50c7e7b4c4c7dca6c85c6965c886922b449

Remove `sip::Hasher::short_write`. `sip::Hasher::short_write` is currently unused. It is called by `sip::Hasher::write_{u8,usize}`, but those methods are also unused, because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement any of the `write_xyz` methods, so all their write operations end up calling `sip::Hasher::write`. (I confirmed this by inserting a `panic!` in `sip::Hasher::short_write` and running the tests -- they all passed.) The alternative would be to add all the missing `write_xyz` methods. This does give some significant speed-ups, but it hurts compile times a little in some cases. See #69152 for details. This commit does the conservative thing and doesn't change existing behaviour.

view details

Trevor Spiteri

commit sha 87f0dc63a864c6d9a3c34aa4052762dbcd316c91

use unions instead of transmute and add const safety comments

view details

Tomasz Miąsko

commit sha e1a54725081227a3866669c167bee4c0559f5362

Emit 1-based column numbers in debuginfo The debuginfo column numbers are 1-based. The value 0 indicates that no column has been specified. Translate 0-based column numbers to 1-based when emitting debug information.

view details

Tomasz Miąsko

commit sha 0c51f2f5a580a7e239accd0cc5f3da2e8cdf6f8c

Use byte offsets when emitting debuginfo columns

view details

Tomasz Miąsko

commit sha 8e93a01824a2239f1c588c7c0b884c8a2662e929

Test that column information is not emitted for MSVC targets

view details

Ralf Jung

commit sha 503026b622d1095770178fbe606a4ba783216992

mem::zeroed/uninit: panic on types that do not permit zero-initialization

view details

Ralf Jung

commit sha 6fd909b2b1dd2789e0f1af79283c6105fa502ca3

reference tracking issue

view details

Ralf Jung

commit sha d78c4aa62ec0382d85e88b44cce2c087c5357f53

use valid_range_exclusive for correct overflow handling

view details

Ralf Jung

commit sha df6a3a0ed216a8548130f9b431964531a1bc7633

test some more things that should not panic

view details

push time in 17 days

push eventcjgillot/rust

Camille GILLOT

commit sha 526236df2383a52c239dc6c17348fef2b12b48a2

Fallout for debug assertions mode.

view details

push time in 18 days

push eventcjgillot/rust

Camille GILLOT

commit sha 588750e291d5ab3c2225f179a994248689a64e90

Bundle key with QueryLookup.

view details

Camille GILLOT

commit sha 97b6e8ef6aad42e41cb2eba247ce0ce94cb97c76

Bundle key with JobOwner.

view details

Camille GILLOT

commit sha 474e8baa6ca49f8c03c884d47e3f841e26aee7bf

Make stuff private.

view details

push time in 18 days

push eventcjgillot/rust

Camille GILLOT

commit sha a4ef6891596f263b1e63754f6fb8e5ed1260c0d3

Use dynamic dispatch in try_collect_active_jobs.

view details

Camille GILLOT

commit sha a4b6a051de2315187aa24a79b6a4bf88c69094e3

Directly pass a QueryLookup to the cache.

view details

Camille GILLOT

commit sha bb66165e3f0e8db705db5c41854df28d17bd8ea6

Bundle key with JobOwner.

view details

Camille GILLOT

commit sha 3effbd6454042a50bed63ae16c148805be8c13f6

Make stuff private.

view details

push time in 18 days

delete branch cjgillot/rust

delete branch : split_trait

delete time in 18 days

pull request commentrust-lang/rust

Split librustc::{traits,infer} to their respective crates

Rebased.

cjgillot

comment created time in 19 days

push eventcjgillot/rust

LeSeulArtichaut

commit sha 79b8ad84c84481a43704213cd0948d2ba0ea63b4

Implement `Copy` for `IoSlice`

view details

Mark Rousskov

commit sha d45ce5aed63fb58385705016dfaff1832a58d7c8

Inline catching panics into std::catch_unwind This allows LLVM to inline the happy path, such that catching unwinding is zero-cost when no panic occurs. This also allows us to match the code generated by C++ try/catch.

view details

Mark Rousskov

commit sha 1920f817caf65e5ffb95628b15cedb8aa54a8ae8

Avoid over-aligning the return value in the -Cpanic=abort case

view details

Amanieu d'Antras

commit sha 919c5fe6b9e052eb243e0e7ceb99d2e6986b4115

Test catch_unwind vanishing We execpt the try intrinsic to be a direct call if in -Cpanic=abort mode, and that catch_unwind optimizes out if calling a function that does not unwind.

view details

Mark Rousskov

commit sha dd6c3b7c3900f58f5b97a6cec379328e855287ed

Ignore PAL lint for std::panicking

view details

Mark Rousskov

commit sha bdcc02360f34fe773c38f8ae86111fb831f8ec9e

Mark cleanup cold

view details

Amanieu d'Antras

commit sha 5b682354f2c8bf2c825b6229a6a125435f2053dd

Fix some minor issues

view details

Amanieu d'Antras

commit sha 35349abeb33893e9d683e507f819c16063e4797e

Ignore broken no-landing-pads test

view details

Amanieu d'Antras

commit sha 01d04944cefc61cd684e3554e48068926a5f30ab

Apply review feedback

view details

Amanieu d'Antras

commit sha 61b67d0c199e4f93d227d7303fab0270ec1a68d0

Fix cross-DLL panics under MSVC

view details

Amanieu d'Antras

commit sha d73813ae62a2d7327f1e657f999ea7636c7a402d

Apply CPU attributes to __rust_try

view details

Jonas Schievink

commit sha 3b6a5fbeceff5a8910c07c6115396e0420e29bee

Move formatting to different function This slims down the generator MIR considerably, which makes debugging easier

view details

Amanieu d'Antras

commit sha f4f91f0b2f98ddf9ea36c4bc200ebda2cd898230

Remove eh_unwind_resume lang item

view details

Amanieu d'Antras

commit sha 5953c100d1e9eea5ca70f185e905ea0773a34eb5

Use #[rustc_std_internal_symbol] instead of #[no_mangle]

view details

Amanieu d'Antras

commit sha 1c950e5c6f85422283bb23bb4bad07ae6c3d2fe1

Simplify the try intrinsic by using a callback in the catch block

view details

Amanieu d'Antras

commit sha 8e3467c2150eddc636e88346255bec20feb38b3a

Link to libgcc dynamically on windows-gnu when using dylib crates

view details

Amanieu d'Antras

commit sha 04f24b7c69a576533a3dba889c1a78f21e0d38a9

Fix MinGW termination callbacks not being invoked

view details

Jonas Schievink

commit sha 2070ea26e1747f9cb1fb8266bbfe48d79a5ada87

Move stray generator test into the `generator` dir

view details

Jonas Schievink

commit sha 818934b9b418e16e6d60fb061e1e712f48c33216

Model generator resumption in dataflow We now have a way to apply an effect only *after* a `yield` resumes, similar to calls (which can either return or unwind).

view details

Jonas Schievink

commit sha b26e27c5f3e7f24982f90183630b3fcffc3f7b8a

Add test for generator sizes with resume arguments

view details

push time in 19 days

push eventcjgillot/rust

Sebastian Imlay

commit sha 35c4aae99ece980c7c594940724f0728fcccf226

Added tvOS as a backend

view details

Markus Westerlind

commit sha 851a701f90081fbc83fa151e9f272cea2a990779

Reuse a Vec in mir simplification

view details

Markus Westerlind

commit sha dec8166abc6675627819723b10301e395f3876d5

Use Vec::append

view details

Markus Westerlind

commit sha 33513fad8089956adcbb5b9803f56de1a8e94b57

Avoid an intermediate Vec in mir simplify

view details

Markus Westerlind

commit sha 2440998666cb9fe5f35c1de9ef44849b71870fc3

perf(mir): Reserve enough space for the merged blocks before appending

view details

Sebastian Imlay

commit sha a2661695e8953199a746895e2e65225a9922753b

Merge branch 'master' of github.com:rust-lang/rust into add-tvSO-target

view details

Sebastian Imlay

commit sha 6b17330ef4f9a97bd539b55edb4e7ccdb6c00133

Merged apple_tvos_base and apple_ios_base into apple_sdk_base.

view details

Markus Westerlind

commit sha 84c024d92f34206d0f02ab814c6e5bd3abb876c3

Clarify mir block merging

view details

Sebastian Imlay

commit sha 259977158e19acccc1bbc71c8cc4449ad40a8bef

fmt

view details

LeSeulArtichaut

commit sha 79b8ad84c84481a43704213cd0948d2ba0ea63b4

Implement `Copy` for `IoSlice`

view details

Chris Simpkins

commit sha 71f92bb8123a1307bb52af63b13637d774c744eb

[tidy] update documentation from `make check` to `x.py test`

view details

Mark Rousskov

commit sha d45ce5aed63fb58385705016dfaff1832a58d7c8

Inline catching panics into std::catch_unwind This allows LLVM to inline the happy path, such that catching unwinding is zero-cost when no panic occurs. This also allows us to match the code generated by C++ try/catch.

view details

Mark Rousskov

commit sha 1920f817caf65e5ffb95628b15cedb8aa54a8ae8

Avoid over-aligning the return value in the -Cpanic=abort case

view details

Amanieu d'Antras

commit sha 919c5fe6b9e052eb243e0e7ceb99d2e6986b4115

Test catch_unwind vanishing We execpt the try intrinsic to be a direct call if in -Cpanic=abort mode, and that catch_unwind optimizes out if calling a function that does not unwind.

view details

Mark Rousskov

commit sha dd6c3b7c3900f58f5b97a6cec379328e855287ed

Ignore PAL lint for std::panicking

view details

Mark Rousskov

commit sha bdcc02360f34fe773c38f8ae86111fb831f8ec9e

Mark cleanup cold

view details

Amanieu d'Antras

commit sha 5b682354f2c8bf2c825b6229a6a125435f2053dd

Fix some minor issues

view details

Amanieu d'Antras

commit sha 35349abeb33893e9d683e507f819c16063e4797e

Ignore broken no-landing-pads test

view details

Amanieu d'Antras

commit sha 01d04944cefc61cd684e3554e48068926a5f30ab

Apply review feedback

view details

Amanieu d'Antras

commit sha 61b67d0c199e4f93d227d7303fab0270ec1a68d0

Fix cross-DLL panics under MSVC

view details

push time in 19 days

pull request commentrust-lang/rust

Avoid query type in generics

I was experimenting with it yesterday, and somehow it ended up on the wrong branch. Sorry.

cjgillot

comment created time in 20 days

push eventcjgillot/rust

Camille GILLOT

commit sha 2bf1353ec1779199c27a9aaae71494c17d2a6fac

Inline Query::compute.

view details

push time in 20 days

push eventcjgillot/rust

John Kåre Alsaker

commit sha ca8fcc346aa87b27085b99fa57d591f47e112012

Introduce query result erasure trait.

view details

Camille GILLOT

commit sha 11f03fa74c04baee0349a3cb896e2d89f091328e

Inline Query::compute.

view details

push time in 20 days

push eventcjgillot/rust

push time in 20 days

push eventcjgillot/rust

Camille GILLOT

commit sha c3c5e93c42925f5bc7929eee4f0927f59bda7e02

Remove __query_compute module.

view details

John Kåre Alsaker

commit sha ca8fcc346aa87b27085b99fa57d591f47e112012

Introduce query result erasure trait.

view details

push time in 20 days

pull request commentrust-lang/rust

Split librustc::{traits,infer} to their respective crates

Rebased.

cjgillot

comment created time in 21 days

push eventcjgillot/rust

Sebastian Imlay

commit sha 35c4aae99ece980c7c594940724f0728fcccf226

Added tvOS as a backend

view details

Markus Westerlind

commit sha 851a701f90081fbc83fa151e9f272cea2a990779

Reuse a Vec in mir simplification

view details

Markus Westerlind

commit sha dec8166abc6675627819723b10301e395f3876d5

Use Vec::append

view details

Markus Westerlind

commit sha 33513fad8089956adcbb5b9803f56de1a8e94b57

Avoid an intermediate Vec in mir simplify

view details

Markus Westerlind

commit sha 2440998666cb9fe5f35c1de9ef44849b71870fc3

perf(mir): Reserve enough space for the merged blocks before appending

view details

Sebastian Imlay

commit sha a2661695e8953199a746895e2e65225a9922753b

Merge branch 'master' of github.com:rust-lang/rust into add-tvSO-target

view details

Sebastian Imlay

commit sha 6b17330ef4f9a97bd539b55edb4e7ccdb6c00133

Merged apple_tvos_base and apple_ios_base into apple_sdk_base.

view details

Markus Westerlind

commit sha 84c024d92f34206d0f02ab814c6e5bd3abb876c3

Clarify mir block merging

view details

Sebastian Imlay

commit sha 259977158e19acccc1bbc71c8cc4449ad40a8bef

fmt

view details

Chris Simpkins

commit sha 71f92bb8123a1307bb52af63b13637d774c744eb

[tidy] update documentation from `make check` to `x.py test`

view