Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

String::truncate doc: also fails if not a char boundary - #17794

Merged
bors merged 1 commit into
rust-lang:masterfrom
SimonSapin:patch-8
Oct 6, 2014
Merged

bors merged 1 commit into
rust-lang:masterfrom
SimonSapin:patch-8

Conversation

@SimonSapin

Copy link
Copy Markdown
Contributor

No description provided.

@bors bors closed this Oct 6, 2014
@bors
bors merged commit 80401da into rust-lang:master Oct 6, 2014
@SimonSapin
SimonSapin deleted the patch-8 branch December 5, 2014 17:34
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 13, 2024
internal: Newtype `ErasedFileAstId`

It wrapping `la_arena::Idx` makes it quite annoying to use
rust-bors Bot pushed a commit that referenced this pull request Nov 13, 2026
… call sites (#17794)

The lint suggested changing `&Box` to `&dyn Trait`, but
this breaks compilation at call sites that pass `&boxed_value` because
the coercion `&Box -> &dyn Trait` does not happen implicitly.
Extend the message for trait objects to tell users to call `.as_ref()`
at call sites.

changelog: [`borrowed_box`]: suggest calling `.as_ref()` at the call
site when the boxed type is a trait object

Part of rust-lang/rust-clippy#11940
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 14, 2026
… call sites (rust-lang#17794)

The lint suggested changing `&Box` to `&dyn Trait`, but
this breaks compilation at call sites that pass `&boxed_value` because
the coercion `&Box -> &dyn Trait` does not happen implicitly.
Extend the message for trait objects to tell users to call `.as_ref()`
at call sites.

changelog: [`borrowed_box`]: suggest calling `.as_ref()` at the call
site when the boxed type is a trait object

Part of rust-lang/rust-clippy#11940
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants