Skip to content
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

Rollup of 7 pull requests #136549

Merged
merged 21 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0bb3d52
Remove `LateContext::match_def_path()`
samueltardieu Jan 10, 2025
f030893
Use a different hir type for patterns in pattern types than we use in…
oli-obk Jan 7, 2025
b909c36
Remove allocations in `FnCtxt` checks.
Jarcho Feb 3, 2025
6378fbc
Check for generic parameter mismatches on trait functions.
Jarcho Feb 3, 2025
23ab0f2
Check Sizedness of return type in WF
compiler-errors Jan 30, 2025
0d907c1
Make error message less awkward
compiler-errors Feb 2, 2025
3683975
Add missing lang items in no_core tests in rustdoc
compiler-errors Feb 3, 2025
0b26dc0
Remove unnecessary layout assertions for object-safe receivers
compiler-errors Feb 4, 2025
8b1c28f
Fix ICE when function argument mismatches.
Jarcho Feb 4, 2025
c4888de
Remove helper trait `UserAnnotatedTyHelpers`
Zalathar Feb 4, 2025
abd9002
Rename `thir::cx::Cx` to `ThirBuildCx`
Zalathar Feb 4, 2025
b1b388e
fix NLL TLS end of function spans
lqd Feb 3, 2025
d2a30f7
bless test expectations
lqd Feb 3, 2025
fbcaa9b
Allow using named consts in pattern types
oli-obk Jan 7, 2025
40c4e05
Rollup merge of #136242 - samueltardieu:remove-match-def-path, r=flip…
matthiaskrgr Feb 4, 2025
a8ecb79
Rollup merge of #136274 - compiler-errors:sized-wf, r=lcnr
matthiaskrgr Feb 4, 2025
b07fa76
Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr
matthiaskrgr Feb 4, 2025
46b18a9
Rollup merge of #136477 - lqd:nll-tls-spans, r=matthewjasper
matthiaskrgr Feb 4, 2025
29e1ddd
Rollup merge of #136497 - Jarcho:fn_ctxt, r=compiler-errors
matthiaskrgr Feb 4, 2025
5da7500
Rollup merge of #136520 - compiler-errors:redundant-layout-assert, r=…
matthiaskrgr Feb 4, 2025
1b7efa2
Rollup merge of #136526 - Zalathar:thir-cx, r=Nadrieril
matthiaskrgr Feb 4, 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
Add missing lang items in no_core tests in rustdoc
compiler-errors committed Feb 4, 2025
commit 36839759ce535c0496b8060c3d4beb41a170dd6d
5 changes: 4 additions & 1 deletion tests/rustdoc-json/primitives/primitive_impls.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#![feature(no_core)]
#![feature(no_core, lang_items)]
#![feature(rustc_attrs)]
#![feature(rustdoc_internals)]
#![no_core]
#![rustc_coherence_is_core]

//@ set impl_i32 = "$.index[*][?(@.docs=='Only core can do this')].id"

#[lang = "sized"]
trait Sized {}

/// Only core can do this
impl i32 {
//@ set identity = "$.index[*][?(@.docs=='Do Nothing')].id"
5 changes: 4 additions & 1 deletion tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs
Original file line number Diff line number Diff line change
@@ -2,9 +2,12 @@
// feature.

#![deny(warnings)]
#![feature(no_core)]
#![feature(no_core, lang_items)]
#![no_core]

#[lang = "sized"]
trait Sized {}

/// ```{class="}
/// main;
/// ```
4 changes: 2 additions & 2 deletions tests/rustdoc-ui/custom_code_classes_in_docs-warning3.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: unclosed quote string `"`
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
--> $DIR/custom_code_classes_in_docs-warning3.rs:11:1
|
LL | / /// ```{class="}
LL | | /// main;
@@ -17,7 +17,7 @@ LL | #![deny(warnings)]
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(warnings)]`

error: unclosed quote string `"`
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
--> $DIR/custom_code_classes_in_docs-warning3.rs:11:1
|
LL | / /// ```{class="}
LL | | /// main;
5 changes: 4 additions & 1 deletion tests/rustdoc/cfg_doc_reexport.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#![feature(doc_cfg)]
#![feature(no_core)]
#![feature(no_core, lang_items)]

#![crate_name = "foo"]
#![no_core]

#[lang = "sized"]
trait Sized {}

//@ has 'foo/index.html'
//@ has - '//dt/*[@class="stab portability"]' 'foobar'
//@ has - '//dt/*[@class="stab portability"]' 'bar'
5 changes: 4 additions & 1 deletion tests/rustdoc/cross-crate-primitive-doc.rs
Original file line number Diff line number Diff line change
@@ -2,9 +2,12 @@
//@ compile-flags: --extern-html-root-url=primitive_doc=../ -Z unstable-options
//@ only-linux

#![feature(no_core)]
#![feature(no_core, lang_items)]
#![no_core]

#[lang = "sized"]
trait Sized {}

extern crate primitive_doc;

//@ has 'cross_crate_primitive_doc/fn.foo.html' '//a[@href="../primitive_doc/primitive.usize.html"]' 'usize'
5 changes: 5 additions & 0 deletions tests/rustdoc/intra-doc/no-doc-primitive.rs
Original file line number Diff line number Diff line change
@@ -6,8 +6,13 @@
#![rustc_coherence_is_core]
#![crate_type = "rlib"]


//@ has no_doc_primitive/index.html
//! A [`char`] and its [`char::len_utf8`].

#[lang = "sized"]
trait Sized {}

impl char {
pub fn len_utf8(self) -> usize {
42
5 changes: 4 additions & 1 deletion tests/rustdoc/reexport-trait-from-hidden-111064-2.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Regression test for <https://github.com/rust-lang/rust/issues/111064>.
#![feature(no_core)]
#![feature(no_core, lang_items)]
#![no_core]
#![crate_name = "foo"]

#[lang = "sized"]
trait Sized {}

//@ files "foo" "['sidebar-items.js', 'all.html', 'hidden', 'index.html', 'struct.Bar.html', \
// 'visible']"
//@ files "foo/hidden" "['inner']"
5 changes: 4 additions & 1 deletion tests/rustdoc/safe-intrinsic.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#![feature(intrinsics)]
#![feature(no_core)]
#![feature(no_core, lang_items)]
#![feature(rustc_attrs)]

#![no_core]
#![crate_name = "foo"]

#[lang = "sized"]
trait Sized {}

//@ has 'foo/fn.abort.html'
//@ has - '//pre[@class="rust item-decl"]' 'pub fn abort() -> !'
#[rustc_intrinsic]