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++

pull request commentrust-lang/rust

Querify object_safety_violations.

Failure seems spurious.

cjgillot

comment created time in 12 hours

PR opened rust-lang/rust

Querify object_safety_violations.

Split from #69076

r? @Zoxc

+154 -154

0 comment

10 changed files

pr created time in a day

create barnchcjgillot/rust

branch : object_violations

created branch time in a day

push eventcjgillot/rust

Tobias Thiel

commit sha 51021b1d421a7d055ff44f9b6afe11377b825c5c

rustc_session: allow overriding lint level of individual lints from a group

view details

Tobias Thiel

commit sha 34417792deed6f0e570e9c7b01a24f1d05b70519

tools/compiletest: fix argument ordering for allowing unused in ui & compile-fail tests

view details

Tobias Thiel

commit sha 21edd2ae2cc4c06d8ea98051c47d24dc3c4e2238

convert match statement to if let

view details

Tobias Thiel

commit sha 3fc9253a5a27771c72429a738d5379c34e1cd924

rustc: add lint level cli ordering into the documentation

view details

John Kåre Alsaker

commit sha a7db5051d14994474c641328333884aeba70ca25

Treat NodeIs as pure values for incremental compilation

view details

John Kåre Alsaker

commit sha 8a37811e2c3b89beb135cf96dcb5d887a6262751

Panic when hashing node IDs

view details

bors

commit sha 116dff95a37214e86f067715374a18a4de1621f0

Auto merge of #68997 - Zoxc:pure-node-id, r=petrochenkov Panic if NodeIds are used for incremental compilation r? @michaelwoerister

view details

bors

commit sha 5e7af4669f80e5f682141f050193ab679afdb4b1

Auto merge of #67885 - tobithiel:fix_group_lint_allow_override, r=Mark-Simulacrum rustc_session: allow overriding lint level of individual lints from a group Fixes #58211 and fixes rust-lang/rust-clippy#4778 and fixes rust-lang/rust-clippy#4091 Instead of hard-coding the lint level preferences (from lowest to highest precedence: `lint::Allow -> lint::Warn -> lint::Deny -> lint::Forbid`), the position of the argument in the command line gets taken into account. Examples: 1. Passing `-D unused -A unused-variables` denies everything in the lint group `unused` **except** `unused-variables` which is explicitly allowed. 1. Passing `-A unused-variables -D unused` denies everything in the lint group `unused` **including** `unused-variables` since the allow is specified before the deny (and therefore overridden by the deny). This matches the behavior that is already being used when specifying `allow`/`deny` in the source code.

view details

Stein Somers

commit sha 914b855f40c10f1db627bef5543e5c2edfe50b14

Fix comments outdated during #66648

view details

Stein Somers

commit sha da226dd9dcff81aba6a6bd032057816e88555abf

Lighten tests, in particular for Miri, yet test and explain more

view details

bors

commit sha a643ee8d693b8100e6f54f2a01ff7cde05eb65c5

Auto merge of #67953 - cjgillot:split_infer, r=Zoxc Split librustc::{traits,infer} to a separate crate rustc_infer This is still very much work in progress. Three functions are between dimensions (at the end of `rustc::traits`), waiting for some dependency breaking scheme. Please tell me if the approach seems sound, and how you would like to split this PR up. The formatting is deliberately off, to ease rebasing. cc #65031

view details

bors

commit sha 3c4590facc2c48f2ca42e074a1902c2d1f162a2f

Auto merge of #68781 - ssomers:btree_miri_relief, r=RalfJung BTree: lighten the load on Miri Reduce the amount of work Miri ploughs through in btree code, in particular on `test_clone_from` (which takes up 5 minutes on my machine). r? @crgl

view details

Camille GILLOT

commit sha a2f748a99688ca7473c1a6d917149083253ea176

Move IntercrateAmbiguityCause back to rustc::traits::select.

view details

Camille GILLOT

commit sha 9eb1803115975b08b7059ce79ba716f16ad61951

Querify object_safety_violations.

view details

Camille GILLOT

commit sha 17f9ff45999141f72d197a96d3a1bdd509d13ed9

Move opaque_types::unexpected_hidden_region_diagnostic to error_reporting.

view details

Camille GILLOT

commit sha 849c0034052092b8143c79126866f88d5ea41eb6

Move traits::query::outlives_bounds::explicit_outlives_bounds to infer::outlives.

view details

Camille GILLOT

commit sha f599885b472fd1ed81968b034088bfc56293de76

Mode ProjectionCache to its own module.

view details

Camille GILLOT

commit sha f3c7b5ed1a28f8ee53e754ccbe71d7018174021f

Move rustc_infer::traits to new crate rustc_trait_engine.

view details

Camille GILLOT

commit sha 6f1956af8cb1d067eb571513aa578aa25bea121f

Split librustc_infer.

view details

Camille GILLOT

commit sha 6e5303b3c02071973a226d9def70c2df1f10187b

Make downstream crates compile.

view details

push time in 2 days

delete branch cjgillot/rust

delete branch : split_infer

delete time in 2 days

pull request commentrust-lang/rust

Split librustc::{traits,infer} to a separate crate rustc_infer

Rebased. This PR is ready for review.

cjgillot

comment created time in 2 days

delete branch cjgillot/rust

delete branch : split_safe

delete time in 2 days

create barnchcjgillot/rust

branch : split_graph_safe

created branch time in 2 days

create barnchcjgillot/rust

branch : split_safe

created branch time in 2 days

push eventcjgillot/rust

Mark Rousskov

commit sha 3b92689f3d0c3b90fa01d9873cdf01543d51c000

Relax bounds on HashMap to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to no trait bounds: K: Hash + Eq * new * with_capacity K: Eq + Hash, S: BuildHasher * with_hasher * with_capacity_and_hasher * hasher K: Eq + Hash + Debug -> K: Debug S: BuildHasher -> S <HashMap as Debug> K: Eq + Hash -> K S: BuildHasher + Default -> S: Default <HashMap as Default>

view details

Mark Rousskov

commit sha 48859db151b839518bdd9d44a2387c0f6b65d141

Relax bounds on HashSet to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to the new bound: T: Hash + Eq -> T * new * with_capacity T: Eq + Hash, S: BuildHasher -> T * with_hasher * with_capacity_and_hasher * hasher T: Eq + Hash + Debug -> T: Debug S: BuildHasher -> S <HashSet as Debug> T: Eq + Hash -> T S: BuildHasher + Default -> S: Default <HashSet as Default>

view details

Aaron Hill

commit sha 90afc0765e5e536af6307b63e1655a38df06e235

Use a `ParamEnvAnd<Predicate>` for caching in `ObligationForest` Previously, we used a plain `Predicate` to cache results (e.g. successes and failures) in ObligationForest. However, fulfillment depends on the precise `ParamEnv` used, so this is unsound in general. This commit changes the impl of `ForestObligation` for `PendingPredicateObligation` to use `ParamEnvAnd<Predicate>` instead of `Predicate` for the associated type. The associated type and method are renamed from 'predicate' to 'cache_key' to reflect the fact that type is no longer just a predicate.

view details

Tom Jakubowski

commit sha b60f08bd6d3fbe784eb47a57e0c41954454af3dd

rustdoc: NodeId is now DefId

view details

Tom Jakubowski

commit sha 05c6f329e785c9b53a50217de0f21df906ae7ba0

rustdoc: emit JS paths for struct-like variants On the backend, rustdoc now emits `paths` entries to a crate's search index for struct-like enum variants, and index items of type structfield which belong to such variants point to their variant parents in the `paths` table, rather than their enum grandparents. The path entry for a variant is the fully qualified module path plus the enum name. On the frontend, the search code recognizes structfields belonging to structlike variants in the `paths` table and re-constructs the URL to the field's anchor on the enum documentation page. closes #16017

view details

Guillaume Gomez

commit sha 8ee30dbc1b07ad7fc842ceee6d6729a1377f7a36

Add tests for struct variant field in search

view details

Matthew Jasper

commit sha 91cf0e741186a9fa3bf31b07a65dc89324c10296

Don't requery the param_env of a union Union fields have the ParamEnv of the union.

view details

Matthew Jasper

commit sha 570c1613c1225d5777af5603dcf526da9cf57e19

Remove unnecessary features in rustc_ty

view details

Matthew Jasper

commit sha 39733223fc817efba52a4204dd697192bf5da185

Add IS_MANUALLY_DROP to AdtFlags

view details

Matthew Jasper

commit sha d1965216a34dc2831cf44d2e15ad9d78403d10cc

Improve needs_drop query * Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty

view details

Matthew Jasper

commit sha d20646b2d8033f31423b5bda3e56776df115e144

Address review comments * Handle arrays with const-generic lengths * Use closure for repeated code.

view details

Matthew Jasper

commit sha 465b86253ce828e215d564fde53adf8742f0e3f6

Use correct `ParamEnv` in `Instance::resolve`

view details

Daniel Henry-Mantilla

commit sha 60274a95fef57a18113f7c48be68be31ece860eb

Added From<Vec<NonZeroU8>> for CString Updated tracking issue number Added safeguards for transmute_vec potentially being factored out elsewhere Clarified comment about avoiding mem::forget Removed unneeded unstable guard Added back a stability annotation for CI Minor documentation improvements Thanks to @Centril's code review Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Improved layout checks, type annotations and removed unaccurate comment Removed unnecessary check on array layout Adapt the stability annotation to the new 1.41 milestone Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Simplify the implementation. Use `Vec::into_raw_parts` instead of a manual implementation of `Vec::transmute`. If `Vec::into_raw_parts` uses `NonNull` instead, then the code here will need to be adjusted to take it into account (issue #65816) Reduce the whitespace of safety comments

view details

Mazdak Farrokhzad

commit sha 6509db844315882db7ec0b624ca1e7b04d72568d

or_patterns: harden bindings test

view details

Mazdak Farrokhzad

commit sha 29437e55a56c1c1251ae5f7276f3e95dac4b609a

or_patterns: rename previous test

view details

Mazdak Farrokhzad

commit sha 17e632d382dfae46e9dfa684db9bddec3e8951a7

or_patterns: test default binding modes

view details

Mazdak Farrokhzad

commit sha b5aca3128d5c0ee2441ec9ca9a9c3ae4f391ef16

typeck: refactor default binding mode logic & improve docs

view details

Nicholas Nethercote

commit sha 6bf2cc2229768faa8e86e0e8a9f5bd8ebfc817a2

Avoid instantiating many `Parser` structs in `generic_extension`. Currently, every iteration of the main loop in `generic_extension` instantiates a `Parser`, which is expensive because `Parser` is a large type. Many of those instantiations are only used immutably, particularly for simple-but-repetitive macros of the sort seen in `html5ever` and PR 68836. This commit initializes a single "base" parser outside the loop, and then uses `Cow` to avoid cloning it except for the mutating iterations. This speeds up `html5ever` runs by up to 15%.

view details

Nicholas Nethercote

commit sha f840a955bd449810e75d8320b4c46482d6dbdec1

Remove the `Cow` from `Directory`. The previous commit wrapped `Parser` within a `Cow` for the hot macro parsing path. As a result, there's no need for the `Cow` within `Directory`, because it lies within `Parser`.

view details

Nicholas Nethercote

commit sha 2a13b24d369b8619f0197993cd5dc60f7217ed72

Change condition ordering in `parse_tt`. This is a small win, because `Failure` is much more common than `Success`.

view details

push time in 2 days

push eventcjgillot/rust

Mark Rousskov

commit sha 3b92689f3d0c3b90fa01d9873cdf01543d51c000

Relax bounds on HashMap to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to no trait bounds: K: Hash + Eq * new * with_capacity K: Eq + Hash, S: BuildHasher * with_hasher * with_capacity_and_hasher * hasher K: Eq + Hash + Debug -> K: Debug S: BuildHasher -> S <HashMap as Debug> K: Eq + Hash -> K S: BuildHasher + Default -> S: Default <HashMap as Default>

view details

Mark Rousskov

commit sha 48859db151b839518bdd9d44a2387c0f6b65d141

Relax bounds on HashSet to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to the new bound: T: Hash + Eq -> T * new * with_capacity T: Eq + Hash, S: BuildHasher -> T * with_hasher * with_capacity_and_hasher * hasher T: Eq + Hash + Debug -> T: Debug S: BuildHasher -> S <HashSet as Debug> T: Eq + Hash -> T S: BuildHasher + Default -> S: Default <HashSet as Default>

view details

Aaron Hill

commit sha 90afc0765e5e536af6307b63e1655a38df06e235

Use a `ParamEnvAnd<Predicate>` for caching in `ObligationForest` Previously, we used a plain `Predicate` to cache results (e.g. successes and failures) in ObligationForest. However, fulfillment depends on the precise `ParamEnv` used, so this is unsound in general. This commit changes the impl of `ForestObligation` for `PendingPredicateObligation` to use `ParamEnvAnd<Predicate>` instead of `Predicate` for the associated type. The associated type and method are renamed from 'predicate' to 'cache_key' to reflect the fact that type is no longer just a predicate.

view details

Tom Jakubowski

commit sha b60f08bd6d3fbe784eb47a57e0c41954454af3dd

rustdoc: NodeId is now DefId

view details

Tom Jakubowski

commit sha 05c6f329e785c9b53a50217de0f21df906ae7ba0

rustdoc: emit JS paths for struct-like variants On the backend, rustdoc now emits `paths` entries to a crate's search index for struct-like enum variants, and index items of type structfield which belong to such variants point to their variant parents in the `paths` table, rather than their enum grandparents. The path entry for a variant is the fully qualified module path plus the enum name. On the frontend, the search code recognizes structfields belonging to structlike variants in the `paths` table and re-constructs the URL to the field's anchor on the enum documentation page. closes #16017

view details

Guillaume Gomez

commit sha 8ee30dbc1b07ad7fc842ceee6d6729a1377f7a36

Add tests for struct variant field in search

view details

Matthew Jasper

commit sha 91cf0e741186a9fa3bf31b07a65dc89324c10296

Don't requery the param_env of a union Union fields have the ParamEnv of the union.

view details

Matthew Jasper

commit sha 570c1613c1225d5777af5603dcf526da9cf57e19

Remove unnecessary features in rustc_ty

view details

Matthew Jasper

commit sha 39733223fc817efba52a4204dd697192bf5da185

Add IS_MANUALLY_DROP to AdtFlags

view details

Matthew Jasper

commit sha d1965216a34dc2831cf44d2e15ad9d78403d10cc

Improve needs_drop query * Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty

view details

Matthew Jasper

commit sha d20646b2d8033f31423b5bda3e56776df115e144

Address review comments * Handle arrays with const-generic lengths * Use closure for repeated code.

view details

Matthew Jasper

commit sha 465b86253ce828e215d564fde53adf8742f0e3f6

Use correct `ParamEnv` in `Instance::resolve`

view details

Daniel Henry-Mantilla

commit sha 60274a95fef57a18113f7c48be68be31ece860eb

Added From<Vec<NonZeroU8>> for CString Updated tracking issue number Added safeguards for transmute_vec potentially being factored out elsewhere Clarified comment about avoiding mem::forget Removed unneeded unstable guard Added back a stability annotation for CI Minor documentation improvements Thanks to @Centril's code review Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Improved layout checks, type annotations and removed unaccurate comment Removed unnecessary check on array layout Adapt the stability annotation to the new 1.41 milestone Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Simplify the implementation. Use `Vec::into_raw_parts` instead of a manual implementation of `Vec::transmute`. If `Vec::into_raw_parts` uses `NonNull` instead, then the code here will need to be adjusted to take it into account (issue #65816) Reduce the whitespace of safety comments

view details

Mazdak Farrokhzad

commit sha 6509db844315882db7ec0b624ca1e7b04d72568d

or_patterns: harden bindings test

view details

Mazdak Farrokhzad

commit sha 29437e55a56c1c1251ae5f7276f3e95dac4b609a

or_patterns: rename previous test

view details

Mazdak Farrokhzad

commit sha 17e632d382dfae46e9dfa684db9bddec3e8951a7

or_patterns: test default binding modes

view details

Mazdak Farrokhzad

commit sha b5aca3128d5c0ee2441ec9ca9a9c3ae4f391ef16

typeck: refactor default binding mode logic & improve docs

view details

Nicholas Nethercote

commit sha 6bf2cc2229768faa8e86e0e8a9f5bd8ebfc817a2

Avoid instantiating many `Parser` structs in `generic_extension`. Currently, every iteration of the main loop in `generic_extension` instantiates a `Parser`, which is expensive because `Parser` is a large type. Many of those instantiations are only used immutably, particularly for simple-but-repetitive macros of the sort seen in `html5ever` and PR 68836. This commit initializes a single "base" parser outside the loop, and then uses `Cow` to avoid cloning it except for the mutating iterations. This speeds up `html5ever` runs by up to 15%.

view details

Nicholas Nethercote

commit sha f840a955bd449810e75d8320b4c46482d6dbdec1

Remove the `Cow` from `Directory`. The previous commit wrapped `Parser` within a `Cow` for the hot macro parsing path. As a result, there's no need for the `Cow` within `Directory`, because it lies within `Parser`.

view details

Nicholas Nethercote

commit sha 2a13b24d369b8619f0197993cd5dc60f7217ed72

Change condition ordering in `parse_tt`. This is a small win, because `Failure` is much more common than `Success`.

view details

push time in 2 days

push eventcjgillot/rust

Aaron Hill

commit sha 90afc0765e5e536af6307b63e1655a38df06e235

Use a `ParamEnvAnd<Predicate>` for caching in `ObligationForest` Previously, we used a plain `Predicate` to cache results (e.g. successes and failures) in ObligationForest. However, fulfillment depends on the precise `ParamEnv` used, so this is unsound in general. This commit changes the impl of `ForestObligation` for `PendingPredicateObligation` to use `ParamEnvAnd<Predicate>` instead of `Predicate` for the associated type. The associated type and method are renamed from 'predicate' to 'cache_key' to reflect the fact that type is no longer just a predicate.

view details

Tom Jakubowski

commit sha b60f08bd6d3fbe784eb47a57e0c41954454af3dd

rustdoc: NodeId is now DefId

view details

Tom Jakubowski

commit sha 05c6f329e785c9b53a50217de0f21df906ae7ba0

rustdoc: emit JS paths for struct-like variants On the backend, rustdoc now emits `paths` entries to a crate's search index for struct-like enum variants, and index items of type structfield which belong to such variants point to their variant parents in the `paths` table, rather than their enum grandparents. The path entry for a variant is the fully qualified module path plus the enum name. On the frontend, the search code recognizes structfields belonging to structlike variants in the `paths` table and re-constructs the URL to the field's anchor on the enum documentation page. closes #16017

view details

Guillaume Gomez

commit sha 8ee30dbc1b07ad7fc842ceee6d6729a1377f7a36

Add tests for struct variant field in search

view details

Daniel Henry-Mantilla

commit sha 60274a95fef57a18113f7c48be68be31ece860eb

Added From<Vec<NonZeroU8>> for CString Updated tracking issue number Added safeguards for transmute_vec potentially being factored out elsewhere Clarified comment about avoiding mem::forget Removed unneeded unstable guard Added back a stability annotation for CI Minor documentation improvements Thanks to @Centril's code review Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Improved layout checks, type annotations and removed unaccurate comment Removed unnecessary check on array layout Adapt the stability annotation to the new 1.41 milestone Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Simplify the implementation. Use `Vec::into_raw_parts` instead of a manual implementation of `Vec::transmute`. If `Vec::into_raw_parts` uses `NonNull` instead, then the code here will need to be adjusted to take it into account (issue #65816) Reduce the whitespace of safety comments

view details

Mazdak Farrokhzad

commit sha 6509db844315882db7ec0b624ca1e7b04d72568d

or_patterns: harden bindings test

view details

Mazdak Farrokhzad

commit sha 29437e55a56c1c1251ae5f7276f3e95dac4b609a

or_patterns: rename previous test

view details

Mazdak Farrokhzad

commit sha 17e632d382dfae46e9dfa684db9bddec3e8951a7

or_patterns: test default binding modes

view details

Mazdak Farrokhzad

commit sha b5aca3128d5c0ee2441ec9ca9a9c3ae4f391ef16

typeck: refactor default binding mode logic & improve docs

view details

Mikhail Babenko

commit sha 953f6ecb6adc37b4f8e52102c1e7ca86cc5bc92c

fix lifetime shadowing check in GATs

view details

varkor

commit sha 38060567e89bb142e8a060d91bf53f7e82eaaae6

Correct inference of primitive operand type behind binary operation

view details

varkor

commit sha 0276d7a32e1c83abc3106f7b36b711faf1f74dff

Add more tests

view details

Mazdak Farrokhzad

commit sha ebbaf4611a9605412d2aa31c8ebaf0745557fff0

simplify_try: address some of eddyb's comments

view details

John Kåre Alsaker

commit sha 77ab0d091e32ac9ec4154bba1727fc3937975d64

Construct query job latches on-demand

view details

John Kåre Alsaker

commit sha 19c1012483fe8fb3c793a6ba83f97d896c6a6c98

Use a counter instead of pointers to the stack

view details

John Kåre Alsaker

commit sha 5de82b926486edc54d7183971fde901be9445c6b

Drop the lock guard

view details

John Kåre Alsaker

commit sha 5206827933177ab83e91c38042597b9061c85b96

Address comments

view details

Ingvar Stepanyan

commit sha 8fb8bb4b3ff25570a7a9b105c1a569bb2307f25f

Fix std::fs::copy on WASI target Previously `std::fs::copy` on wasm32-wasi would reuse code from the `sys_common` module and would successfully copy contents of the file just to fail right before closing it. This was happening because `sys_common::copy` tries to copy permissions of the file, but permissions are not a thing in WASI (at least yet) and `set_permissions` is implemented as an unconditional runtime error. This change instead adds a custom working implementation of `std::fs::copy` (like Rust already has on some other targets) that doesn't try to call `set_permissions` and is essentially a thin wrapper around `std::io::copy`. Fixes #68560.

view details

Tomasz Miąsko

commit sha 91b4a24219f33b7ad28b5ba147d50bc160c6f56c

Enable use after scope detection in the new LLVM pass manager Implementation of 08a1c566a792dcf9657d293155f7ada87746bb65 for the new LLVM pass manager, support for which landed in the meantime.

view details

Andreas Jonson

commit sha cec0ed0219c4e4961b9e7a33419d716a5ddf0e5d

add selfprofiling for new llvm passmanager

view details

push time in 2 days

delete branch cjgillot/rust

delete branch : resolve_instance

delete time in 4 days

push eventcjgillot/rust

Mark Rousskov

commit sha 3b92689f3d0c3b90fa01d9873cdf01543d51c000

Relax bounds on HashMap to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to no trait bounds: K: Hash + Eq * new * with_capacity K: Eq + Hash, S: BuildHasher * with_hasher * with_capacity_and_hasher * hasher K: Eq + Hash + Debug -> K: Debug S: BuildHasher -> S <HashMap as Debug> K: Eq + Hash -> K S: BuildHasher + Default -> S: Default <HashMap as Default>

view details

Mark Rousskov

commit sha 48859db151b839518bdd9d44a2387c0f6b65d141

Relax bounds on HashSet to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to the new bound: T: Hash + Eq -> T * new * with_capacity T: Eq + Hash, S: BuildHasher -> T * with_hasher * with_capacity_and_hasher * hasher T: Eq + Hash + Debug -> T: Debug S: BuildHasher -> S <HashSet as Debug> T: Eq + Hash -> T S: BuildHasher + Default -> S: Default <HashSet as Default>

view details

Erin Power

commit sha 49d78fcd901700c5a14e19a6679db1646b5ca901

Add GitHub issue templates

view details

Tomasz Miąsko

commit sha 7e3c51d085d9eaa2204cc18763bc7d98b66435fd

Instrument C / C++ in MemorySanitizer example Modify the example to instrument C / C++ in addition to Rust, since it will be generally required (e.g., when using libbacktrace for symbolication). Additionally use rustc specific flag to track the origins of unitialized memory rather than LLVM one.

view details

Andreas Molzer

commit sha 47ae565ed4f1b2a7cc754d4cf0af520b5e6841b9

Add a method to query the capacity of a BufWriter

view details

Andreas Molzer

commit sha aebd0d733940d62566c66a923c7b9f7078209e98

Add capacity to BufReader with same unstable gate

view details

John Kåre Alsaker

commit sha bfba6ef328bbba327cae8918e795c11b89217672

Add an option to use LLD to link the compiler on Windows platforms

view details

John Kåre Alsaker

commit sha 95318f8d859dc55cc5e06722c96f6e492529d6ca

Link a linking issue

view details

John Kåre Alsaker

commit sha 2124a85260fdf0851bb4de369d311bcfc05b205f

Don't use a whitelist for use_lld

view details

Trevor Spiteri

commit sha aa046da61f8722dfe46204cb303dbc9d2b4cb32e

rustdoc: attempt full build for compile_fail test Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.

view details

Trevor Spiteri

commit sha 6d768ddecc13c4acf45730952c0af401a990383a

error code examples: replace some ignore with compile_fail

view details

Matthew Jasper

commit sha a81c59f9b84b6519785a4e0ae9234107d149f454

Remove some unsound specializations

view details

kennytm

commit sha 847d5b4d1387a30f1798a5c3c59c3e0c31e00319

Derive Clone + PartialEq + Eq for std::string::FromUtf8Error

view details

Trevor Spiteri

commit sha fd2282388140ea0f370ee25c82f00be81c2f822c

implement AsMut<str> for String

view details

David Ross

commit sha 276734d6a4997088b6d2e7416f5d4c07b4c8acf5

Fix 59191 This adds an explicit error for when macros replace the crate root with a non-module item.

view details

David Ross

commit sha 410114b9d243020482689a94f7b254600f4d819e

Add tests for issue 59191

view details

Tyler Lanphear

commit sha 9fa54e594b371bda6e8a2bb570e645d5aa61820b

stdarch: update submodule.

view details

Friedrich von Never

commit sha b0a9e949e7afc1a77b6f73a0d3fa6b6081763a57

Strip unnecessary subexpression It became unnecessary since a06baa56b95674fc626b3c3fd680d6a65357fe60 reformatted the file.

view details

Jonas Schievink

commit sha 044fe0f558aa62926e6de9a76b95e4a74c0b1f99

Add a resume type parameter to `Generator`

view details

Jonas Schievink

commit sha 0117033c721d35ade8d815e1fbf83f10d73f15e4

Add a resume type param to the generator substs ...and unify it with `()` for now

view details

push time in 4 days

delete branch cjgillot/rust

delete branch : trait_candidate

delete time in 5 days

pull request commentrust-lang/rust

Move resolve_instance to rustc_ty.

Squashed.

cjgillot

comment created time in 5 days

push eventcjgillot/rust

Camille GILLOT

commit sha 0e652c550711b301086b8f5ead2f6c90418fe7a1

Move resolve_instance to rustc_ty.

view details

push time in 5 days

issue commentrust-lang/rust

rewrite `liveness` analysis to be based on MIR

Is this issue still relevant? Can I pick it up?

nikomatsakis

comment created time in 5 days

pull request commentrust-lang/rust

Move resolve_instance to rustc_ty.

What should be done with the perf result?

cjgillot

comment created time in 5 days

push eventcjgillot/rust

Camille GILLOT

commit sha 2a899e2a2f3eb442af7637f3b9fce529f8441978

Make TraitCandidate generic.

view details

push time in 5 days

push eventcjgillot/rust

Mark Rousskov

commit sha 3b92689f3d0c3b90fa01d9873cdf01543d51c000

Relax bounds on HashMap to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to no trait bounds: K: Hash + Eq * new * with_capacity K: Eq + Hash, S: BuildHasher * with_hasher * with_capacity_and_hasher * hasher K: Eq + Hash + Debug -> K: Debug S: BuildHasher -> S <HashMap as Debug> K: Eq + Hash -> K S: BuildHasher + Default -> S: Default <HashMap as Default>

view details

Mark Rousskov

commit sha 48859db151b839518bdd9d44a2387c0f6b65d141

Relax bounds on HashSet to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to the new bound: T: Hash + Eq -> T * new * with_capacity T: Eq + Hash, S: BuildHasher -> T * with_hasher * with_capacity_and_hasher * hasher T: Eq + Hash + Debug -> T: Debug S: BuildHasher -> S <HashSet as Debug> T: Eq + Hash -> T S: BuildHasher + Default -> S: Default <HashSet as Default>

view details

Matthew Jasper

commit sha 91cf0e741186a9fa3bf31b07a65dc89324c10296

Don't requery the param_env of a union Union fields have the ParamEnv of the union.

view details

Matthew Jasper

commit sha 570c1613c1225d5777af5603dcf526da9cf57e19

Remove unnecessary features in rustc_ty

view details

Matthew Jasper

commit sha 39733223fc817efba52a4204dd697192bf5da185

Add IS_MANUALLY_DROP to AdtFlags

view details

Matthew Jasper

commit sha d1965216a34dc2831cf44d2e15ad9d78403d10cc

Improve needs_drop query * Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty

view details

Matthew Jasper

commit sha d20646b2d8033f31423b5bda3e56776df115e144

Address review comments * Handle arrays with const-generic lengths * Use closure for repeated code.

view details

Matthew Jasper

commit sha 465b86253ce828e215d564fde53adf8742f0e3f6

Use correct `ParamEnv` in `Instance::resolve`

view details

Nicholas Nethercote

commit sha 6bf2cc2229768faa8e86e0e8a9f5bd8ebfc817a2

Avoid instantiating many `Parser` structs in `generic_extension`. Currently, every iteration of the main loop in `generic_extension` instantiates a `Parser`, which is expensive because `Parser` is a large type. Many of those instantiations are only used immutably, particularly for simple-but-repetitive macros of the sort seen in `html5ever` and PR 68836. This commit initializes a single "base" parser outside the loop, and then uses `Cow` to avoid cloning it except for the mutating iterations. This speeds up `html5ever` runs by up to 15%.

view details

Nicholas Nethercote

commit sha f840a955bd449810e75d8320b4c46482d6dbdec1

Remove the `Cow` from `Directory`. The previous commit wrapped `Parser` within a `Cow` for the hot macro parsing path. As a result, there's no need for the `Cow` within `Directory`, because it lies within `Parser`.

view details

Nicholas Nethercote

commit sha 2a13b24d369b8619f0197993cd5dc60f7217ed72

Change condition ordering in `parse_tt`. This is a small win, because `Failure` is much more common than `Success`.

view details

Esteban Küber

commit sha 97d47a5e7c41274eacbec55a4c08112407c78ff5

Account for type params on method without parens

view details

matthewjasper

commit sha 3eb524188451fcec6cd5ed7e3cba2404021b75eb

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

view details

Matthew Jasper

commit sha 842938a82f673f0483e40328709c3887a2091534

cache adt_drop_tys

view details

Ralf Jung

commit sha 202d401c2504f17133c50505b82fe4278ab2c842

miri: simplify singed operator overflow detection

view details

Ralf Jung

commit sha 28f85c6ffad77554150e7cab4ccac38b26621bdb

bring back extra check for int_min%-1

view details

Ralf Jung

commit sha 7d2f6ae00149e4fdfeb9eedc9cb7433f6e67cf42

miri: equip unary_op with overflow detection

view details

Ralf Jung

commit sha ae23f7020a5cb9a201e83f20f151282368b1f494

const-prop: use overflowing_unary_op for overflowing checking of unary ops

view details

Aaron Hill

commit sha a60669d95cdad0e28cf28790b717bbcf235153f8

Properly use parent generics for opaque types Fixes #67844 Previously, opaque types would only get parent generics if they a return-position-impl-trait (e.g. `fn foo<A>() -> impl MyTrait<A>`). However, it's possible for opaque types to be nested inside one another: ```rust trait WithAssoc { type AssocType; } trait WithParam<A> {} type Return<A> = impl WithAssoc<AssocType = impl WithParam<A>>; ``` When this occurs, we need to ensure that the nested opaque types properly inherit generic parameters from their parent opaque type. This commit fixes the `generics_of` query to take the parent item into account when determining the generics for an opaque type.

view details

Nicholas Nethercote

commit sha f8a02864afa2faecc3cb9cb8f81905a61a638ade

Speed up `SipHasher128`. The current code in `SipHasher128::short_write` is inefficient. It uses `u8to64_le` (which is complex and slow) to extract just the right number of bytes of the input into a u64 and pad the result with zeroes. It then left-shifts that value in order to bitwise-OR it with `self.tail`. For example, imagine we have a u32 input 0xIIHH_GGFF and only need three bytes to fill up `self.tail`. The current code uses `u8to64_le` to construct 0x0000_0000_00HH_GGFF, which is just 0xIIHH_GGFF with the 0xII removed and zero-extended to a u64. The code then left-shifts that value by five bytes -- discarding the 0x00 byte that replaced the 0xII byte! -- to give 0xHHGG_FF00_0000_0000. It then then ORs that value with self.tail. There's a much simpler way to do it: zero-extend to u64 first, then left shift. E.g. 0xIIHH_GGFF is zero-extended to 0x0000_0000_IIHH_GGFF, and then left-shifted to 0xHHGG_FF00_0000_0000. We don't have to take time to exclude the unneeded 0xII byte, because it just gets shifted out anyway! It also avoids multiple occurrences of `unsafe`. There's a similar story with the setting of `self.tail` at the method's end. The current code uses `u8to64_le` to extract the remaining part of the input, but the same effect can be achieved more quickly with a right shift on the zero-extended input. All that works on little-endian. It doesn't work for big-endian, but we can just do a `to_le` before calling `short_write` and then it works. This commit changes `SipHasher128` to use the simpler shift-based approach. The code is also smaller, which means that `short_write` is now inlined where previously it wasn't, which makes things faster again. This gives big speed-ups for all incremental builds, especially "baseline" incremental builds.

view details

push time in 5 days

push eventcjgillot/rust

Mark Rousskov

commit sha 3b92689f3d0c3b90fa01d9873cdf01543d51c000

Relax bounds on HashMap to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to no trait bounds: K: Hash + Eq * new * with_capacity K: Eq + Hash, S: BuildHasher * with_hasher * with_capacity_and_hasher * hasher K: Eq + Hash + Debug -> K: Debug S: BuildHasher -> S <HashMap as Debug> K: Eq + Hash -> K S: BuildHasher + Default -> S: Default <HashMap as Default>

view details

Mark Rousskov

commit sha 48859db151b839518bdd9d44a2387c0f6b65d141

Relax bounds on HashSet to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to the new bound: T: Hash + Eq -> T * new * with_capacity T: Eq + Hash, S: BuildHasher -> T * with_hasher * with_capacity_and_hasher * hasher T: Eq + Hash + Debug -> T: Debug S: BuildHasher -> S <HashSet as Debug> T: Eq + Hash -> T S: BuildHasher + Default -> S: Default <HashSet as Default>

view details

Matthew Jasper

commit sha 91cf0e741186a9fa3bf31b07a65dc89324c10296

Don't requery the param_env of a union Union fields have the ParamEnv of the union.

view details

Matthew Jasper

commit sha 570c1613c1225d5777af5603dcf526da9cf57e19

Remove unnecessary features in rustc_ty

view details

Matthew Jasper

commit sha 39733223fc817efba52a4204dd697192bf5da185

Add IS_MANUALLY_DROP to AdtFlags

view details

Matthew Jasper

commit sha d1965216a34dc2831cf44d2e15ad9d78403d10cc

Improve needs_drop query * Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty

view details

Matthew Jasper

commit sha d20646b2d8033f31423b5bda3e56776df115e144

Address review comments * Handle arrays with const-generic lengths * Use closure for repeated code.

view details

Matthew Jasper

commit sha 465b86253ce828e215d564fde53adf8742f0e3f6

Use correct `ParamEnv` in `Instance::resolve`

view details

Nicholas Nethercote

commit sha 6bf2cc2229768faa8e86e0e8a9f5bd8ebfc817a2

Avoid instantiating many `Parser` structs in `generic_extension`. Currently, every iteration of the main loop in `generic_extension` instantiates a `Parser`, which is expensive because `Parser` is a large type. Many of those instantiations are only used immutably, particularly for simple-but-repetitive macros of the sort seen in `html5ever` and PR 68836. This commit initializes a single "base" parser outside the loop, and then uses `Cow` to avoid cloning it except for the mutating iterations. This speeds up `html5ever` runs by up to 15%.

view details

Nicholas Nethercote

commit sha f840a955bd449810e75d8320b4c46482d6dbdec1

Remove the `Cow` from `Directory`. The previous commit wrapped `Parser` within a `Cow` for the hot macro parsing path. As a result, there's no need for the `Cow` within `Directory`, because it lies within `Parser`.

view details

Nicholas Nethercote

commit sha 2a13b24d369b8619f0197993cd5dc60f7217ed72

Change condition ordering in `parse_tt`. This is a small win, because `Failure` is much more common than `Success`.

view details

Esteban Küber

commit sha 97d47a5e7c41274eacbec55a4c08112407c78ff5

Account for type params on method without parens

view details

matthewjasper

commit sha 3eb524188451fcec6cd5ed7e3cba2404021b75eb

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

view details

Matthew Jasper

commit sha 842938a82f673f0483e40328709c3887a2091534

cache adt_drop_tys

view details

Ralf Jung

commit sha 202d401c2504f17133c50505b82fe4278ab2c842

miri: simplify singed operator overflow detection

view details

Ralf Jung

commit sha 28f85c6ffad77554150e7cab4ccac38b26621bdb

bring back extra check for int_min%-1

view details

Ralf Jung

commit sha 7d2f6ae00149e4fdfeb9eedc9cb7433f6e67cf42

miri: equip unary_op with overflow detection

view details

Ralf Jung

commit sha ae23f7020a5cb9a201e83f20f151282368b1f494

const-prop: use overflowing_unary_op for overflowing checking of unary ops

view details

Aaron Hill

commit sha a60669d95cdad0e28cf28790b717bbcf235153f8

Properly use parent generics for opaque types Fixes #67844 Previously, opaque types would only get parent generics if they a return-position-impl-trait (e.g. `fn foo<A>() -> impl MyTrait<A>`). However, it's possible for opaque types to be nested inside one another: ```rust trait WithAssoc { type AssocType; } trait WithParam<A> {} type Return<A> = impl WithAssoc<AssocType = impl WithParam<A>>; ``` When this occurs, we need to ensure that the nested opaque types properly inherit generic parameters from their parent opaque type. This commit fixes the `generics_of` query to take the parent item into account when determining the generics for an opaque type.

view details

Nicholas Nethercote

commit sha f8a02864afa2faecc3cb9cb8f81905a61a638ade

Speed up `SipHasher128`. The current code in `SipHasher128::short_write` is inefficient. It uses `u8to64_le` (which is complex and slow) to extract just the right number of bytes of the input into a u64 and pad the result with zeroes. It then left-shifts that value in order to bitwise-OR it with `self.tail`. For example, imagine we have a u32 input 0xIIHH_GGFF and only need three bytes to fill up `self.tail`. The current code uses `u8to64_le` to construct 0x0000_0000_00HH_GGFF, which is just 0xIIHH_GGFF with the 0xII removed and zero-extended to a u64. The code then left-shifts that value by five bytes -- discarding the 0x00 byte that replaced the 0xII byte! -- to give 0xHHGG_FF00_0000_0000. It then then ORs that value with self.tail. There's a much simpler way to do it: zero-extend to u64 first, then left shift. E.g. 0xIIHH_GGFF is zero-extended to 0x0000_0000_IIHH_GGFF, and then left-shifted to 0xHHGG_FF00_0000_0000. We don't have to take time to exclude the unneeded 0xII byte, because it just gets shifted out anyway! It also avoids multiple occurrences of `unsafe`. There's a similar story with the setting of `self.tail` at the method's end. The current code uses `u8to64_le` to extract the remaining part of the input, but the same effect can be achieved more quickly with a right shift on the zero-extended input. All that works on little-endian. It doesn't work for big-endian, but we can just do a `to_le` before calling `short_write` and then it works. This commit changes `SipHasher128` to use the simpler shift-based approach. The code is also smaller, which means that `short_write` is now inlined where previously it wasn't, which makes things faster again. This gives big speed-ups for all incremental builds, especially "baseline" incremental builds.

view details

push time in 5 days

push eventcjgillot/rust

Mark Rousskov

commit sha 3b92689f3d0c3b90fa01d9873cdf01543d51c000

Relax bounds on HashMap to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to no trait bounds: K: Hash + Eq * new * with_capacity K: Eq + Hash, S: BuildHasher * with_hasher * with_capacity_and_hasher * hasher K: Eq + Hash + Debug -> K: Debug S: BuildHasher -> S <HashMap as Debug> K: Eq + Hash -> K S: BuildHasher + Default -> S: Default <HashMap as Default>

view details

Mark Rousskov

commit sha 48859db151b839518bdd9d44a2387c0f6b65d141

Relax bounds on HashSet to match hashbrown No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to the new bound: T: Hash + Eq -> T * new * with_capacity T: Eq + Hash, S: BuildHasher -> T * with_hasher * with_capacity_and_hasher * hasher T: Eq + Hash + Debug -> T: Debug S: BuildHasher -> S <HashSet as Debug> T: Eq + Hash -> T S: BuildHasher + Default -> S: Default <HashSet as Default>

view details

Matthew Jasper

commit sha 91cf0e741186a9fa3bf31b07a65dc89324c10296

Don't requery the param_env of a union Union fields have the ParamEnv of the union.

view details

Matthew Jasper

commit sha 570c1613c1225d5777af5603dcf526da9cf57e19

Remove unnecessary features in rustc_ty

view details

Matthew Jasper

commit sha 39733223fc817efba52a4204dd697192bf5da185

Add IS_MANUALLY_DROP to AdtFlags

view details

Matthew Jasper

commit sha d1965216a34dc2831cf44d2e15ad9d78403d10cc

Improve needs_drop query * Handle cycles in `needs_drop` correctly * Normalize types when computing `needs_drop` * Move queries from rustc to rustc_ty

view details

Matthew Jasper

commit sha d20646b2d8033f31423b5bda3e56776df115e144

Address review comments * Handle arrays with const-generic lengths * Use closure for repeated code.

view details

Matthew Jasper

commit sha 465b86253ce828e215d564fde53adf8742f0e3f6

Use correct `ParamEnv` in `Instance::resolve`

view details

Nicholas Nethercote

commit sha 6bf2cc2229768faa8e86e0e8a9f5bd8ebfc817a2

Avoid instantiating many `Parser` structs in `generic_extension`. Currently, every iteration of the main loop in `generic_extension` instantiates a `Parser`, which is expensive because `Parser` is a large type. Many of those instantiations are only used immutably, particularly for simple-but-repetitive macros of the sort seen in `html5ever` and PR 68836. This commit initializes a single "base" parser outside the loop, and then uses `Cow` to avoid cloning it except for the mutating iterations. This speeds up `html5ever` runs by up to 15%.

view details

Nicholas Nethercote

commit sha f840a955bd449810e75d8320b4c46482d6dbdec1

Remove the `Cow` from `Directory`. The previous commit wrapped `Parser` within a `Cow` for the hot macro parsing path. As a result, there's no need for the `Cow` within `Directory`, because it lies within `Parser`.

view details

Nicholas Nethercote

commit sha 2a13b24d369b8619f0197993cd5dc60f7217ed72

Change condition ordering in `parse_tt`. This is a small win, because `Failure` is much more common than `Success`.

view details

Esteban Küber

commit sha 97d47a5e7c41274eacbec55a4c08112407c78ff5

Account for type params on method without parens

view details

matthewjasper

commit sha 3eb524188451fcec6cd5ed7e3cba2404021b75eb

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

view details

Matthew Jasper

commit sha 842938a82f673f0483e40328709c3887a2091534

cache adt_drop_tys

view details

Ralf Jung

commit sha 202d401c2504f17133c50505b82fe4278ab2c842

miri: simplify singed operator overflow detection

view details

Ralf Jung

commit sha 28f85c6ffad77554150e7cab4ccac38b26621bdb

bring back extra check for int_min%-1

view details

Ralf Jung

commit sha 7d2f6ae00149e4fdfeb9eedc9cb7433f6e67cf42

miri: equip unary_op with overflow detection

view details

Ralf Jung

commit sha ae23f7020a5cb9a201e83f20f151282368b1f494

const-prop: use overflowing_unary_op for overflowing checking of unary ops

view details

Aaron Hill

commit sha a60669d95cdad0e28cf28790b717bbcf235153f8

Properly use parent generics for opaque types Fixes #67844 Previously, opaque types would only get parent generics if they a return-position-impl-trait (e.g. `fn foo<A>() -> impl MyTrait<A>`). However, it's possible for opaque types to be nested inside one another: ```rust trait WithAssoc { type AssocType; } trait WithParam<A> {} type Return<A> = impl WithAssoc<AssocType = impl WithParam<A>>; ``` When this occurs, we need to ensure that the nested opaque types properly inherit generic parameters from their parent opaque type. This commit fixes the `generics_of` query to take the parent item into account when determining the generics for an opaque type.

view details

Nicholas Nethercote

commit sha f8a02864afa2faecc3cb9cb8f81905a61a638ade

Speed up `SipHasher128`. The current code in `SipHasher128::short_write` is inefficient. It uses `u8to64_le` (which is complex and slow) to extract just the right number of bytes of the input into a u64 and pad the result with zeroes. It then left-shifts that value in order to bitwise-OR it with `self.tail`. For example, imagine we have a u32 input 0xIIHH_GGFF and only need three bytes to fill up `self.tail`. The current code uses `u8to64_le` to construct 0x0000_0000_00HH_GGFF, which is just 0xIIHH_GGFF with the 0xII removed and zero-extended to a u64. The code then left-shifts that value by five bytes -- discarding the 0x00 byte that replaced the 0xII byte! -- to give 0xHHGG_FF00_0000_0000. It then then ORs that value with self.tail. There's a much simpler way to do it: zero-extend to u64 first, then left shift. E.g. 0xIIHH_GGFF is zero-extended to 0x0000_0000_IIHH_GGFF, and then left-shifted to 0xHHGG_FF00_0000_0000. We don't have to take time to exclude the unneeded 0xII byte, because it just gets shifted out anyway! It also avoids multiple occurrences of `unsafe`. There's a similar story with the setting of `self.tail` at the method's end. The current code uses `u8to64_le` to extract the remaining part of the input, but the same effect can be achieved more quickly with a right shift on the zero-extended input. All that works on little-endian. It doesn't work for big-endian, but we can just do a `to_le` before calling `short_write` and then it works. This commit changes `SipHasher128` to use the simpler shift-based approach. The code is also smaller, which means that `short_write` is now inlined where previously it wasn't, which makes things faster again. This gives big speed-ups for all incremental builds, especially "baseline" incremental builds.

view details

push time in 5 days

push eventcjgillot/rust

Camille GILLOT

commit sha 2cd7aeb167864dccf4d80d5bb80fc2b4eb4485f6

Simplify type ascriptions.

view details

Camille GILLOT

commit sha 4f8a02c7ab58e4b98f6798e9a20af4118da0cf75

Move resolve_instance to rustc_ty.

view details

push time in 6 days

PR opened rust-lang/rust

Use HirId in TraitCandidate.

I had to duplicate the TraitMap type to hold NodeIds until AST->HIR lowering is done.

r? @Zoxc

+31 -16

0 comment

7 changed files

pr created time in 6 days

push eventcjgillot/rust

Camille GILLOT

commit sha 26201981a363fe97d5fc1d55c987716f10876ae7

Use HirId in TraitCandidate.

view details

push time in 6 days

push eventcjgillot/rust

Camille GILLOT

commit sha 91202344af5f82a38eb754ac73404458822143d4

Use HirId in TraitCandidate.

view details

push time in 6 days

create barnchcjgillot/rust

branch : trait_candidate

created branch time in 6 days

pull request commentrust-lang/rust

Split librustc::{traits,infer} to a separate crate rustc_infer

Rebased on top of #69100, so we can avoid waiting for #67797.

cjgillot

comment created time in 6 days

push eventcjgillot/rust

Chris Simpkins

commit sha 3998249ae77f3a6e1c6e44de944e9d5928963594

remove unnecessary local variable assignment in context manager

view details

Chris Simpkins

commit sha 19aaf639459705e2b397f2b8a12f3d73ef0748b2

PEP8 format spacing

view details

Chris Simpkins

commit sha 6ce8d2b00005143d5f0fb0c9b712ece7709b3ecf

PEP8 format spacing

view details

Chris Simpkins

commit sha adde3d443d042cd53f7448ce1d6f32e1634fcf28

PEP8 format spacing

view details

Chris Simpkins

commit sha 60889d418e37897e272844d15b03fed62c60b92d

remove unnecessary semicolons

view details

Chris Simpkins

commit sha e30dd86c61c8159b02940b888d876a57d8b07b7e

PEP8 format spacing

view details

Chris Simpkins

commit sha f38e2701d862379eca06475d196438038ca72564

remove unnecessary sys import

view details

Chris Simpkins

commit sha d36634315a9e07ca4517b9d04c5bd10f218d61d8

PEP8 format spacing

view details

Chris Simpkins

commit sha a53f45fe90daf376558d018bc0a474d2a83626f0

PEP8 format spacing, split import statements

view details

Chris Simpkins

commit sha 8d04b95188fc96236472b7affae73ccfc5547636

remove unnecessary import statement

view details

Chris Simpkins

commit sha 85e3661214564010bdb6858d3253c214e686dc04

PEP8 format spacing, remove unnecessary local variable assignment

view details

Chris Simpkins

commit sha 814aa0667b211ddde79b0ce774f4f35ae0acb893

PEP8 format spacing

view details

Chris Simpkins

commit sha 9b10fc4205b30954a1296276975fdb8f2a86bbc3

remove unnecessary import statement, PEP8 format spacing

view details

Chris Simpkins

commit sha 77d158d4016a07e7a7f09c4f380a8c58aa8877d1

shorten comment blocks to < 100 characters

view details

Tim Diekmann

commit sha 25de80ad232b84ce581fe67cc08b43e9db6b0b1f

Remove common usage pattern from `AllocRef`

view details

Tim Diekmann

commit sha 97d1f8d9bbb6ae25d22f5193006becf37a57d226

Add missing `_zeroed` varants to `AllocRef`

view details

Felix S. Klock II

commit sha 88747ffe6344e074b52727d8bcf2416032c2d3f2

Add `#[repr(no_niche)]`. This repr-hint makes a struct/enum hide any niche within from its surrounding type-construction context. It is meant (at least initially) as an implementation detail for resolving issue 68303. We will not stabilize the repr-hint unless someone finds motivation for doing so. (So, declaration of `no_niche` feature lives in section of file where other internal implementation details are grouped, and deliberately leaves out the tracking issue number.) incorporated review feedback, and fixed post-rebase.

view details

Felix S. Klock II

commit sha 35e3b4d1d879851610cff152f0996a895da7cae1

tests for `#[repr(no_niche)]`.

view details

Felix S. Klock II

commit sha 3e047229efc892492f6561de4a894ae9710d8533

Add `repr(no_niche)` to `UnsafeCell`. Fix #68303.

view details

Jethro Beekman

commit sha 1b12232b8f6ede69485d4fd48f1ac8044d5d7c7c

Fix SGX RWLock representation for UnsafeCell niche fix

view details

push time in 6 days

push eventcjgillot/rust

Chris Simpkins

commit sha 3998249ae77f3a6e1c6e44de944e9d5928963594

remove unnecessary local variable assignment in context manager

view details

Chris Simpkins

commit sha 19aaf639459705e2b397f2b8a12f3d73ef0748b2

PEP8 format spacing

view details

Chris Simpkins

commit sha 6ce8d2b00005143d5f0fb0c9b712ece7709b3ecf

PEP8 format spacing

view details

Chris Simpkins

commit sha adde3d443d042cd53f7448ce1d6f32e1634fcf28

PEP8 format spacing

view details

Chris Simpkins

commit sha 60889d418e37897e272844d15b03fed62c60b92d

remove unnecessary semicolons

view details

Chris Simpkins

commit sha e30dd86c61c8159b02940b888d876a57d8b07b7e

PEP8 format spacing

view details

Chris Simpkins

commit sha f38e2701d862379eca06475d196438038ca72564

remove unnecessary sys import

view details

Chris Simpkins

commit sha d36634315a9e07ca4517b9d04c5bd10f218d61d8

PEP8 format spacing

view details

Chris Simpkins

commit sha a53f45fe90daf376558d018bc0a474d2a83626f0

PEP8 format spacing, split import statements

view details

Chris Simpkins

commit sha 8d04b95188fc96236472b7affae73ccfc5547636

remove unnecessary import statement

view details

Chris Simpkins

commit sha 85e3661214564010bdb6858d3253c214e686dc04

PEP8 format spacing, remove unnecessary local variable assignment

view details

Chris Simpkins

commit sha 814aa0667b211ddde79b0ce774f4f35ae0acb893

PEP8 format spacing

view details

Chris Simpkins

commit sha 9b10fc4205b30954a1296276975fdb8f2a86bbc3

remove unnecessary import statement, PEP8 format spacing

view details

Chris Simpkins

commit sha 77d158d4016a07e7a7f09c4f380a8c58aa8877d1

shorten comment blocks to < 100 characters

view details

Tim Diekmann

commit sha 25de80ad232b84ce581fe67cc08b43e9db6b0b1f

Remove common usage pattern from `AllocRef`

view details

Tim Diekmann

commit sha 97d1f8d9bbb6ae25d22f5193006becf37a57d226

Add missing `_zeroed` varants to `AllocRef`

view details

Felix S. Klock II

commit sha 88747ffe6344e074b52727d8bcf2416032c2d3f2

Add `#[repr(no_niche)]`. This repr-hint makes a struct/enum hide any niche within from its surrounding type-construction context. It is meant (at least initially) as an implementation detail for resolving issue 68303. We will not stabilize the repr-hint unless someone finds motivation for doing so. (So, declaration of `no_niche` feature lives in section of file where other internal implementation details are grouped, and deliberately leaves out the tracking issue number.) incorporated review feedback, and fixed post-rebase.

view details

Felix S. Klock II

commit sha 35e3b4d1d879851610cff152f0996a895da7cae1

tests for `#[repr(no_niche)]`.

view details

Felix S. Klock II

commit sha 3e047229efc892492f6561de4a894ae9710d8533

Add `repr(no_niche)` to `UnsafeCell`. Fix #68303.

view details

Jethro Beekman

commit sha 1b12232b8f6ede69485d4fd48f1ac8044d5d7c7c

Fix SGX RWLock representation for UnsafeCell niche fix

view details

push time in 6 days

push eventcjgillot/rust

Chris Simpkins

commit sha 3998249ae77f3a6e1c6e44de944e9d5928963594

remove unnecessary local variable assignment in context manager

view details

Chris Simpkins

commit sha 19aaf639459705e2b397f2b8a12f3d73ef0748b2

PEP8 format spacing

view details

Chris Simpkins

commit sha 6ce8d2b00005143d5f0fb0c9b712ece7709b3ecf

PEP8 format spacing

view details

Chris Simpkins

commit sha adde3d443d042cd53f7448ce1d6f32e1634fcf28

PEP8 format spacing

view details

Chris Simpkins

commit sha 60889d418e37897e272844d15b03fed62c60b92d

remove unnecessary semicolons

view details

Chris Simpkins

commit sha e30dd86c61c8159b02940b888d876a57d8b07b7e

PEP8 format spacing

view details

Chris Simpkins

commit sha f38e2701d862379eca06475d196438038ca72564

remove unnecessary sys import

view details

Chris Simpkins

commit sha d36634315a9e07ca4517b9d04c5bd10f218d61d8

PEP8 format spacing

view details

Chris Simpkins

commit sha a53f45fe90daf376558d018bc0a474d2a83626f0

PEP8 format spacing, split import statements

view details

Chris Simpkins

commit sha 8d04b95188fc96236472b7affae73ccfc5547636

remove unnecessary import statement

view details

Chris Simpkins

commit sha 85e3661214564010bdb6858d3253c214e686dc04

PEP8 format spacing, remove unnecessary local variable assignment

view details

Chris Simpkins

commit sha 814aa0667b211ddde79b0ce774f4f35ae0acb893

PEP8 format spacing

view details

Chris Simpkins

commit sha 9b10fc4205b30954a1296276975fdb8f2a86bbc3

remove unnecessary import statement, PEP8 format spacing

view details

Chris Simpkins

commit sha 77d158d4016a07e7a7f09c4f380a8c58aa8877d1

shorten comment blocks to < 100 characters

view details

Tim Diekmann

commit sha 25de80ad232b84ce581fe67cc08b43e9db6b0b1f

Remove common usage pattern from `AllocRef`

view details

Tim Diekmann

commit sha 97d1f8d9bbb6ae25d22f5193006becf37a57d226

Add missing `_zeroed` varants to `AllocRef`

view details

Felix S. Klock II

commit sha 88747ffe6344e074b52727d8bcf2416032c2d3f2

Add `#[repr(no_niche)]`. This repr-hint makes a struct/enum hide any niche within from its surrounding type-construction context. It is meant (at least initially) as an implementation detail for resolving issue 68303. We will not stabilize the repr-hint unless someone finds motivation for doing so. (So, declaration of `no_niche` feature lives in section of file where other internal implementation details are grouped, and deliberately leaves out the tracking issue number.) incorporated review feedback, and fixed post-rebase.

view details

Felix S. Klock II

commit sha 35e3b4d1d879851610cff152f0996a895da7cae1

tests for `#[repr(no_niche)]`.

view details

Felix S. Klock II

commit sha 3e047229efc892492f6561de4a894ae9710d8533

Add `repr(no_niche)` to `UnsafeCell`. Fix #68303.

view details

Jethro Beekman

commit sha 1b12232b8f6ede69485d4fd48f1ac8044d5d7c7c

Fix SGX RWLock representation for UnsafeCell niche fix

view details

push time in 6 days

PR opened rust-lang/rust

Move resolve_instance to rustc_resolve.

r? @Zoxc

+178 -124

0 comment

7 changed files

pr created time in 6 days

create barnchcjgillot/rust

branch : resolve_instance

created branch time in 6 days

delete branch cjgillot/rust

delete branch : lang_items

delete time in 6 days

push eventcjgillot/rust

kennytm

commit sha 847d5b4d1387a30f1798a5c3c59c3e0c31e00319

Derive Clone + PartialEq + Eq for std::string::FromUtf8Error

view details

Trevor Spiteri

commit sha fd2282388140ea0f370ee25c82f00be81c2f822c

implement AsMut<str> for String

view details

Esteban Küber

commit sha 109d5c189f4b5c3405a7d6cfb312e04d866c0c31

Tweak borrow error on `FnMut` when `Fn` is expected

view details

bjorn3

commit sha bdacdf49e532ce869d1eb96e967fd77991566a7f

Remove unused core_intrinsics feature gate from bootstrap

view details

bjorn3

commit sha 095963f91d525951cb0183648c47c427fb69f16d

Remove unused feature gates from librustc

view details

bjorn3

commit sha f9971c5cba0a141d3f00737292a40e3cacf44ac0

Remove unused feature gates from cg_llvm Also turns a few `box` into `Box::new`

view details

bjorn3

commit sha c2da8b3f0d669cb5d6e7d1338aed91fd1c76b8a3

Remove unused feature gates from cg_ssa and cg_utils

view details

bjorn3

commit sha 2a4596abfb4449371982c824c330e30f4ae0d1ee

Remove unused feature gates from librustc_data_structures

view details

bjorn3

commit sha cf862df494438923295ae4ca78b40787c6b89d53

Remove unused feature gates from librustc_driver

view details

bjorn3

commit sha 3e61d52784bd20140a8124d41a9661378b65f40e

Remove unused feature gates from librustc_errors

view details

Josh White

commit sha 82684ad30a0929afba9463b89232730a9c6dadf4

Added long error description & modifed error_codes.rs

view details

Eduard-Mihai Burtescu

commit sha b82f6c575e53f06c3645f66a9d480b4f025ee39e

rustc_codegen_llvm: always set AlwaysPreserve on all debuginfo variables.

view details

Josh White

commit sha 4a1c6ce23547346757fa8b61207aea7eb6997aa3

Added long error description & modifed error_codes.rs

view details

Josh White

commit sha 201a262ac4a9cb61e4e94d8e841a973fee0edc86

Revised error long description

view details

Josh White

commit sha cdf2f30d6a364b49dcd919530c60799e8793a2e6

Merge branch 'E0637' of https://github.com/jwhite927/rust into E0637

view details

Josh White

commit sha 1923586286dea1a0f8ece43056126fc2ecc89337

Edited error description

view details

Josh White

commit sha 78df44655aa8547baa25ee9ca49699ad82c7f76d

Tidied up the long error description

view details

bjorn3

commit sha d252791a93b7ad26c9af63b68d223164a3678e8e

Remove unused feature gate from librustc_incremental

view details

bjorn3

commit sha 6638b867022fb1d2a56b6ed5f899e9fd00183396

Remove unused feature gates from librustc_interface

view details

bjorn3

commit sha 74994af266a83edb9f82f8175de0c5c84bd849a0

Remove unused feature gate from librustc_lint

view details

push time in 7 days

push eventcjgillot/rust

Camille GILLOT

commit sha 0469cb10b237bcd52fa80d13c9d2bb449bbd0d9b

Remove librustc_infer crate re-exports.

view details

Camille GILLOT

commit sha f1f20a9368fdb7db46f3d64f54d37be3fa2ff962

Prune features.

view details

Camille GILLOT

commit sha c316aedc120d1f5ee665dbe768e3c384cf4c717e

Gate macro use.

view details

Camille GILLOT

commit sha 997d4c17e533e25c80204b6953b289a0184bb7b3

Prune rustc dependencies.

view details

push time in 7 days

PR opened rust-lang/rust

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

Followup on #67953.

I tried to follow the existing module structures.

cc @eddyb
r? @Zoxc

+11230 -10132

0 comment

188 changed files

pr created time in 7 days

push eventcjgillot/rust

Erin Power

commit sha 49d78fcd901700c5a14e19a6679db1646b5ca901

Add GitHub issue templates

view details

John Kåre Alsaker

commit sha bfba6ef328bbba327cae8918e795c11b89217672

Add an option to use LLD to link the compiler on Windows platforms

view details

John Kåre Alsaker

commit sha 95318f8d859dc55cc5e06722c96f6e492529d6ca

Link a linking issue

view details

John Kåre Alsaker

commit sha 2124a85260fdf0851bb4de369d311bcfc05b205f

Don't use a whitelist for use_lld

view details

Trevor Spiteri

commit sha aa046da61f8722dfe46204cb303dbc9d2b4cb32e

rustdoc: attempt full build for compile_fail test Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.

view details

Trevor Spiteri

commit sha 6d768ddecc13c4acf45730952c0af401a990383a

error code examples: replace some ignore with compile_fail

view details

Matthew Jasper

commit sha a81c59f9b84b6519785a4e0ae9234107d149f454

Remove some unsound specializations

view details

kennytm

commit sha 847d5b4d1387a30f1798a5c3c59c3e0c31e00319

Derive Clone + PartialEq + Eq for std::string::FromUtf8Error

view details

Trevor Spiteri

commit sha fd2282388140ea0f370ee25c82f00be81c2f822c

implement AsMut<str> for String

view details

Tyler Lanphear

commit sha 9fa54e594b371bda6e8a2bb570e645d5aa61820b

stdarch: update submodule.

view details

Friedrich von Never

commit sha b0a9e949e7afc1a77b6f73a0d3fa6b6081763a57

Strip unnecessary subexpression It became unnecessary since a06baa56b95674fc626b3c3fd680d6a65357fe60 reformatted the file.

view details

Jonas Schievink

commit sha 044fe0f558aa62926e6de9a76b95e4a74c0b1f99

Add a resume type parameter to `Generator`

view details

Jonas Schievink

commit sha 0117033c721d35ade8d815e1fbf83f10d73f15e4

Add a resume type param to the generator substs ...and unify it with `()` for now

view details

Jonas Schievink

commit sha 25af2f66cec1366f845e1de1bfec8b64d4f5cfff

Use real resume type as second argument

view details

Jonas Schievink

commit sha 8a1227a67bd5df8a8f27c02b7032bd8092d44a92

Infer type of `yield` to be resume type

view details

Jonas Schievink

commit sha 32005fe1957fc163036fbe0da8b12d39a9fb54cb

Allow 0 or 1 explicit generator parameters

view details

Jonas Schievink

commit sha 2101a1fec0e53677e32d1389b44f70a987a97c8d

Adjust tests to type inference changes This makes some error messages ungreat, but those seem to be preexisting bugs that also apply to closures / return position `impl Trait` in general.

view details

Jonas Schievink

commit sha f2c1468965a7af5887d353adf77427344327be0d

Add resume arg place to `Yield` MIR terminator

view details

Jonas Schievink

commit sha 3c069a066e50598ef230ba71ed5c5bcf596beb90

Change MIR building to fill in the resume place This changes `Yield` from `as_rvalue` to `into` lowering, which could have a possible performance impact. I could imagine special-casing some resume types here to use a simpler lowering for them, but it's unclear if that makes sense at this stage.

view details

Jonas Schievink

commit sha 3c22e51e7f6debd96af76f36aa8b090c40b8acb6

Make generator transform move resume arg around The resume arg is passed as argument `_2` and needs to be moved to the `Yield`s target `Place`

view details

push time in 7 days

push eventcjgillot/rust

John Kåre Alsaker

commit sha bfba6ef328bbba327cae8918e795c11b89217672

Add an option to use LLD to link the compiler on Windows platforms

view details

John Kåre Alsaker

commit sha 95318f8d859dc55cc5e06722c96f6e492529d6ca

Link a linking issue

view details

John Kåre Alsaker

commit sha 2124a85260fdf0851bb4de369d311bcfc05b205f

Don't use a whitelist for use_lld

view details

Stein Somers

commit sha fa9bfebfc9256369c03cbe8bba2e737de3cb38fc

Fix and test implementation of BTreeMap's first_entry, last_entry, pop_first, pop_last

view details

Esteban Küber

commit sha 319dd6f139377259ceca7db35069b382446ee3bf

When suggesting associated fn with type parameters, include in the structured suggestion

view details

Brian Anderson

commit sha c00d8aa5179ef38f7d83067a8d010bcc26fa0cc3

Reorder declarations of Result::export/unwrap to match Option

view details

Brian Anderson

commit sha db9b578b71190540cfd84f16f5d310d6ce4cb659

Reorder declarations of Result::expect_err/unwrap_err to match Option

view details

Brian Anderson

commit sha 8251e12950159c5802dd3995b14be7cf4fa99acd

Don't use the word 'unwrap' to describe core unwrapping functions It's tautological, and Rust-specific Jargon. This changes various Option/Result methods to consistently describe unwrapping behavior using the words "return", "contain", "consume". It also renames the closure argument of `Return::unwrap_or_else` to `default` to be consistent with `Option`.

view details

Guillaume Gomez

commit sha 1177d0669ac213f12aee6c998b47ca1e8904ccf0

Clean up E0277 and E0282 explanations

view details

Eduard-Mihai Burtescu

commit sha d6ccbf6ff80ce66884ab70fdb679353245f05e5b

rustc_codegen_llvm: remove unnecessary special-casing of root scopes' children.

view details

Eduard-Mihai Burtescu

commit sha 1385fc4c40cb96eca5f3df2c3043425889073646

rustc_codegen_llvm: remove InternalDebugLocation and simplify dbg_var_addr.

view details

Eduard-Mihai Burtescu

commit sha bdb72e7b5ac304c918710ec5c968eaece7e6b57c

rustc_codegen_ssa: remove unnecessary source_locations_enabled.

view details

Michael Bradshaw

commit sha 4ac468c038e2d24efd2228c201fd0b3211ca8ba5

Mark several functions and methods in core::cmp as #[must_use]

view details

Markus Westerlind

commit sha 51b891ae2cf55ce0a265fa99e92bdb7b19244112

Reduce Vec allocations in normalization by passing &mut Vec

view details

Aaron Hill

commit sha 619051e4f080e3f3ccb94d7789bbef58282e64a7

Move librustc_hir/def_id.rs to librustc_span/def_id.rs For noww, librustc_hir re-exports the `def_id` module from librustc_span, so the rest of rustc can continue to reference rustc_hir::def_id

view details

Dylan DPC

commit sha d17bc9f0615b08cb708178a1eec93896457b9d42

Rollup merge of #68718 - Aaron1011:move-def-hir-span, r=petrochenkov Move `rustc_hir::def_id` to `rustc_span::def_id` This will allow `HygieneData` to refer to `DefId` and `DefIndex`, which will enable proper serialization of Span hygiene information. This also reduces the number of things imported from `rustc_hir`, which might make it easier to remove dependencies on it.

view details

Dylan DPC

commit sha cb87c958ef147f144d4b973e04e26a6bf9ddde9d

Rollup merge of #68834 - ssomers:btree_first_last_fix68829, r=KodrAus Fix and test implementation of BTreeMap's first/last_entry, pop_first/last Properly implement and test `first_entry` & `last_entry` to fix problem report #68829

view details

Dylan DPC

commit sha 664d87f9b1e54421e9fa77988e92be53337821fd

Rollup merge of #68857 - Marwes:allocations, r=matthewjasper perf: Reduce Vec allocations in normalization by passing &mut Vec Complicates the code a bit but allocation/freeing were a few percent of the overall runtime in trait heavy code.

view details

Dylan DPC

commit sha 2be062a4b08c4d0c108f41c8714f380cb5a05873

Rollup merge of #68918 - brson:unwrapdoc, r=Dylan-DPC Don't use the word "unwrap" to describe "unwrap" methods It's tautological, and "unwrap" is essentially Rust-specific jargon. I was teaching a newbie some Rust, and doing the usual hand-waving about error handling using unwrap. They asked what 'unwrap' means. I said look it up in the docs. The docs read (paraphrased) "unwrap unwraps". I was embarrassed. This changes all the Option/Result functions with unwrapping behavior to use a variation on a single description: > "Returns the contained `Some/Ok` value [or ...]." It also renames the closure of `Result::unwrap_or_else` to `default` for consistency with `Option`, and perhaps makes a few other small tweaks. Previous: https://github.com/rust-lang/rust/pull/68849

view details

Dylan DPC

commit sha d6087b91db85b35f93947b33c0bc0ba0b262c6f0

Rollup merge of #68946 - mjbshaw:must_use, r=mjbshaw Mark several functions and methods in core::cmp as #[must_use] These functions and methods aren't mutating functions and ignoring the result of them is likely a bug in the user's code.

view details

push time in 7 days

push eventcjgillot/rust

Camille GILLOT

commit sha fc73e196d9cf045c722aff27b9a2e595357384db

Review comments.

view details

push time in 7 days

push eventcjgillot/rust

Erin Power

commit sha 49d78fcd901700c5a14e19a6679db1646b5ca901

Add GitHub issue templates

view details

Tomasz Miąsko

commit sha 7e3c51d085d9eaa2204cc18763bc7d98b66435fd

Instrument C / C++ in MemorySanitizer example Modify the example to instrument C / C++ in addition to Rust, since it will be generally required (e.g., when using libbacktrace for symbolication). Additionally use rustc specific flag to track the origins of unitialized memory rather than LLVM one.

view details

Andreas Molzer

commit sha 47ae565ed4f1b2a7cc754d4cf0af520b5e6841b9

Add a method to query the capacity of a BufWriter

view details

Andreas Molzer

commit sha aebd0d733940d62566c66a923c7b9f7078209e98

Add capacity to BufReader with same unstable gate

view details

John Kåre Alsaker

commit sha bfba6ef328bbba327cae8918e795c11b89217672

Add an option to use LLD to link the compiler on Windows platforms

view details

John Kåre Alsaker

commit sha 95318f8d859dc55cc5e06722c96f6e492529d6ca

Link a linking issue

view details

John Kåre Alsaker

commit sha 2124a85260fdf0851bb4de369d311bcfc05b205f

Don't use a whitelist for use_lld

view details

Trevor Spiteri

commit sha aa046da61f8722dfe46204cb303dbc9d2b4cb32e

rustdoc: attempt full build for compile_fail test Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.

view details

Trevor Spiteri

commit sha 6d768ddecc13c4acf45730952c0af401a990383a

error code examples: replace some ignore with compile_fail

view details

Rob Pilling

commit sha 3c91bdca1d552055e2b92ecac5275c1ebe9a4ee8

Suggest path separator for single-colon typos This commit adds guidance for when a user means to type a path, but ends up typing a single colon, such as `<<Impl as T>:Ty>`. This change seemed pertinent as the current error message is particularly misleading, emitting `error: unmatched angle bracket`, despite the angle bracket being matched later on, leaving the user to track down the typo'd colon.

view details

Jacob Rothstein

commit sha 2a79ed0b4999bf9e805e0e38cd1faf5f85068368

[docs] remind bug reporters to update nightly

view details

Mark Rousskov

commit sha 39e502744c7db993eb0269285082ac5c7b7d4bdd

Install robots.txt into rust-docs tarballs

view details

Jonas Schievink

commit sha 08e85aa5865dcb8198942a082d892d863367d4d2

Ignore `build` dir formatting

view details

Mark Rousskov

commit sha b613b0cb3641a7a5be74471e8e5963e52adf30ea

Correctly reinstall rustfmt on channel change

view details

Mark Rousskov

commit sha ff95473b5e8fe4a25f59778e6a071abc026e6447

Bump rustfmt and stage0

view details

Mark Rousskov

commit sha 31dcdc9e13c324d33a18db3aed7f4b3208ff3744

Drop cfg(bootstrap) code

view details

hman523

commit sha 346920c3c844e650aff6428c6b5c6e70cbce9954

Fixed issue 68593

view details

Matthew Jasper

commit sha a81c59f9b84b6519785a4e0ae9234107d149f454

Remove some unsound specializations

view details

Shotaro Yamada

commit sha 482c761704b9f7d08d00b6cf4c567db427da7ec7

Use BufWriter

view details

Konrad Borowski

commit sha cad0cfd9fdbc64dece3f38c03b15ed9aad032d5c

Remove a comment about pretty printer in formatting tests rustc is now using rustfmt, not the old formatter.

view details

push time in 7 days

push eventcjgillot/rust

John Kåre Alsaker

commit sha bfba6ef328bbba327cae8918e795c11b89217672

Add an option to use LLD to link the compiler on Windows platforms

view details

John Kåre Alsaker

commit sha 95318f8d859dc55cc5e06722c96f6e492529d6ca

Link a linking issue

view details

John Kåre Alsaker

commit sha 2124a85260fdf0851bb4de369d311bcfc05b205f

Don't use a whitelist for use_lld

view details

kennytm

commit sha 847d5b4d1387a30f1798a5c3c59c3e0c31e00319

Derive Clone + PartialEq + Eq for std::string::FromUtf8Error

view details

Trevor Spiteri

commit sha fd2282388140ea0f370ee25c82f00be81c2f822c

implement AsMut<str> for String

view details

Esteban Küber

commit sha 109d5c189f4b5c3405a7d6cfb312e04d866c0c31

Tweak borrow error on `FnMut` when `Fn` is expected

view details

bjorn3

commit sha bdacdf49e532ce869d1eb96e967fd77991566a7f

Remove unused core_intrinsics feature gate from bootstrap

view details

bjorn3

commit sha 095963f91d525951cb0183648c47c427fb69f16d

Remove unused feature gates from librustc

view details

bjorn3

commit sha f9971c5cba0a141d3f00737292a40e3cacf44ac0

Remove unused feature gates from cg_llvm Also turns a few `box` into `Box::new`

view details

bjorn3

commit sha c2da8b3f0d669cb5d6e7d1338aed91fd1c76b8a3

Remove unused feature gates from cg_ssa and cg_utils

view details

bjorn3

commit sha 2a4596abfb4449371982c824c330e30f4ae0d1ee

Remove unused feature gates from librustc_data_structures

view details

bjorn3

commit sha cf862df494438923295ae4ca78b40787c6b89d53

Remove unused feature gates from librustc_driver

view details

bjorn3

commit sha 3e61d52784bd20140a8124d41a9661378b65f40e

Remove unused feature gates from librustc_errors

view details

Stein Somers

commit sha fa9bfebfc9256369c03cbe8bba2e737de3cb38fc

Fix and test implementation of BTreeMap's first_entry, last_entry, pop_first, pop_last

view details

Esteban Küber

commit sha 319dd6f139377259ceca7db35069b382446ee3bf

When suggesting associated fn with type parameters, include in the structured suggestion

view details

Brian Anderson

commit sha c00d8aa5179ef38f7d83067a8d010bcc26fa0cc3

Reorder declarations of Result::export/unwrap to match Option

view details

Brian Anderson

commit sha db9b578b71190540cfd84f16f5d310d6ce4cb659

Reorder declarations of Result::expect_err/unwrap_err to match Option

view details

Josh White

commit sha 82684ad30a0929afba9463b89232730a9c6dadf4

Added long error description & modifed error_codes.rs

view details

Eduard-Mihai Burtescu

commit sha b82f6c575e53f06c3645f66a9d480b4f025ee39e

rustc_codegen_llvm: always set AlwaysPreserve on all debuginfo variables.

view details

Josh White

commit sha 4a1c6ce23547346757fa8b61207aea7eb6997aa3

Added long error description & modifed error_codes.rs

view details

push time in 7 days

push eventcjgillot/rust

Camille GILLOT

commit sha d4f45323075beea3983d5e3f6c21b340820a65c4

Split librustc_infer.

view details

Camille GILLOT

commit sha 468a82dd48d7c5fa50726173810f4a99f3067c05

Resurrect error reporting code.

view details

Camille GILLOT

commit sha b71e80ca4cc77a17b3df4742af1bfdbf32af94ae

Resurrect opaque_types code.

view details

push time in 9 days

push eventcjgillot/rust

Camille GILLOT

commit sha 8905d3316672a4e40ce51092beb876f0fb024dd1

Split librustc_infer.

view details

push time in 9 days

push eventcjgillot/rust

Erin Power

commit sha 49d78fcd901700c5a14e19a6679db1646b5ca901

Add GitHub issue templates

view details

Trevor Spiteri

commit sha aa046da61f8722dfe46204cb303dbc9d2b4cb32e

rustdoc: attempt full build for compile_fail test Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.

view details

Trevor Spiteri

commit sha 6d768ddecc13c4acf45730952c0af401a990383a

error code examples: replace some ignore with compile_fail

view details

Matthew Jasper

commit sha a81c59f9b84b6519785a4e0ae9234107d149f454

Remove some unsound specializations

view details

Jonas Schievink

commit sha 044fe0f558aa62926e6de9a76b95e4a74c0b1f99

Add a resume type parameter to `Generator`

view details

Jonas Schievink

commit sha 0117033c721d35ade8d815e1fbf83f10d73f15e4

Add a resume type param to the generator substs ...and unify it with `()` for now

view details

Jonas Schievink

commit sha 25af2f66cec1366f845e1de1bfec8b64d4f5cfff

Use real resume type as second argument

view details

Jonas Schievink

commit sha 8a1227a67bd5df8a8f27c02b7032bd8092d44a92

Infer type of `yield` to be resume type

view details

Jonas Schievink

commit sha 32005fe1957fc163036fbe0da8b12d39a9fb54cb

Allow 0 or 1 explicit generator parameters

view details

Jonas Schievink

commit sha 2101a1fec0e53677e32d1389b44f70a987a97c8d

Adjust tests to type inference changes This makes some error messages ungreat, but those seem to be preexisting bugs that also apply to closures / return position `impl Trait` in general.

view details

Jonas Schievink

commit sha f2c1468965a7af5887d353adf77427344327be0d

Add resume arg place to `Yield` MIR terminator

view details

Jonas Schievink

commit sha 3c069a066e50598ef230ba71ed5c5bcf596beb90

Change MIR building to fill in the resume place This changes `Yield` from `as_rvalue` to `into` lowering, which could have a possible performance impact. I could imagine special-casing some resume types here to use a simpler lowering for them, but it's unclear if that makes sense at this stage.

view details

Jonas Schievink

commit sha 3c22e51e7f6debd96af76f36aa8b090c40b8acb6

Make generator transform move resume arg around The resume arg is passed as argument `_2` and needs to be moved to the `Yield`s target `Place`

view details

Jonas Schievink

commit sha 5b2059b2572cff9974e6820791c8ab57b6c50234

Fix error message on type mismatch in generator Instead of "closure is expected to take 0 arguments" we now get the expected type mismatch error.

view details

Jonas Schievink

commit sha fca614eb578092fd869df57d6654ba0dcf92c6ef

Add tests for generator resume arguments

view details

Jonas Schievink

commit sha 4ee857c4c3ecb15d4bc5aebe4fa7ba67dce797b5

Add test for E0628 (too many generator parameters)

view details

Jonas Schievink

commit sha 7a9709b08a57620a791259b53d71a59acf8f7b5c

Fix bootstrap rustc build

view details

Jonas Schievink

commit sha 3bb8ecb512a632fb3f5568e4e443cfe46f2f3ea6

Adjust mir-opt tests to new `yield` lowering

view details

Jonas Schievink

commit sha aae0f543cff16afe27384171e83de91887bc9f4d

No resume argument in the drop shim

view details

Jonas Schievink

commit sha 9fa46fe15367a8154f38371d0d913fa2f97f6416

Teach dropck about resume arguments

view details

push time in 9 days

create barnchcjgillot/rust

branch : split_trait

created branch time in 9 days

pull request commentrust-lang/rust

Split librustc::{traits,infer} to a separate crate rustc_infer

The infer and traits modules here are quite intertwined.

That doesn't feel right. traits definitely depends on infer, but how strong is the dependency the other way around? Could infer code that depends on traits be provided in traits instead?

I do not have a complete list. Until now I used the stupid method: comment out mod traits and fix compile errors. However, there are quite a few of them. Some are just types, for instance the *Obligation* types. Some are routines, for instance TyCtxt::resolve_regions_and_report_errors -> infer::OutlivesEnvironment::new -> traits::query::outlives_bounds::explicit_outlives_bounds.

I am trying to see what can be split and how, but this may take some time.

cjgillot

comment created time in 10 days

push eventcjgillot/rust

Tyler Lanphear

commit sha 9fa54e594b371bda6e8a2bb570e645d5aa61820b

stdarch: update submodule.

view details

Friedrich von Never

commit sha b0a9e949e7afc1a77b6f73a0d3fa6b6081763a57

Strip unnecessary subexpression It became unnecessary since a06baa56b95674fc626b3c3fd680d6a65357fe60 reformatted the file.

view details

Nicholas Nethercote

commit sha 0eb297d3e04e618b96e668e8e9ed9ddf66d671fb

Fix up `merge_from_succ`. This function has a variable `changed` that is erroneously used for two related-but-different purpose: - to detect if the current element has changed; - to detect if any elements have changed. As a result, its use for the first purpose is broken, because if any prior element changed then the code always thinks the current element has changed. This is only a performance bug, not a correctness bug, because we frequently end up calling `assign_unpacked` unnecessarily to overwrite the element with itself. This commit adds `any_changed` to correctly distinguish between the two purposes. This is a small perf win for some benchmarks.

view details

Nicholas Nethercote

commit sha d62b6f204733d255a3e943388ba99f14b053bf4a

Pull out a special case in `merge_from_succ`. This is a small perf win.

view details

Dylan MacKenzie

commit sha d9e3d2a5314258e2b8adc86c1ded34c4995fcd67

Make euclidean division `const` Co-Authored-By: 9999years <rbt@sent.as>

view details

Dylan MacKenzie

commit sha 37c141885ac5972e7c858d65babe1753b0ad994c

Make checked arithmetic besides division `const` Co-Authored-By: 9999years <rbt@sent.as>

view details

Dylan MacKenzie

commit sha de52a541d5daab8393d4da8a9508fb7b5c1448e0

Make overflowing arithmetic `const` Co-Authored-By: 9999years <rbt@sent.as>

view details

Dylan MacKenzie

commit sha b422a19c4323e54f635e6d6aa7fc9900ce9f25a6

Make `saturating_mul` a `const fn` Co-Authored-By: 9999years <rbt@sent.as>

view details

Dylan MacKenzie

commit sha b46d1d27184bf78cc9181feadd192e887fe7d589

Make wrapping arithmetic `const` Co-Authored-By: 9999years <rbt@sent.as>

view details

Dylan MacKenzie

commit sha d4529bec02f5e61a6684ee8ffc40d84d35c23242

Const-stabilize some arithmetic intrinsics

view details

Dylan MacKenzie

commit sha 526304da1621f6cd718a29d05a058de2beac954e

Make checked division `const`

view details

Dylan MacKenzie

commit sha dda015aebca79d508b74cae6a0ecfb0a093d8639

Make saturating arithmetic using intrinsics `const`

view details

Dylan MacKenzie

commit sha 3e9fd80bd7c0b3aeb700c474edd93a078f822dbc

Add tests for newly const arithmetic fns Co-Authored-By: 9999years <rbt@sent.as>

view details

Guillaume Gomez

commit sha 11eee614f0bf275bd14566457203ba917fe5debd

Clean up E0264, E0267 and E0268 explanations

view details

Mateusz Mikuła

commit sha 1fad337f79a6a554ae947def38ec2db0e91d864c

Prefer system MinGW libs when available

view details

Mazdak Farrokhzad

commit sha 01dd376dedc7fe1389138565fe8a7a0cdb332f47

`#![recursion_limit = "X"]`: note current crate name.

view details

Dylan MacKenzie

commit sha 09160d1b84a21ad2f11c3186bb2f07dc601dc9d8

Use consistent feature naming

view details

Dylan MacKenzie

commit sha 040d9873aa6ca1ce458e98fec403cee8ec4f7ae8

Fix test

view details

Dylan MacKenzie

commit sha 78f8ad36409754319011514ca6febc8599abd429

Implement remaining `unchecked` arithmetic intrinsics

view details

king6cong

commit sha 9713b5696b215b49a927ba55a5c5681a8f220e47

doc fix on doc attribute

view details

push time in 13 days

delete branch cjgillot/rust

delete branch : split_infer_prelude

delete time in 13 days

push eventcjgillot/rust

Charles Gleason

commit sha 293cdf7ac5d14811debdec3408afde104935caef

Make RangeMut::next_unchecked() output a mutable key reference

view details

Charles Gleason

commit sha f547978392872684085c96a3d5c1d00bad24b724

Implement clone_from for BTree collections

view details

Charles Gleason

commit sha 8651aa066fdbbcfaa082531969469c3fa289de9e

Add test for BTreeMap::clone_from

view details

Markus Westerlind

commit sha a5657dbc43d84133bd95e5de178d68634973b1b3

perf: Avoid creating a SmallVec if nothing changes during a fold Not sure if this helps but in theory it should be less work than what the current micro optimization does for `ty::Predicate` lists. (It would explain the overhead I am seeing from `perf`.)

view details

Markus Westerlind

commit sha 898ed636a3f44e3aa0156c1bb5ebc86b08aef5fa

Fix copy_from_slice which should be extend_from_slice

view details

Thom Chiovoloni

commit sha 6a7a69bde9813ac2868f36a01567c633ed6cd023

Add {leading,trailing}_ones to primitive int types

view details

Thom Chiovoloni

commit sha 2330e325ccee2e91d7aec6c0d4068748619bf588

Tests for leading_trailing_ones

view details

Markus Westerlind

commit sha a1586f1d2b17d687444d3b94aedd7ce24ae074ed

Explain fold_list

view details

CAD97

commit sha f76177ce4376ea15b1b303da347e8f653679cf88

Stabilize ptr::slice_from_raw_parts[_mut]

view details

Thom Chiovoloni

commit sha 783a7dc8ed03a38910b9ea5ded11139616dfa67b

Mark leading_trailing_ones with tracking issue 57969

view details

Jorge Aparicio

commit sha 470cdf54ac9acee20ab8da46ef7899bae9f58f29

add bare metal ARM Cortex-A targets to rustc -> `rustc --target armv7-none-eabi` will work also build rust-std (rustup) components for them -> `rustup target add armv7-none-eabi` will work

view details

CAD97

commit sha 1c0d4851a6a686d09b03fab575fb0847d1e9f665

Fix incorrect slice->ptr conversion in slice_from_raw_parts docs

view details

csmoe

commit sha 42b6ed13be779499d118af721913a66bd3d946ea

account temporary borrow by raw-ptr

view details

csmoe

commit sha cd7b5edc2cac3fa0db6b464a6e94edd8f334274d

update test ui for raw-ptr borrow inside generator

view details

Tobias Kortkamp

commit sha de388032555b697d1b0ef197241886ab90ac39b2

Add -Wl,-znotext to default linker flags to link with lld 9 on FreeBSD 13.0-CURRENT i386 rust-nightly has been failing to link since 2019-12-10 with variations of ``` = note: ld: error: relocation R_386_PC32 cannot be used against symbol __rust_probestack; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libcompiler_builtins-6570a75fe85f0e1a.rlib(compiler_builtins-6570a75fe85f0e1a.compiler_builtins.2i519eqi-cgu.15.rcgu.o) >>> referenced by std.4xivr03c-cgu.14 >>> std-9bd70afd58e204b7.std.4xivr03c-cgu.14.rcgu.o:(_$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h1c78ed6e734a2bfc (.llvm.10122419023709863394)) in archive /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libstd-9bd70afd58e204b7.rlib ld: error: relocation R_386_PC32 cannot be used against symbol __rust_probestack; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libcompiler_builtins-6570a75fe85f0e1a.rlib(compiler_builtins-6570a75fe85f0e1a.compiler_builtins.2i519eqi-cgu.15.rcgu.o) >>> referenced by std.4xivr03c-cgu.14 >>> std-9bd70afd58e204b7.std.4xivr03c-cgu.14.rcgu.o:(std::io::util::copy::h9115f048f2203467) in archive /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libstd-9bd70afd58e204b7.rlib clang-cpp: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error error: could not compile `rustc_macros`. ``` Full log: http://beefy17.nyi.freebsd.org/data/head-i386-default/p523508_s356869/logs/rust-nightly-1.42.0.20200118.log AFAICT it stopped building after bumping compiler_builtins to 0.1.22 in https://github.com/rust-lang/rust/pull/67110.

view details

Tianjiao Huang

commit sha d336e593cc07139468c8f6f12b929e80ae365159

Fix invalid link to C++ Exception Handling ABI documentation

view details

Yuki Okushi

commit sha 2ecc48ffa17d55ec02f3beb5bb17c718cb439202

Fix ICE #68025

view details

Yuki Okushi

commit sha 0017f495783324b036ffcaafedf7881725ba1e02

Replace `walk_callee` with `consume_expr`

view details

Jorge Aparicio

commit sha a3a077610028c773bffc7a74e6a15faa10d2360d

Merge branch 'master' into bare-metal-cortex-a

view details

Mazdak Farrokhzad

commit sha 93efe41b4ef9e0cccedbf962381002d48b3f780c

stabilize transparent_enums

view details

push time in 13 days

pull request commentrust-lang/rust

Split librustc::{traits,infer} to a separate crate rustc_infer

I don't like the name rustc_infer for holding rustc::traits, to the point where I'd prefer a second "rustc_traits" crate that depends on rustc_infer.

What would you like to see in each crate? The infer and traits modules here are quite intertwined. I haven't seen an easy cut yet.

About naming, please tell me what you would rather see.

cjgillot

comment created time in 13 days

push eventcjgillot/rust

Charles Gleason

commit sha 293cdf7ac5d14811debdec3408afde104935caef

Make RangeMut::next_unchecked() output a mutable key reference

view details

Charles Gleason

commit sha f547978392872684085c96a3d5c1d00bad24b724

Implement clone_from for BTree collections

view details

Charles Gleason

commit sha 8651aa066fdbbcfaa082531969469c3fa289de9e

Add test for BTreeMap::clone_from

view details

Markus Westerlind

commit sha a5657dbc43d84133bd95e5de178d68634973b1b3

perf: Avoid creating a SmallVec if nothing changes during a fold Not sure if this helps but in theory it should be less work than what the current micro optimization does for `ty::Predicate` lists. (It would explain the overhead I am seeing from `perf`.)

view details

Markus Westerlind

commit sha 898ed636a3f44e3aa0156c1bb5ebc86b08aef5fa

Fix copy_from_slice which should be extend_from_slice

view details

Thom Chiovoloni

commit sha 6a7a69bde9813ac2868f36a01567c633ed6cd023

Add {leading,trailing}_ones to primitive int types

view details

Thom Chiovoloni

commit sha 2330e325ccee2e91d7aec6c0d4068748619bf588

Tests for leading_trailing_ones

view details

Markus Westerlind

commit sha a1586f1d2b17d687444d3b94aedd7ce24ae074ed

Explain fold_list

view details

CAD97

commit sha f76177ce4376ea15b1b303da347e8f653679cf88

Stabilize ptr::slice_from_raw_parts[_mut]

view details

Thom Chiovoloni

commit sha 783a7dc8ed03a38910b9ea5ded11139616dfa67b

Mark leading_trailing_ones with tracking issue 57969

view details

Jorge Aparicio

commit sha 470cdf54ac9acee20ab8da46ef7899bae9f58f29

add bare metal ARM Cortex-A targets to rustc -> `rustc --target armv7-none-eabi` will work also build rust-std (rustup) components for them -> `rustup target add armv7-none-eabi` will work

view details

CAD97

commit sha 1c0d4851a6a686d09b03fab575fb0847d1e9f665

Fix incorrect slice->ptr conversion in slice_from_raw_parts docs

view details

csmoe

commit sha 42b6ed13be779499d118af721913a66bd3d946ea

account temporary borrow by raw-ptr

view details

csmoe

commit sha cd7b5edc2cac3fa0db6b464a6e94edd8f334274d

update test ui for raw-ptr borrow inside generator

view details

Tobias Kortkamp

commit sha de388032555b697d1b0ef197241886ab90ac39b2

Add -Wl,-znotext to default linker flags to link with lld 9 on FreeBSD 13.0-CURRENT i386 rust-nightly has been failing to link since 2019-12-10 with variations of ``` = note: ld: error: relocation R_386_PC32 cannot be used against symbol __rust_probestack; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libcompiler_builtins-6570a75fe85f0e1a.rlib(compiler_builtins-6570a75fe85f0e1a.compiler_builtins.2i519eqi-cgu.15.rcgu.o) >>> referenced by std.4xivr03c-cgu.14 >>> std-9bd70afd58e204b7.std.4xivr03c-cgu.14.rcgu.o:(_$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h1c78ed6e734a2bfc (.llvm.10122419023709863394)) in archive /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libstd-9bd70afd58e204b7.rlib ld: error: relocation R_386_PC32 cannot be used against symbol __rust_probestack; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libcompiler_builtins-6570a75fe85f0e1a.rlib(compiler_builtins-6570a75fe85f0e1a.compiler_builtins.2i519eqi-cgu.15.rcgu.o) >>> referenced by std.4xivr03c-cgu.14 >>> std-9bd70afd58e204b7.std.4xivr03c-cgu.14.rcgu.o:(std::io::util::copy::h9115f048f2203467) in archive /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libstd-9bd70afd58e204b7.rlib clang-cpp: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error error: could not compile `rustc_macros`. ``` Full log: http://beefy17.nyi.freebsd.org/data/head-i386-default/p523508_s356869/logs/rust-nightly-1.42.0.20200118.log AFAICT it stopped building after bumping compiler_builtins to 0.1.22 in https://github.com/rust-lang/rust/pull/67110.

view details

Tianjiao Huang

commit sha d336e593cc07139468c8f6f12b929e80ae365159

Fix invalid link to C++ Exception Handling ABI documentation

view details

Yuki Okushi

commit sha 2ecc48ffa17d55ec02f3beb5bb17c718cb439202

Fix ICE #68025

view details

Yuki Okushi

commit sha 0017f495783324b036ffcaafedf7881725ba1e02

Replace `walk_callee` with `consume_expr`

view details

Jorge Aparicio

commit sha a3a077610028c773bffc7a74e6a15faa10d2360d

Merge branch 'master' into bare-metal-cortex-a

view details

Mazdak Farrokhzad

commit sha 93efe41b4ef9e0cccedbf962381002d48b3f780c

stabilize transparent_enums

view details

push time in 13 days

push eventcjgillot/rust

Tomasz Miąsko

commit sha 7e3c51d085d9eaa2204cc18763bc7d98b66435fd

Instrument C / C++ in MemorySanitizer example Modify the example to instrument C / C++ in addition to Rust, since it will be generally required (e.g., when using libbacktrace for symbolication). Additionally use rustc specific flag to track the origins of unitialized memory rather than LLVM one.

view details

Andreas Molzer

commit sha 47ae565ed4f1b2a7cc754d4cf0af520b5e6841b9

Add a method to query the capacity of a BufWriter

view details

Andreas Molzer

commit sha aebd0d733940d62566c66a923c7b9f7078209e98

Add capacity to BufReader with same unstable gate

view details

David Ross

commit sha 276734d6a4997088b6d2e7416f5d4c07b4c8acf5

Fix 59191 This adds an explicit error for when macros replace the crate root with a non-module item.

view details

David Ross

commit sha 410114b9d243020482689a94f7b254600f4d819e

Add tests for issue 59191

view details

David

commit sha 152811d8bf389fce7328ba7bc50c26c34afb0d81

Change expansion error to be non-fatal Changes the error handler for inner attributes that replace the root with a non-module. Previously it would emit a fatal error. It now emits an empty expasion and a non-fatal error like the existing handler for a failed expansion.

view details

Matthias Krüger

commit sha 5f979e9afab42dd7536ca93994de66169880361e

bootstrap: fix clippy warnings

view details

Oliver Middleton

commit sha 5f689fe466b6ed0d63e5d5f732804bb74c07b58d

Remove Copy impl from OnceWith Iterators typically don't implement `Copy` and this shouldn't be an exception.

view details

Matthias Krüger

commit sha 697ef95c9f22376232e5dd60ab429fe4a31b6332

remove redundant imports (clippy::single_component_path_imports)

view details

Matthias Krüger

commit sha fe1314dbc42da3331062c9348f7117b3585ad6bd

fix couple of perf related clipyp warnings librustc: don't clone a type that is copy librustc_incremental: use faster vector initialization librustc_typeck: don't clone a type that is copy librustdoc: don't create a vector where a slice will do

view details

Esteban Küber

commit sha 0f73133be6a6915e2d5836ce9986eaffc1b2954d

Suggest `split_at_mut` on multiple mutable index access

view details

Aaron Hill

commit sha 302f8c97ea92d010f39a19563e8881a704c6f136

Remove the `overlapping_marker_traits` feature See #29864 This has been replaced by `#[feature(marker_trait_attr)]` A few notes: * Due to PR #68057 not yet being in the bootstrap compiler, it's necessary to continue using `#![feature(overlapping_marker_traits)]` under `#[cfg(bootstrap)]` to work around type inference issues. * I've updated tests that used `overlapping_marker_traits` to now use `marker_trait_attr` where applicable The test `src/test/ui/overlap-marker-trait.rs` doesn't make any sense now that `overlapping_marker_traits`, so I removed it. The test `src/test/ui/traits/overlap-permitted-for-marker-traits-neg.rs` now fails, since it's no longer possible to have multiple overlapping negative impls of `Send`. I believe that this is the behavior we want (assuming that `Send` is not going to become a `#[marker]` trait, so I renamed the test to `overlap-permitted-for-marker-traits-neg`

view details

bors

commit sha c9290dceee2cb6b882b26ec6e294560e51ef0853

Auto merge of #68558 - HeroicKatora:buf-writer-capacity, r=alexcrichton Add a method to query the capacity of a BufWriter and BufReader Besides the obvious of retrieving the parameter used to construct the writer, this method allows consumers to control the number of `flush` calls during write operations. For `BufReader` it gives an upper bound on the returned buffer in `fill_buf` which might influence the allocation behaviour of a consumer.

view details

Dylan DPC

commit sha 1921fc099403a2d1bc030771a9976573339d9ec5

Rollup merge of #68282 - tmiasko:sanitizer-example, r=steveklabnik Instrument C / C++ in MemorySanitizer example Modify the example to instrument C / C++ in addition to Rust, since it will be generally required (e.g., when using libbacktrace for symbolication).

view details

Dylan DPC

commit sha 48ea0fa416077e89f036c5081020730a7743df88

Rollup merge of #68758 - daboross:fix-59191, r=petrochenkov Fix 59191 - ICE when macro replaces crate root with non-module item Hi, This should fix #59191! My friend and I are working on learning the rustc codebase through contributions, so please feel free to mention anything amiss or that could be done better. The code adds an explicit case for when a macro applied to the crate root (via an inner attribute) replaces it with something nonsensical, like a function. The crate root must be a module, and the error message reflects this. --- I should note that there are a few other weird edge cases here, like if they do output a module, it succeeds but uses that module's name as a prefix for all names in the crate. I'm assuming that's an issue for stabilizing #54726, though.

view details

Dylan DPC

commit sha 4d6e2d81b8fbff97e428526fd3c3b662270f2475

Rollup merge of #68805 - matthiaskrgr:cleanup_bootstrap, r=Mark-Simulacrum bootstrap: fix clippy warnings r? @oli-obk

view details

Dylan DPC

commit sha 94d6a961897db91b9b11222e7f667d73b6bbe9bf

Rollup merge of #68810 - ollie27:once_with_copy, r=Dylan-DPC Remove Copy impl from OnceWith Iterators typically don't implement `Copy` and this shouldn't be an exception.

view details

Dylan DPC

commit sha 3fe4c0ddf970e6be6fb1af81a8c4d81c195a33fb

Rollup merge of #68815 - matthiaskrgr:redundant_imports, r=alexcrichton remove redundant imports (clippy::single_component_path_imports)

view details

Dylan DPC

commit sha a25ce40bc9f0206128825676ec0e63a3c032ea4e

Rollup merge of #68818 - matthiaskrgr:misc_perf, r=Mark-Simulacrum fix couple of perf related clippy warnings librustc: don't clone a type that is copy librustc_incremental: use faster vector initialization librustc_typeck: don't clone a type that is copy librustdoc: don't create a vector where a slice will do

view details

Dylan DPC

commit sha 793a5e68b4589d4168fa778c65ca9b92e0b85f62

Rollup merge of #68819 - estebank:split_at_mut, r=oli-obk Suggest `split_at_mut` on multiple mutable index access cc #58792.

view details

push time in 13 days

create barnchcjgillot/rust

branch : liveness

created branch time in 14 days

push eventcjgillot/rust

Andrew Paverd

commit sha c0744e1e0c35b1083733fd5c74fc3fb5a6cd04f7

Add support for Control Flow Guard on Windows. This patch enables rustc to emit the required LLVM module flags to enable Control Flow Guard metadata (cfguard=1) or metadata and checks (cfguard=2). The LLVM module flags are ignored on unsupported targets and operating systems.

view details

Rob Pilling

commit sha 3c91bdca1d552055e2b92ecac5275c1ebe9a4ee8

Suggest path separator for single-colon typos This commit adds guidance for when a user means to type a path, but ends up typing a single colon, such as `<<Impl as T>:Ty>`. This change seemed pertinent as the current error message is particularly misleading, emitting `error: unmatched angle bracket`, despite the angle bracket being matched later on, leaving the user to track down the typo'd colon.

view details

Jacob Rothstein

commit sha 2a79ed0b4999bf9e805e0e38cd1faf5f85068368

[docs] remind bug reporters to update nightly

view details

Mark Rousskov

commit sha 39e502744c7db993eb0269285082ac5c7b7d4bdd

Install robots.txt into rust-docs tarballs

view details

Jonas Schievink

commit sha 08e85aa5865dcb8198942a082d892d863367d4d2

Ignore `build` dir formatting

view details

Mark Rousskov

commit sha b613b0cb3641a7a5be74471e8e5963e52adf30ea

Correctly reinstall rustfmt on channel change

view details

Mark Rousskov

commit sha ff95473b5e8fe4a25f59778e6a071abc026e6447

Bump rustfmt and stage0

view details

Mark Rousskov

commit sha 31dcdc9e13c324d33a18db3aed7f4b3208ff3744

Drop cfg(bootstrap) code

view details

hman523

commit sha 346920c3c844e650aff6428c6b5c6e70cbce9954

Fixed issue 68593

view details

Shotaro Yamada

commit sha 482c761704b9f7d08d00b6cf4c567db427da7ec7

Use BufWriter

view details

Konrad Borowski

commit sha cad0cfd9fdbc64dece3f38c03b15ed9aad032d5c

Remove a comment about pretty printer in formatting tests rustc is now using rustfmt, not the old formatter.

view details

bors

commit sha 64184a3288eca13ddfb7bc2e7b5231cbb8d5b88f

Auto merge of #68180 - ajpaverd:cfguard-rust, r=nagisa Add support for Control Flow Guard on Windows. LLVM now supports Windows Control Flow Guard (CFG): https://github.com/llvm/llvm-project/commit/d157a9bc8ba1085cc4808c6941412322a7fd884e This patch adds support for rustc to emit the required LLVM module flags to enable CFG metadata (cfguard=1) or metadata and checks (cfguard=2). The LLVM module flags are ignored on unsupported targets and operating systems.

view details

Marincia Catalin

commit sha 2ce14b8a19865ed359e9df7eb5e8e6186cae1e58

Update option.rs I updated the example of the `expect` examples so they won't contain depressing sentences any more !

view details

Yuki Okushi

commit sha 6f5a61b5fb66987a32c25e3877f4f99e37ff067d

Use `next_point` to avoid ICE

view details

Tim Diekmann

commit sha 8bbaeb7ff9a830e85106a00c84a1aa262f77a7f3

Remove `Alloc` in favor of `AllocRef` `AllocRef` was reexported as `Alloc` in order to not break toolstate in the week before the next stable release.

view details

Mazdak Farrokhzad

commit sha 50f0e2e9e6e85c5ae15ffde79e34edfd284465fd

{syntax -> rustc_ast_passes}::node_count

view details

Mazdak Farrokhzad

commit sha e03d1064f0d98961b83885ce951351ae57cc7aad

syntax: move GLOBALS to attr module

view details

Mazdak Farrokhzad

commit sha 64d0143c2c5f627e246822b4e2f501e563ec63cc

pretty: remove ParseSess dependency

view details

Mazdak Farrokhzad

commit sha 9be73dc63a63bc8692423bdac073c591dff80ccd

syntax: simplify HasAttrs code

view details

Mazdak Farrokhzad

commit sha 93a8283614e995a0cf7a866356609b7522cfda24

Move builtin attribute logic to new rustc_attr crate. For now, this is all the crate contains, but more attribute logic & types will be moved there over time.

view details

push time in 14 days

push eventcjgillot/rust

Charles Gleason

commit sha 293cdf7ac5d14811debdec3408afde104935caef

Make RangeMut::next_unchecked() output a mutable key reference

view details

Charles Gleason

commit sha f547978392872684085c96a3d5c1d00bad24b724

Implement clone_from for BTree collections

view details

Charles Gleason

commit sha 8651aa066fdbbcfaa082531969469c3fa289de9e

Add test for BTreeMap::clone_from

view details

Thom Chiovoloni

commit sha 6a7a69bde9813ac2868f36a01567c633ed6cd023

Add {leading,trailing}_ones to primitive int types

view details

Thom Chiovoloni

commit sha 2330e325ccee2e91d7aec6c0d4068748619bf588

Tests for leading_trailing_ones

view details

CAD97

commit sha f76177ce4376ea15b1b303da347e8f653679cf88

Stabilize ptr::slice_from_raw_parts[_mut]

view details

Thom Chiovoloni

commit sha 783a7dc8ed03a38910b9ea5ded11139616dfa67b

Mark leading_trailing_ones with tracking issue 57969

view details

CAD97

commit sha 1c0d4851a6a686d09b03fab575fb0847d1e9f665

Fix incorrect slice->ptr conversion in slice_from_raw_parts docs

view details

Mazdak Farrokhzad

commit sha 93efe41b4ef9e0cccedbf962381002d48b3f780c

stabilize transparent_enums

view details

Mazdak Farrokhzad

commit sha 25460ebef6ae94494fc89a736a2f51bef2ea55c3

transparent_enums: test alignment

view details

Guillaume Gomez

commit sha 6590339c31ab934add15ec49bc474ba9d78435e2

Clean up E0205 explanation

view details

Erin Power

commit sha c75a1f0e4dfd6e4a3929bc6496018734b5ef60c9

Update RELEASES.md for 1.41.0

view details

XAMPPRocky

commit sha 5918e9f02595a4b9ffacc4ecf5a0d470528a3824

Update RELEASES.md

view details

Guillaume Gomez

commit sha 94fcda0e1346f284c44a27c5c07c2b0999e5bc29

clean up E0214 explanation

view details

Guillaume Gomez

commit sha 3850d96379126087240b640470632362a5d32234

clean up error codes explanation

view details

Guillaume Gomez

commit sha 0f5ed4d2cdc3678cdd3a5c2dceb85a0ac8564f87

Clean up E0207 explanation

view details

Linus Färnstrand

commit sha b5ff8064a4fe5b2bc70ee209b19d129b8ffc3ebc

Add MIN/MAX associated constants to the integer types

view details

Linus Färnstrand

commit sha 22dcfa1d8d18687d7ca0b91974bce4202d3383e9

Add relevant associated constants to the float types

view details

Linus Färnstrand

commit sha 9d257579fcaa44f69c8f7d5f668b05ae89e4507b

Fix some float operations to work together with the assoc consts

view details

Linus Färnstrand

commit sha 6ce16cfa42dcb1acd2c823a1d45269132d372409

Remove no longer valid test

view details

push time in 17 days

push eventcjgillot/rust

Andrew Paverd

commit sha c0744e1e0c35b1083733fd5c74fc3fb5a6cd04f7

Add support for Control Flow Guard on Windows. This patch enables rustc to emit the required LLVM module flags to enable Control Flow Guard metadata (cfguard=1) or metadata and checks (cfguard=2). The LLVM module flags are ignored on unsupported targets and operating systems.

view details

Yuki Okushi

commit sha cef7764a7624fabeb151b861f005a9d89da91a09

Avoid ICE in macro's diagnostics

view details

Yuki Okushi

commit sha b1c91ee1b1a671e1d277763169abd9986195712a

Change Applicability to `HasPlaceholders`

view details

Tomasz Miąsko

commit sha 80c3bec9fefa7a32ca2613d9a9f84046818cec6a

Remove incorrect debug assertions from catch_unwind Previously the debug assertions in the implementation of catch_unwind used to verify consistency of the panic count by checking that the count is zero just before leaving the function. This incorrectly assumed that no panic was in progress when entering `catch_unwind`.

view details

bors

commit sha cdd41ea5fc37d1ba879fd52743bde35fde4a89df

Auto merge of #68633 - JohnTitor:avoid-ice-in-diagnostics, r=estebank Avoid ICE in macro's diagnostics Fixes #68629 r? @estebank

view details

bors

commit sha 6c0b779b7bb23ad1bead914e8023642cc2368406

Auto merge of #68698 - tmiasko:catch-panic, r=Amanieu Remove incorrect debug assertions from catch_unwind Previously the debug assertions in the implementation of catch_unwind used to verify consistency of the panic count by checking that the count is zero just before leaving the function. This incorrectly assumed that no panic was in progress when entering `catch_unwind`. Fixes #68696.

view details

bors

commit sha 64184a3288eca13ddfb7bc2e7b5231cbb8d5b88f

Auto merge of #68180 - ajpaverd:cfguard-rust, r=nagisa Add support for Control Flow Guard on Windows. LLVM now supports Windows Control Flow Guard (CFG): https://github.com/llvm/llvm-project/commit/d157a9bc8ba1085cc4808c6941412322a7fd884e This patch adds support for rustc to emit the required LLVM module flags to enable CFG metadata (cfguard=1) or metadata and checks (cfguard=2). The LLVM module flags are ignored on unsupported targets and operating systems.

view details

Mazdak Farrokhzad

commit sha 50f0e2e9e6e85c5ae15ffde79e34edfd284465fd

{syntax -> rustc_ast_passes}::node_count

view details

Mazdak Farrokhzad

commit sha e03d1064f0d98961b83885ce951351ae57cc7aad

syntax: move GLOBALS to attr module

view details

Mazdak Farrokhzad

commit sha 64d0143c2c5f627e246822b4e2f501e563ec63cc

pretty: remove ParseSess dependency

view details

Mazdak Farrokhzad

commit sha 9be73dc63a63bc8692423bdac073c591dff80ccd

syntax: simplify HasAttrs code

view details

Mazdak Farrokhzad

commit sha 93a8283614e995a0cf7a866356609b7522cfda24

Move builtin attribute logic to new rustc_attr crate. For now, this is all the crate contains, but more attribute logic & types will be moved there over time.

view details

Mazdak Farrokhzad

commit sha 097d5e1c5edea1c0bf350b709087ddf5d60d2d9f

1. move node_id to syntax 2. invert rustc_session & syntax deps 3. drop rustc_session dep in rustc_hir

view details

Mazdak Farrokhzad

commit sha 98fd6a5c88a44214f15a43a9e633e3b71876bdb3

1. move allow_internal_unstable to rustc_attr 2. as a result, drop rustc_errors dep from syntax

view details

Mazdak Farrokhzad

commit sha e233331a519408edf60ac1c7dee4a9cefe8c8756

syntax::print -> new crate rustc_ast_pretty

view details

Mazdak Farrokhzad

commit sha 154040097d4de3359fef3a8f7641715b3713fa8c

pacify the parallel compiler

view details

Mazdak Farrokhzad

commit sha f882b0797764fb22a445b22748f36f9f904166ae

remove rustc_ast_pretty dep from rustc

view details

Mazdak Farrokhzad

commit sha eadff0682365f21296df54a359be63e5483a99e8

syntax: reexport attr globals

view details

Mazdak Farrokhzad

commit sha a0838462cf9dc05569ee2759f47928f96f6c4831

pretty: injected_crate_name -> has_injected_crate

view details

Mazdak Farrokhzad

commit sha aef2df1aaa2a7ee86a139d98344570d872103d8f

fix fallout in tests

view details

push time in 17 days

push eventcjgillot/rust

Linus Färnstrand

commit sha b5ff8064a4fe5b2bc70ee209b19d129b8ffc3ebc

Add MIN/MAX associated constants to the integer types

view details

Linus Färnstrand

commit sha 22dcfa1d8d18687d7ca0b91974bce4202d3383e9

Add relevant associated constants to the float types

view details

Linus Färnstrand

commit sha 9d257579fcaa44f69c8f7d5f668b05ae89e4507b

Fix some float operations to work together with the assoc consts

view details

Linus Färnstrand

commit sha 6ce16cfa42dcb1acd2c823a1d45269132d372409

Remove no longer valid test

view details

Linus Färnstrand

commit sha 9fcbaa4158948324f395ff2eb8061abdf6dbc21f

Fix broken show-const-contents test

view details

Linus Färnstrand

commit sha 4d9e90d2a5146e3f8639b53f29e210be94b30933

Unlock assoc_int_consts in core+std

view details

Linus Färnstrand

commit sha 002c7897a6c92397f6682bf7e9e86c9b4efd5c51

Unlock assoc_int_consts in documentation examples using it

view details

Linus Färnstrand

commit sha 61fecfb82fe088af6d3a7832b72f298064398aff

Add test accessing the module level int/float consts

view details

varkor

commit sha f4f96e294335de13bc7341c626837affdb2e4a45

Normalise diagnostics with respect to "the X is declared/defined here"

view details

varkor

commit sha 24a2929ed1d3e1760bf89c878352448fb5ee2087

Normalise notes with the/is

view details

varkor

commit sha 45832839087da140eeb2a85a8b98927ec27ba21c

Update new tests

view details

Mazdak Farrokhzad

commit sha dc17f38e041e6bde95c6f6c5c6170dbb3917d51e

check_unsafety: more code reuse

view details

Waffle

commit sha 1aff08010d6b35f2c7cef685b77ff1245c45a523

Add `Iterator::map_while` method and corresponding `MapWhile` adapter

view details

Waffle

commit sha db1a107b3f920637dc785fcc6d6bbe247a271e7b

Fill tracking issue for `iter_map_while` feature

view details

Nicholas Nethercote

commit sha 0d69fe8308a76630a104504c14e1d3d74e2a3f15

Use `P` for `NtTraitItem`, `NtImplItem`, and `NtForeignItem`. This commit reduces the size of `Nonterminal` from a whopping 240 bytes to 72 bytes (on x86-64), which gets it below the `memcpy` threshold. It also removes some impedance mismatches with `Annotatable`, which already uses `P` for these variants.

view details

Nicholas Nethercote

commit sha 7d2173ed27c1cddc4d4a7a9755f244b66cf1ec81

Use `P` for `NtMeta`. This commit reduces the size of `Nonterminal` from a 72 bytes to 40 bytes (on x86-64).

view details

Hiroki Noda

commit sha 50ed6cbf9836a48c938e74bb28501ffbbe59585e

Fix typo.

view details

Hiroki Noda

commit sha c870ca6217038e80138b69a88b2340b62859f52b

Update

view details

Nicholas Nethercote

commit sha 6961db2024aa96bc1ba2d8f38c5dc1ba49fdabd9

Remove unused `read_uleb128` parameter.

view details

Alex Crichton

commit sha ad0e4a167d950607430ff95022219671ab7054db

Update jobserver crate to 0.1.21 Brings in a fix for alexcrichton/jobserver-rs#23 which could cause Cargo to unnecessarily hang in some situations.

view details

push time in 18 days

push eventcjgillot/rust

Camille GILLOT

commit sha eb4417f58f60d3cb424ac371f25000ee09e7c88a

Merge rustc::middle::*lang_items.

view details

push time in 20 days

delete branch cjgillot/rust

delete branch : passes

delete time in 20 days

push eventcjgillot/rust

Charles Gleason

commit sha 293cdf7ac5d14811debdec3408afde104935caef

Make RangeMut::next_unchecked() output a mutable key reference

view details

Charles Gleason

commit sha f547978392872684085c96a3d5c1d00bad24b724

Implement clone_from for BTree collections

view details

Charles Gleason

commit sha 8651aa066fdbbcfaa082531969469c3fa289de9e

Add test for BTreeMap::clone_from

view details

Charles Gleason

commit sha 3caa17b468e50c885f56e7872200e9a76815462b

Format safety comment as per tidy Co-Authored-By: Ashley Mannix <ashleymannix@live.com.au>

view details

Charles Gleason

commit sha 60a7c9421e78a29610e019b4030ca011bcd0bfd5

Include empty BTreeMap in clone_from tests

view details

Charles Gleason

commit sha 81b6f8c3fc9098e7b1b6aad230ea7770d03070bc

Add private is_empty method to RangeMut

view details

Charles Gleason

commit sha 6c3e477d134511094ab301fc15c504cc79804e41

Reformat truncation section of clone_from

view details

John Kåre Alsaker

commit sha b0b11d31a2cd4ff00973c17ff987c345301b2ebd

Use termize instead of term_size

view details

Yuki Okushi

commit sha 0464692bb38d83b4664f2e5d8ca1e15381eeeecc

Update Clippy

view details

Stein Somers

commit sha ba87a50332e2f0e636c97917df7d228ceefde5e4

BTreeMap: tag and explain unsafe internal functions or assert preconditions Co-Authored-By: Mark Rousskov <mark.simulacrum@gmail.com>

view details

bors

commit sha 9ed29b6ff6aa2e048b09c27af8f62ee3040bdb37

Auto merge of #68634 - JohnTitor:clippy-up, r=JohnTitor Update Clippy Fixes #68631 r? @ghost

view details

LeSeulArtichaut

commit sha ab5e29689086d5368e8e526b0295c628bd17ae92

Document remaining undocumented `From` implementations for IPs

view details

LeSeulArtichaut

commit sha 684bd50148ea1e240ebfdce2365af7422f46ec53

Document `From` implementation for NonZero nums

view details

Camille GILLOT

commit sha f0a89914692b0c7c237d4d6a688c399ee3705742

Move check_attr.rs to librustc_passes.

view details

Camille GILLOT

commit sha 1b7e79a9bc68e09cbe04ed160b2e7769753991eb

Move check_mod_attr query in librustc_passes.

view details

Camille GILLOT

commit sha 62c2c99d7d75cb35c60ff8bc3d5c876a0a820b93

Move upvars.rs to librustc_passes.

view details

Camille GILLOT

commit sha 124fd9d2a43bfadfb3f05b5a7fb46ce884357818

Move upvars query to librustc_passes.

view details

Camille GILLOT

commit sha f9335e990897b9ad1f072eb0a8e7385d720538f2

Make Target::from_impl_item a free function.

view details

Tomasz Miąsko

commit sha ee73259bdc518607ad565edc028effbccd69ad11

Fix revision annotations in borrowck-feature-nll-overrides-migrate

view details

bors

commit sha dc92dfc50725f21f775c059413e1d06d725daacf

Auto merge of #67688 - cjgillot:passes, r=Zoxc Move some code to librustc_passes. Per instructions by @Zoxc, some code from `librustc::middle` is moved to `librustc_passes`. cc #65031 r? @Zoxc

view details

push time in 20 days

push eventcjgillot/rust

Camille GILLOT

commit sha c69a83f0ac6a0cfbac2741f9c82a8a0ce2faf137

Move it all into rustc_hir.

view details

push time in 20 days

push eventcjgillot/rust

Thom Chiovoloni

commit sha 6a7a69bde9813ac2868f36a01567c633ed6cd023

Add {leading,trailing}_ones to primitive int types

view details

Thom Chiovoloni

commit sha 2330e325ccee2e91d7aec6c0d4068748619bf588

Tests for leading_trailing_ones

view details

CAD97

commit sha f76177ce4376ea15b1b303da347e8f653679cf88

Stabilize ptr::slice_from_raw_parts[_mut]

view details

Thom Chiovoloni

commit sha 783a7dc8ed03a38910b9ea5ded11139616dfa67b

Mark leading_trailing_ones with tracking issue 57969

view details

CAD97

commit sha 1c0d4851a6a686d09b03fab575fb0847d1e9f665

Fix incorrect slice->ptr conversion in slice_from_raw_parts docs

view details

Mazdak Farrokhzad

commit sha 93efe41b4ef9e0cccedbf962381002d48b3f780c

stabilize transparent_enums

view details

Mazdak Farrokhzad

commit sha 25460ebef6ae94494fc89a736a2f51bef2ea55c3

transparent_enums: test alignment

view details

Guillaume Gomez

commit sha 6590339c31ab934add15ec49bc474ba9d78435e2

Clean up E0205 explanation

view details

Erin Power

commit sha c75a1f0e4dfd6e4a3929bc6496018734b5ef60c9

Update RELEASES.md for 1.41.0

view details

XAMPPRocky

commit sha 5918e9f02595a4b9ffacc4ecf5a0d470528a3824

Update RELEASES.md

view details

Guillaume Gomez

commit sha 94fcda0e1346f284c44a27c5c07c2b0999e5bc29

clean up E0214 explanation

view details

Guillaume Gomez

commit sha 3850d96379126087240b640470632362a5d32234

clean up error codes explanation

view details

Guillaume Gomez

commit sha 0f5ed4d2cdc3678cdd3a5c2dceb85a0ac8564f87

Clean up E0207 explanation

view details

Esteban Küber

commit sha 55dce720b24fde5d8489498fb5f7abd8c52c28f3

Account for `ty::Error` when suggesting `impl Trait` or `Box<dyn Trait>`

view details

Esteban Küber

commit sha d14a323e74d0770960553fe79d0bcd578c393cf9

Use more accurate return path spans No longer suggest `Box::new(if foo { Type1 } else { Type2 })`, instead suggesting `if foo { Box::new(Type1) } else { Box::new(Type2) }`.

view details

Esteban Küber

commit sha 34d51b33787c9b2f59cb3283c8b57a290ab86437

Increase suggestion code window from 6 lines to 20

view details

Esteban Küber

commit sha d493dccef7ae1d2ca739fe828bf9556b44dc460a

Apply `resolve_vars_if_possible` to returned types for more accurate suggestions

view details

Esteban Küber

commit sha 600e385c43904eb4a5337427f3f6fb169fe32234

review comments

view details

Wesley Wiser

commit sha ea42b1c5b85f649728e3a3b334489bac6dce890a

[self-profiler] Use `ThreadId::as_u64()` instead of transmute

view details

Wesley Wiser

commit sha 2acf5a30bac39d6fd326b0d82b047b9e59b64692

[self-profiler] Clean up `EventFilter`

view details

push time in 20 days

push eventcjgillot/rust

Camille GILLOT

commit sha f9335e990897b9ad1f072eb0a8e7385d720538f2

Make Target::from_impl_item a free function.

view details

push time in 20 days

push eventcjgillot/rust

Thom Chiovoloni

commit sha 6a7a69bde9813ac2868f36a01567c633ed6cd023

Add {leading,trailing}_ones to primitive int types

view details

Thom Chiovoloni

commit sha 2330e325ccee2e91d7aec6c0d4068748619bf588

Tests for leading_trailing_ones

view details

CAD97

commit sha f76177ce4376ea15b1b303da347e8f653679cf88

Stabilize ptr::slice_from_raw_parts[_mut]

view details

Thom Chiovoloni

commit sha 783a7dc8ed03a38910b9ea5ded11139616dfa67b

Mark leading_trailing_ones with tracking issue 57969

view details

CAD97

commit sha 1c0d4851a6a686d09b03fab575fb0847d1e9f665

Fix incorrect slice->ptr conversion in slice_from_raw_parts docs

view details

Mazdak Farrokhzad

commit sha 93efe41b4ef9e0cccedbf962381002d48b3f780c

stabilize transparent_enums

view details

Mazdak Farrokhzad

commit sha 25460ebef6ae94494fc89a736a2f51bef2ea55c3

transparent_enums: test alignment

view details

Guillaume Gomez

commit sha 6590339c31ab934add15ec49bc474ba9d78435e2

Clean up E0205 explanation

view details

Erin Power

commit sha c75a1f0e4dfd6e4a3929bc6496018734b5ef60c9

Update RELEASES.md for 1.41.0

view details

XAMPPRocky

commit sha 5918e9f02595a4b9ffacc4ecf5a0d470528a3824

Update RELEASES.md

view details

Guillaume Gomez

commit sha 94fcda0e1346f284c44a27c5c07c2b0999e5bc29

clean up E0214 explanation

view details

Guillaume Gomez

commit sha 3850d96379126087240b640470632362a5d32234

clean up error codes explanation

view details

Guillaume Gomez

commit sha 0f5ed4d2cdc3678cdd3a5c2dceb85a0ac8564f87

Clean up E0207 explanation

view details

Esteban Küber

commit sha 55dce720b24fde5d8489498fb5f7abd8c52c28f3

Account for `ty::Error` when suggesting `impl Trait` or `Box<dyn Trait>`

view details

Esteban Küber

commit sha d14a323e74d0770960553fe79d0bcd578c393cf9

Use more accurate return path spans No longer suggest `Box::new(if foo { Type1 } else { Type2 })`, instead suggesting `if foo { Box::new(Type1) } else { Box::new(Type2) }`.

view details

Esteban Küber

commit sha 34d51b33787c9b2f59cb3283c8b57a290ab86437

Increase suggestion code window from 6 lines to 20

view details

Esteban Küber

commit sha d493dccef7ae1d2ca739fe828bf9556b44dc460a

Apply `resolve_vars_if_possible` to returned types for more accurate suggestions

view details

Esteban Küber

commit sha 600e385c43904eb4a5337427f3f6fb169fe32234

review comments

view details

Wesley Wiser

commit sha ea42b1c5b85f649728e3a3b334489bac6dce890a

[self-profiler] Use `ThreadId::as_u64()` instead of transmute

view details

Wesley Wiser

commit sha 2acf5a30bac39d6fd326b0d82b047b9e59b64692

[self-profiler] Clean up `EventFilter`

view details

push time in 20 days

pull request commentrust-lang/rust

Move the dep_graph construction to a dedicated crate.

Rebased.

cjgillot

comment created time in 21 days

push eventcjgillot/rust

Erin Power

commit sha 2ccf65c7eba519dcc407cb76f08d04ac00d05851

Remove appendix from LICENCE-APACHE

view details

Markus Westerlind

commit sha a5657dbc43d84133bd95e5de178d68634973b1b3

perf: Avoid creating a SmallVec if nothing changes during a fold Not sure if this helps but in theory it should be less work than what the current micro optimization does for `ty::Predicate` lists. (It would explain the overhead I am seeing from `perf`.)

view details

Markus Westerlind

commit sha 898ed636a3f44e3aa0156c1bb5ebc86b08aef5fa

Fix copy_from_slice which should be extend_from_slice

view details

CAD97

commit sha 4e98966757cad7301ed2ae350d600c1678cc5116

stabalize ManuallyDrop::take

view details

Stein Somers

commit sha 9e90840a6ae4a6f61781bd80adea825d156ddffa

Simplify NodeHeader by avoiding slices in BTreeMaps with shared roots

view details

Stein Somers

commit sha 3ada8aeed403157f6608b2daf9a6c88908298b25

Add more BTreeMap/BTreeSet benchmarks regarding iteration

view details

Thom Chiovoloni

commit sha 6a7a69bde9813ac2868f36a01567c633ed6cd023

Add {leading,trailing}_ones to primitive int types

view details

Thom Chiovoloni

commit sha 2330e325ccee2e91d7aec6c0d4068748619bf588

Tests for leading_trailing_ones

view details

Markus Westerlind

commit sha a1586f1d2b17d687444d3b94aedd7ce24ae074ed

Explain fold_list

view details

Dylan MacKenzie

commit sha 2fb4c4472e4563a52e2dc544e47a01f564b9219e

Improve graphviz visualization for new framework

view details

Dylan MacKenzie

commit sha 07c51f605a021f1416a23e0cd76afa2156d5526c

Implement new dataflow framework and cursor

view details

Dylan MacKenzie

commit sha 7d5885727d4a42518f811933de20676f8be61818

Remove old "generic" framework

view details

Dylan MacKenzie

commit sha 355cfcdf433c47bfb2365752d33f2a24dfc6e78f

Use unified dataflow framework in `check_consts`

view details

Dylan MacKenzie

commit sha 47dce1be81b17512db9e730fdd04adf01f7cf10f

Add test for `ResultsCursor` This is a unit test that ensures the `seek` functions work correctly.

view details

Dylan MacKenzie

commit sha 2727f10b216fc6ac7d3a22f216f55e46e9c99506

Improve docs for new framework

view details

Dylan MacKenzie

commit sha b70898d5eeb9f7fc994035eb90b609c49f53f745

Improve docs for `GenKill` and `GenKillSet`

view details

CAD97

commit sha f76177ce4376ea15b1b303da347e8f653679cf88

Stabilize ptr::slice_from_raw_parts[_mut]

view details

Dylan MacKenzie

commit sha 1006ad036a447f23b2f9f88a300bf56d7bcf8b64

Fix test

view details

Thom Chiovoloni

commit sha 783a7dc8ed03a38910b9ea5ded11139616dfa67b

Mark leading_trailing_ones with tracking issue 57969

view details

Jorge Aparicio

commit sha 470cdf54ac9acee20ab8da46ef7899bae9f58f29

add bare metal ARM Cortex-A targets to rustc -> `rustc --target armv7-none-eabi` will work also build rust-std (rustup) components for them -> `rustup target add armv7-none-eabi` will work

view details

push time in 21 days

Pull request review commentrust-lang/rust

Move some code to librustc_passes.

 //! conflicts between multiple such attributes attached to the same //! item. -use crate::hir::map::Map;-use crate::ty::query::Providers;-use crate::ty::TyCtxt;+use rustc::hir::check_attr::{MethodKind, Target};+use rustc::hir::map::Map;+use rustc::ty::query::Providers;+use rustc::ty::TyCtxt;  use rustc_errors::struct_span_err; use rustc_hir as hir; use rustc_hir::def_id::DefId; use rustc_hir::intravisit::{self, NestedVisitorMap, Visitor}; use rustc_hir::DUMMY_HIR_ID;-use rustc_hir::{self, HirId, Item, ItemKind, TraitItem, TraitItemKind};+use rustc_hir::{self, HirId, Item, ItemKind, TraitItem}; use rustc_session::lint::builtin::UNUSED_ATTRIBUTES; use rustc_span::symbol::sym; use rustc_span::Span; use syntax::ast::Attribute; use syntax::attr; -use std::fmt::{self, Display};--#[derive(Copy, Clone, PartialEq)]-pub(crate) enum MethodKind {-    Trait { body: bool },-    Inherent,-}--#[derive(Copy, Clone, PartialEq)]-pub(crate) enum Target {-    ExternCrate,-    Use,-    Static,-    Const,-    Fn,-    Closure,-    Mod,-    ForeignMod,-    GlobalAsm,-    TyAlias,-    OpaqueTy,-    Enum,-    Struct,-    Union,-    Trait,-    TraitAlias,-    Impl,-    Expression,-    Statement,-    AssocConst,-    Method(MethodKind),-    AssocTy,-    ForeignFn,-    ForeignStatic,-    ForeignTy,+pub(crate) trait TargetExt {+    fn from_impl_item<'tcx>(tcx: TyCtxt<'tcx>, impl_item: &hir::ImplItem<'_>) -> Target;

This method is only used in this file. Since rustc::hir::check_attr is bound to disappear in #68554, I think I will make it a free function.

cjgillot

comment created time in 22 days

push eventcjgillot/rust

Camille GILLOT

commit sha ec34752716524da577218c09574e1ceaabfb45f6

Nits.

view details

push time in 23 days

push eventcjgillot/rust

Matthew Jasper

commit sha 4843f227885bf23a34cc8485173c11601b00d977

Handle recursive instantiation of drop shims

view details

Erin Power

commit sha 2ccf65c7eba519dcc407cb76f08d04ac00d05851

Remove appendix from LICENCE-APACHE

view details

Stein Somers

commit sha 8314b7fd27350681ecbe5d55f840ddc5873d222f

More thorough testing of BTreeMap::range

view details

varkor

commit sha 3ab95ceb12b60c1564d037e8d8d6e2406fad44b3

Detail transitive containment in E0588 diagnostic

view details

Josh Stone

commit sha 0d2f9825b5687470accfc2e25a73a0cd02c37e01

Rebase LLVM onto 9.0.1

view details

Markus Westerlind

commit sha a5657dbc43d84133bd95e5de178d68634973b1b3

perf: Avoid creating a SmallVec if nothing changes during a fold Not sure if this helps but in theory it should be less work than what the current micro optimization does for `ty::Predicate` lists. (It would explain the overhead I am seeing from `perf`.)

view details

Oliver Middleton

commit sha 084217af65b212c3c68f66d798faa19bcef5007a

Don't use f64 shims for f32 cmath functions on none 32-bit x86 MSVC These shims are only needed on 32-bit x86. Additionally since https://reviews.llvm.org/rL268875 LLVM handles adding the shims itself for the intrinsics.

view details

Markus Westerlind

commit sha 898ed636a3f44e3aa0156c1bb5ebc86b08aef5fa

Fix copy_from_slice which should be extend_from_slice

view details

Aaron Hill

commit sha 4840cd8117010e057109e0233f403e526d309d9f

Don't discard marker trait impls when inference variables are present Fixes #61651 Previously, we would unconditionally discard impl candidates for marker traits during trait selection. However, if the predicate had inference variables, this could have the effect of constrainting inference variables (due to a successful trait selection) when we would have otherwise failed due to mutliple applicable impls, This commit prevents marker trait impls from being discarded while the obligation predicate has any inference variables, ensuring that discarding impls will never cause us to incorrectly constraint inference variables.

view details

CAD97

commit sha 4e98966757cad7301ed2ae350d600c1678cc5116

stabalize ManuallyDrop::take

view details

Stein Somers

commit sha 9e90840a6ae4a6f61781bd80adea825d156ddffa

Simplify NodeHeader by avoiding slices in BTreeMaps with shared roots

view details

msizanoen1

commit sha 451c97ba53412f6b1b740a5e6783da954e7c7be9

Distribution CI for RISC-V GNU/Linux

view details

John Kåre Alsaker

commit sha 4b19c80819efbbf48a0efe0aba0e6e2fd3cafbc3

Don't create strings in the fast path

view details

John Kåre Alsaker

commit sha edee9c3898bdc3e319d90322259e535affd6ae49

Lift using interners instead of in_arena

view details

John Kåre Alsaker

commit sha b21c9dddb061faf2d0de0c05aa2c26ad295b470e

Use Arena for interning

view details

John Kåre Alsaker

commit sha f4968c8e00daed7cc4e5658a7abe61557abd4570

Remove SyncTypedArena, SyncDroplessArena and in_arena

view details

Stein Somers

commit sha 3ada8aeed403157f6608b2daf9a6c88908298b25

Add more BTreeMap/BTreeSet benchmarks regarding iteration

view details

Mark Mansi

commit sha 109c30f3d4783f569eb4d9350e6045a1e96af80d

More separation of error reporting from region inference

view details

Mark Mansi

commit sha c3e74f347e44e3a54f6ff094ef8b741589d69ab5

Move some methods to region_infer/mod.rs

view details

mark

commit sha 736348ac41b00657bd8d5d6b8acae1eeef9985c7

Move a bunch of methods to inherent impl MirBorrowckCtxt

view details

push time in 23 days

pull request commentrust-lang/rust

Move some code to librustc_passes.

Rebased with lang_items changes moves to #68554.

cjgillot

comment created time in 23 days

push eventcjgillot/rust

Matthew Jasper

commit sha 4843f227885bf23a34cc8485173c11601b00d977

Handle recursive instantiation of drop shims

view details

Erin Power

commit sha 2ccf65c7eba519dcc407cb76f08d04ac00d05851

Remove appendix from LICENCE-APACHE

view details

Stein Somers

commit sha 8314b7fd27350681ecbe5d55f840ddc5873d222f

More thorough testing of BTreeMap::range

view details

varkor

commit sha 3ab95ceb12b60c1564d037e8d8d6e2406fad44b3

Detail transitive containment in E0588 diagnostic

view details

Josh Stone

commit sha 0d2f9825b5687470accfc2e25a73a0cd02c37e01

Rebase LLVM onto 9.0.1

view details

Markus Westerlind

commit sha a5657dbc43d84133bd95e5de178d68634973b1b3

perf: Avoid creating a SmallVec if nothing changes during a fold Not sure if this helps but in theory it should be less work than what the current micro optimization does for `ty::Predicate` lists. (It would explain the overhead I am seeing from `perf`.)

view details

Oliver Middleton

commit sha 084217af65b212c3c68f66d798faa19bcef5007a

Don't use f64 shims for f32 cmath functions on none 32-bit x86 MSVC These shims are only needed on 32-bit x86. Additionally since https://reviews.llvm.org/rL268875 LLVM handles adding the shims itself for the intrinsics.

view details

Markus Westerlind

commit sha 898ed636a3f44e3aa0156c1bb5ebc86b08aef5fa

Fix copy_from_slice which should be extend_from_slice

view details

Aaron Hill

commit sha 4840cd8117010e057109e0233f403e526d309d9f

Don't discard marker trait impls when inference variables are present Fixes #61651 Previously, we would unconditionally discard impl candidates for marker traits during trait selection. However, if the predicate had inference variables, this could have the effect of constrainting inference variables (due to a successful trait selection) when we would have otherwise failed due to mutliple applicable impls, This commit prevents marker trait impls from being discarded while the obligation predicate has any inference variables, ensuring that discarding impls will never cause us to incorrectly constraint inference variables.

view details

CAD97

commit sha 4e98966757cad7301ed2ae350d600c1678cc5116

stabalize ManuallyDrop::take

view details

Stein Somers

commit sha 9e90840a6ae4a6f61781bd80adea825d156ddffa

Simplify NodeHeader by avoiding slices in BTreeMaps with shared roots

view details

msizanoen1

commit sha 451c97ba53412f6b1b740a5e6783da954e7c7be9

Distribution CI for RISC-V GNU/Linux

view details

John Kåre Alsaker

commit sha 4b19c80819efbbf48a0efe0aba0e6e2fd3cafbc3

Don't create strings in the fast path

view details

John Kåre Alsaker

commit sha edee9c3898bdc3e319d90322259e535affd6ae49

Lift using interners instead of in_arena

view details

John Kåre Alsaker

commit sha b21c9dddb061faf2d0de0c05aa2c26ad295b470e

Use Arena for interning

view details

John Kåre Alsaker

commit sha f4968c8e00daed7cc4e5658a7abe61557abd4570

Remove SyncTypedArena, SyncDroplessArena and in_arena

view details

Stein Somers

commit sha 3ada8aeed403157f6608b2daf9a6c88908298b25

Add more BTreeMap/BTreeSet benchmarks regarding iteration

view details

Mark Mansi

commit sha 109c30f3d4783f569eb4d9350e6045a1e96af80d

More separation of error reporting from region inference

view details

Mark Mansi

commit sha c3e74f347e44e3a54f6ff094ef8b741589d69ab5

Move some methods to region_infer/mod.rs

view details

mark

commit sha 736348ac41b00657bd8d5d6b8acae1eeef9985c7

Move a bunch of methods to inherent impl MirBorrowckCtxt

view details

push time in 23 days

PR opened rust-lang/rust

Split lang_items to crates `rustc_lang_items` and `rustc_passes`.

As discussed in comment https://github.com/rust-lang/rust/pull/67688#discussion_r368289946

+844 -726

0 comment

23 changed files

pr created time in 23 days

create barnchcjgillot/rust

branch : lang_items

created branch time in 23 days

delete branch cjgillot/rust

delete branch : arena

delete time in a month

push eventcjgillot/rust

Erin Power

commit sha 2ccf65c7eba519dcc407cb76f08d04ac00d05851

Remove appendix from LICENCE-APACHE

view details

CAD97

commit sha 4e98966757cad7301ed2ae350d600c1678cc5116

stabalize ManuallyDrop::take

view details

Stein Somers

commit sha 9e90840a6ae4a6f61781bd80adea825d156ddffa

Simplify NodeHeader by avoiding slices in BTreeMaps with shared roots

view details

Stein Somers

commit sha 3ada8aeed403157f6608b2daf9a6c88908298b25

Add more BTreeMap/BTreeSet benchmarks regarding iteration

view details

Dylan MacKenzie

commit sha 2fb4c4472e4563a52e2dc544e47a01f564b9219e

Improve graphviz visualization for new framework

view details

Dylan MacKenzie

commit sha 07c51f605a021f1416a23e0cd76afa2156d5526c

Implement new dataflow framework and cursor

view details

Dylan MacKenzie

commit sha 7d5885727d4a42518f811933de20676f8be61818

Remove old "generic" framework

view details

Dylan MacKenzie

commit sha 355cfcdf433c47bfb2365752d33f2a24dfc6e78f

Use unified dataflow framework in `check_consts`

view details

Dylan MacKenzie

commit sha 47dce1be81b17512db9e730fdd04adf01f7cf10f

Add test for `ResultsCursor` This is a unit test that ensures the `seek` functions work correctly.

view details

Dylan MacKenzie

commit sha 2727f10b216fc6ac7d3a22f216f55e46e9c99506

Improve docs for new framework

view details

Dylan MacKenzie

commit sha b70898d5eeb9f7fc994035eb90b609c49f53f745

Improve docs for `GenKill` and `GenKillSet`

view details

Dylan MacKenzie

commit sha 1006ad036a447f23b2f9f88a300bf56d7bcf8b64

Fix test

view details

Dylan MacKenzie

commit sha be730e16de1c2590d20ff76c9dfa9a7536fd418a

Use trailing underscore for helper methods

view details

Aaron Hill

commit sha d088d8a2c1bd706c458d36eac941949169514d86

Revert previous attempt at detecting unsatisfiable predicates

view details

Aaron Hill

commit sha 171fe82efc2ab420e3fe2e9ad5a44db093a751f1

Filter and test predicates using `normalize_and_test_predicates` for const-prop Fixes #68264 Previously, I attempted to use `substitute_normalize_and_test_predicates` to detect unsatisfiable bounds. Unfortunately, since const-prop runs in a generic environment (we don't have any of the function's generic parameters substituted), this could lead to cycle errors when attempting to normalize predicates. This check is replaced with a more precise check. We now only call `normalize_and_test_predicates` on predicates that have the possibility of being proved unsatisfiable - that is, predicates that don't depend on anything local to the function (e.g. generic parameters). This ensures that we don't hit cycle errors when we normalize said predicates, while still ensuring that we detect unsatisfiable predicates.

view details

Aaron Hill

commit sha c431cd751f6b0257443cd4d25c67ab36a8e9bc12

Fix typo Co-Authored-By: Oliver Scherer <github35764891676564198441@oli-obk.de>

view details

Aaron Hill

commit sha 3fef3d8b76e70da88366e45a62f98592cf9be76c

Add @weiznich's regression test

view details

Vita Batrla

commit sha 34878d7b05813e090b370f48b8d437e4bd875094

Options IP_MULTICAST_TTL and IP_MULTICAST_LOOP are 1 byte on BSD and Solaris See ip(4P) man page: IP_MULTICAST_TTL Time to live for multicast datagrams. This option takes an unsigned character as an argument. Its value is the TTL that IP uses on outgoing multi- cast datagrams. The default is 1. IP_MULTICAST_LOOP Loopback for multicast datagrams. Normally multi- cast datagrams are delivered to members on the sending host (or sending zone). Setting the unsigned character argument to 0 causes the oppo- site behavior, meaning that when multiple zones are present, the datagrams are delivered to all zones except the sending zone. https://docs.oracle.com/cd/E88353_01/html/E37851/ip-4p.html https://man.openbsd.org/ip.4

view details

Vadim Petrochenkov

commit sha 8fa8b81a7701ba8c14476d86b641d5cbe6cfa713

Fix some tests failing in `--pass check` mode

view details

Vita Batrla

commit sha