Skip to content

Rollup of 8 pull requests #136834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 27 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1ba2153
Enable sanitizers on MSVC CI jobs
tmiasko Jan 27, 2025
aa884da
Delay bug when method confirmation cannot upcast object pick of self
compiler-errors Feb 4, 2025
bb4c9d2
Improved named region errors
compiler-errors Feb 4, 2025
fab6d8a
Prevent generic pattern types from being used in libstd
oli-obk Feb 5, 2025
a9278c8
add `Builder::is_host_target`
onur-ozkan Feb 9, 2025
5a8ac04
add coverage for `Builder::is_host_target`
onur-ozkan Feb 9, 2025
de405dc
introduce CoercePointeeWellformed for coherence checks at typeck stage
dingxiangfei2009 Jan 26, 2025
c067324
rename the trait to validity and place a feature gate afront
dingxiangfei2009 Jan 28, 2025
b943505
move repr(transparent) checks to coherence
dingxiangfei2009 Jan 28, 2025
1848343
block coerce_pointee_validated for stabilization
dingxiangfei2009 Feb 9, 2025
aea5595
fix the error code document
dingxiangfei2009 Feb 9, 2025
3f50076
compiler: gate `extern "{abi}"` in ast_lowering
workingjubilee Nov 4, 2024
90c50f0
compiler: start using rustc_ast_lowering in rustc_passes
workingjubilee Feb 5, 2025
ca19347
tests: error strings for ABI stability now match
workingjubilee Feb 5, 2025
54ff6e0
compiler: remove rustc_target::spec::abi reexports
workingjubilee Feb 5, 2025
cd9d39e
compiler: remove `abi`-specific `extern "{abi}"` suggestions
workingjubilee Feb 7, 2025
c3856e9
rename `is_host_target` to `is_builder_target`
onur-ozkan Feb 10, 2025
17026e2
Reword doc comment on `CoercePointeeValidated`
compiler-errors Feb 10, 2025
387099b
Update books
rustbot Feb 10, 2025
fa8158a
Rollup merge of #136107 - dingxiangfei2009:coerce-pointee-wellformed,…
matthiaskrgr Feb 10, 2025
0951f38
Rollup merge of #136155 - tmiasko:msvc-enable-sanitizers, r=Mark-Simu…
matthiaskrgr Feb 10, 2025
376416e
Rollup merge of #136524 - compiler-errors:bad-pick, r=BoxyUwU
matthiaskrgr Feb 10, 2025
869eade
Rollup merge of #136559 - compiler-errors:resolve-regions-for-type-te…
matthiaskrgr Feb 10, 2025
65d1218
Rollup merge of #136584 - oli-obk:pattern-types-generic, r=BoxyUwU
matthiaskrgr Feb 10, 2025
dcd0153
Rollup merge of #136603 - workingjubilee:move-abi-versioning-into-ast…
matthiaskrgr Feb 10, 2025
a50692e
Rollup merge of #136767 - onur-ozkan:is-host-target, r=albertlarsan68…
matthiaskrgr Feb 10, 2025
605f0eb
Rollup merge of #136825 - rustbot:docs-update, r=ehuss
matthiaskrgr Feb 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reword doc comment on CoercePointeeValidated
  • Loading branch information
compiler-errors authored Feb 10, 2025
commit 17026e24120a8c958b2d742b498fdb83d1314d59
11 changes: 5 additions & 6 deletions library/core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1290,13 +1290,12 @@ pub macro CoercePointee($item:item) {
/* compiler built-in */
}

/// A validation trait that is implemented on data with `derive(CoercePointee)`
/// so that the compiler can enforce a set of rules that the target data must
/// conform to in order for the derived behaviours are safe and useful for
/// the purpose of the said macro.
/// A trait that is implemented for ADTs with `derive(CoercePointee)` so that
/// the compiler can enforce the derive impls are valid post-expansion, since
/// the derive has stricter requirements than if the impls were written by hand.
///
/// This trait will not ever be exposed for use as public part of the library
/// and shall not ever be stabilised.
/// This trait is not intended to be implemented by users or used other than
/// validation, so it should never be stabilized.
#[cfg(not(bootstrap))]
#[lang = "coerce_pointee_validated"]
#[unstable(feature = "coerce_pointee_validated", issue = "none")]
Expand Down
Loading