Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
41e6f76
future-incompat lints: don't link to the nightly edition-guide version
dianne Jul 16, 2025
dad96b1
Use serde for target spec json deserialize
Noratrieb Jul 20, 2025
c4eb077
Ensure we codegen and don't internalize the entrypoint
saethlin Jul 17, 2025
6e8762f
Use less HIR in check_private_in_public.
cjgillot Oct 1, 2023
0aa6170
Add a test case for ui test false-sealed-traits-note.rs
yuk1ty Jul 21, 2025
2d1fccd
pass build.npm from bootstrap to tidy and use it for npm install
lolbinarycat Jul 22, 2025
9e75032
rustdoc: avoid allocating a temp String for aliases in search index
lolbinarycat Jul 22, 2025
3440bc9
Unquerify extern_mod_stmt_cnum.
cjgillot Jul 3, 2025
95de0aa
rustc_resolve: get rid of unused rustdoc::span_of_fragments_with_expa…
lolbinarycat Jul 22, 2025
ab8e521
get rid of some false negatives in rustdoc::broken_intra_doc_links
lolbinarycat Nov 7, 2024
91b9b33
adjust more unit tests to reflect more aggressive intra-doc linting
lolbinarycat Nov 8, 2024
de68c59
rustdoc::broken_intra_doc_links: no backticks = use old behavior
lolbinarycat Apr 18, 2025
c5b39cf
rustdoc: update tests to match new lint behavior
lolbinarycat Apr 18, 2025
82df892
rustdoc::broken_intra_doc_links: only be lenient with shortcut links
lolbinarycat Apr 19, 2025
2d38996
move bad-intra-doc test into intra-doc dir
lolbinarycat Apr 19, 2025
9bb9c39
Don't suggest assoc ty bound on non-angle-bracketed problematic assoc…
fmease Jul 22, 2025
eb9c654
std: net: uefi: Add support to query connection data
Ayush1325 Jul 12, 2025
af06bb9
Stop using the old `validate_attr` logic for stability attributes
JonathanBrouwer Jul 23, 2025
37480bc
coretests/num: use ldexp instead of hard-coding a power of 2
RalfJung Jul 21, 2025
371b010
generate elf symbol version in raw-dylib
usamoi Jul 20, 2025
648e844
Rollup merge of #132748 - lolbinarycat:rustdoc-intra-doc-link-warn-mo…
fmease Jul 24, 2025
bd914d0
Rollup merge of #143374 - cjgillot:bare-extern-crate-map, r=petrochenkov
fmease Jul 24, 2025
aaad15d
Rollup merge of #143838 - Ayush1325:uefi-tcp4-config-data, r=tgross35
fmease Jul 24, 2025
8432fc2
Rollup merge of #144014 - dianne:edition-guide-links, r=estebank
fmease Jul 24, 2025
8702a51
Rollup merge of #144094 - saethlin:codegen-the-main-fn, r=petrochenkov
fmease Jul 24, 2025
5b6238a
Rollup merge of #144218 - Noratrieb:target-spec-json-de-jank, r=fee1-…
fmease Jul 24, 2025
9ee0f7d
Rollup merge of #144221 - usamoi:versym, r=bjorn3
fmease Jul 24, 2025
f79ca51
Rollup merge of #144240 - yuk1ty:false-sealed-traits-note-reported-in…
fmease Jul 24, 2025
78f83fe
Rollup merge of #144247 - RalfJung:ldexp, r=tgross35
fmease Jul 24, 2025
cf6fdf6
Rollup merge of #144276 - cjgillot:no-hir-privacy, r=petrochenkov
fmease Jul 24, 2025
fafdf5b
Rollup merge of #144317 - lolbinarycat:tidy-obey-build.npm, r=Kobzol
fmease Jul 24, 2025
c031c78
Rollup merge of #144320 - lolbinarycat:rustdoc-search_index-BTreeMap-…
fmease Jul 24, 2025
bd9b61c
Rollup merge of #144334 - lolbinarycat:rustdoc-span_of_fragments-reve…
fmease Jul 24, 2025
7282814
Rollup merge of #144335 - fmease:no-angle-no-colon, r=SparrowLii
fmease Jul 24, 2025
bdede1c
Rollup merge of #144358 - JonathanBrouwer:fix-stability-malformed, r=…
fmease Jul 24, 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 a test case for ui test false-sealed-traits-note.rs
  • Loading branch information
yuk1ty committed Jul 22, 2025
commit 0aa617001aa5a0d6945079dd084c0bd4a13f3189
12 changes: 11 additions & 1 deletion tests/ui/privacy/sealed-traits/false-sealed-traits-note.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// We should not emit sealed traits note, see issue #143392
// We should not emit sealed traits note, see issue #143392 and #143121

/// Reported in #143392
mod inner {
pub trait TraitA {}

Expand All @@ -10,4 +11,13 @@ struct Struct;

impl inner::TraitB for Struct {} //~ ERROR the trait bound `Struct: TraitA` is not satisfied [E0277]

/// Reported in #143121
mod x {
pub trait A {}
pub trait B: A {}

pub struct C;
impl B for C {} //~ ERROR the trait bound `C: A` is not satisfied [E0277]
}

fn main(){}
25 changes: 21 additions & 4 deletions tests/ui/privacy/sealed-traits/false-sealed-traits-note.stderr
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
error[E0277]: the trait bound `Struct: TraitA` is not satisfied
--> $DIR/false-sealed-traits-note.rs:11:24
--> $DIR/false-sealed-traits-note.rs:12:24
|
LL | impl inner::TraitB for Struct {}
| ^^^^^^ the trait `TraitA` is not implemented for `Struct`
|
help: this trait has no implementations, consider adding one
--> $DIR/false-sealed-traits-note.rs:4:5
--> $DIR/false-sealed-traits-note.rs:5:5
|
LL | pub trait TraitA {}
| ^^^^^^^^^^^^^^^^
note: required by a bound in `TraitB`
--> $DIR/false-sealed-traits-note.rs:6:23
--> $DIR/false-sealed-traits-note.rs:7:23
|
LL | pub trait TraitB: TraitA {}
| ^^^^^^ required by this bound in `TraitB`

error: aborting due to 1 previous error
error[E0277]: the trait bound `C: A` is not satisfied
--> $DIR/false-sealed-traits-note.rs:20:16
|
LL | impl B for C {}
| ^ the trait `A` is not implemented for `C`
|
help: this trait has no implementations, consider adding one
--> $DIR/false-sealed-traits-note.rs:16:5
|
LL | pub trait A {}
| ^^^^^^^^^^^
note: required by a bound in `B`
--> $DIR/false-sealed-traits-note.rs:17:18
|
LL | pub trait B: A {}
| ^ required by this bound in `B`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.
Loading